Tool Calling in LLMs: Async Execution, Mid-Run Steering, and Prompt Engineering Practices
This article examines how LLM tool calling has evolved from synchronous, blocking calls to asynchronous execution, mid-run steering, and adjustable reasoning effort with cache reuse, and what that shift means for agent engineering. It also covers configuration governance and observability for model identifiers, four practical focuses of prompt engineering, whether skill wrappers will be replaced as capabilities move down into the model layer, and how to map these capabilities onto common cloud infrastructure categories. Readers will find control-flow pseudocode, practical prompt structuring advice, and clear criteria for deciding which wrappers will survive.
1. Where the Problem Starts: Capabilities Move Forward, but the Toolchain Locks the Model in Place
Many developers have run into this scenario: a model has already been upgraded, yet the AI coding tool or client they use is still working from a stale model list, and no amount of upgrading makes the new capabilities visible. After some investigation, the problem usually turns out not to be on the model side but in an intermediate layer — a plugin or adapter has rewritten the model list configuration in an intrusive way, so requests keep getting routed to the old version.
The lesson here is that observability and configuration governance for agent applications matter just as much as the model capabilities themselves. It helps to settle three things at the design stage: where the model identifier is read from, who writes the configuration, and whether changes have an audit trail and a rollback path. Putting the model list, system prompts, and tool registry under version control and log tracing can prevent hard-to-diagnose problems like “the upgrade had no effect.”
2. The Capability Trajectory: From One-Shot Q&A to Interruptible and Resumable
2.1 The Inherent Bottleneck of Synchronous, Blocking Tool Calls
Traditional tool use is essentially synchronous at the model level: after the model issues a call, it has to wait for the application to return a result before it can continue reasoning. Developers can build parallelism in their own programs with thread pools or coroutines, but the model itself cannot advance other subtasks while it waits. When a single request involves multiple external queries, end-to-end latency is determined by the slowest link, and long-tail latency becomes especially visible.
2.2 Asynchronous Tool Calling: Giving the Waiting Time Back
A newer generation of models pushes asynchronous capability down into the model layer: after the application initiates a tool call, the model can keep working on tasks that do not depend on that result, then merge the conclusions once the result comes back. The engineering gains show up in three areas:
- Latency: multiple independent calls can genuinely overlap instead of queuing one after another.
- Throughput: more tasks complete per unit of time, and long-running tasks no longer monopolize inference resources.
- Experience: streaming output no longer stalls behind a tool wait, so users keep seeing progress.
Illustrative orchestration logic looks like this (pseudocode, control flow only):
tasks = [query A, query B, query C] # independent of each otherpending = submitInParallel(tasks) # concurrent execution on the app sidewhile the model still has subgoals it can advance:continueGeneration("parts that do not depend on tool results")if a pending call completes:mergeResult(pending) # result fed back into later reasoning
Note that asynchronous does not mean unconstrained concurrency. You still need concurrency limits, timeouts, and a retry budget, and write operations with poor idempotency should stay serialized — otherwise you invite duplicate side effects.
2.3 Mid-Run Steering: Moving “Correction” from the Application Layer to the API
Many AI coding tools used to support interjections and queuing, but that was an application orchestration capability: the client cached input, interrupted the current stream, and issued a new request. This capability is now standardized into the response API, where a unified steering event modifies content that is already being generated, with the server preserving completed work and taking on the new requirement.
The difference is very practical. An application-layer approach means maintaining your own state machine for “completed fragments,” and the context is lost the moment the network drops or the process restarts. An API-layer approach hands resumable semantics to the platform, and the client only needs to send a steering instruction. For high-rework scenarios like interactive coding and long-form writing, what you save is the cost of repeated generation, not just a few lines of code.
2.4 Adjusting Reasoning Effort Mid-Conversation While Reusing the Cache
A more practical change: you can change how much reasoning effort you put in (thinking intensity) during a conversation while keeping the earlier cached results. Switching reasoning tiers used to mean rebuilding the context, which invalidated the prefix cache and drove up both cost and latency. Adjustments that support cache reuse make “explore fast first, then solve deeply” an affordable strategy:
Round 1: low reasoning effort + short prompt → quick candidate approachesRound 2: raise reasoning effort, reuse the same context prefix → deeper validation and refinement
The practical advice is to put the stable, unchanging parts (system instructions, conventions, long-term context) at the very front of the prompt and the volatile parts (this round’s task, temporary data) at the end, to maximize the prefix cache hit rate.
3. Four Focus Areas in Prompt Engineering
A capability upgrade does not automatically produce better output; how the prompt is organized remains the decisive variable.
Preventing drift: define the role, goal, boundaries, and termination conditions explicitly, and write “what not to do” as checkable conditions rather than vague descriptions. Periodically restating the goal during long tasks significantly reduces the chance of going off track midway.
Instruction following: layer the requirements — hard constraints, preferred preferences, optional suggestions — and specify the priority order when they conflict. For formatting requirements, giving a positive and a negative example works far better than piling on adjectives.
Personalization: capture user preferences as structured configuration (tone, length, glossary, banned expressions) and inject it per scenario, instead of stuffing the entire conversation history into the context. Structured configuration can be versioned and A/B tested.
Writing quality: a large amount of generated content currently shows an obvious tendency toward templates, and readers are highly fatigued by it. The key to escaping that impression is specificity — replace vague parallelism with verifiable facts, real numbers, and clear causal relationships, control the density of adjectives, and allow sentence length to vary.
4. Will Skill Wrappers Be Replaced?
Every time model capabilities improve, a discussion appears about some form of wrapping disappearing. A more accurate judgment is this: capabilities moving down the stack will replace the fragile wrappers that “simulate platform semantics through prompting,” such as manually maintaining interruption state or implementing cache invalidation yourself, while wrappers that carry domain knowledge, operating conventions, and enterprise-private processes actually increase in value. The test is simple — if a wrapper only fills a gap in platform capability, it will be flattened; if it encodes knowledge and constraints you cannot get elsewhere, it will last.
5. Implementation Recommendations
In general engineering practice on cloud platforms such as Baidu AI Cloud, these capabilities map onto common product categories: use a container platform to host concurrent tool execution, a message queue to decouple long-running tasks and smooth out peaks, object storage to hold session snapshots for resumability, and logging plus monitoring and alerting to observe tool call latency, cache hit rate, and drift rate. The core idea is to decouple “model capability” from “application orchestration,” manage model identifiers and prompt versions centrally through a configuration center, and make sure capability upgrades can be validated quickly and rolled out gradually.
In summary, asynchronous tool calling, mid-run steering, and cache-friendly reasoning effort adjustments together move agents from one-shot Q&A toward an engineered form that is interruptible, resumable, and adjustable; prompt engineering and knowledge wrapping then determine how much real value those capabilities ultimately deliver.
