Asynchronous Tool Calling, Mid-Turn Steering, and Dynamic Reasoning Effort: The Hidden Controls for LLM Agent Performance
This article breaks down three practical capabilities that make LLM agents more controllable: asynchronous tool calling to remove waiting from the model's critical path, mid-turn steering to correct direction without discarding completed work, and in-session switching of reasoning effort to match task difficulty. It explains the semantic differences from traditional synchronous tool use, typical scenarios, engineering concerns such as idempotency, timeouts, result trimming, and state modeling, plus a deployment checklist.
1. Background: Synchronous Blocking Is Slowing Agents Down
In a typical agent architecture, the model does not act directly. It applies intent to external systems through tool use (function calling): querying databases, retrieving documents, calling business APIs, executing code, and reading or writing files. In traditional implementations, the call semantics at the model layer are synchronous and blocking: after the model issues a tool call, it must wait for the application to return a result before it can generate the next reasoning step. Even when developers build parallel or asynchronous orchestration on the application side, the model’s own reasoning flow is still held back by the slowest step in a single call.
This creates three common pain points:
- End-to-end latency is determined by the long-tail tool. A single slow API stretches the entire response cycle.
- Users have no way to intervene. Once a task starts, they can only wait for it to finish; if the direction is wrong, they have to start over, and completed intermediate results are wasted.
- Reasoning resources do not match task difficulty. Simple tasks consume heavy reasoning while complex tasks are under-thought, which is both expensive and unreliable.
Over the past two years, the industry has gradually abstracted these three issues into three general capabilities: asynchronous tool calling, mid-turn steering, and in-session dynamic switching of reasoning effort. They are not proprietary features of any single vendor, but an inevitable outcome of agent engineering maturing. The following sections break them down one by one.
2. Capability 1: Asynchronous Tool Calling, Removing “Waiting” from the Model’s Critical Path
2.1 What Changes Semantically
Synchronous tool calling follows “request — block — return — continue.” Asynchronous tool calling is closer to “initiate — yield — ready — collect”: after the model initiates one or more tool calls, it does not wait in place but continues work that does not depend on those results; when a tool finishes, the result is handed back to the reasoning flow through an event or callback.
The key point is that this is fundamentally different from “running tools concurrently with a thread pool in the application layer.” The latter only hides the waiting inside the application, and the model still consumes results under serial semantics. The former changes the model’s own scheduling semantics: the model can hold multiple pending calls at the same time within a single generation.
2.2 Typical Use Cases
- Fan-out tasks: running multiple retrievals, multi-file summaries, and multi-module static checks in parallel over the same codebase.
- Mixed fast and slow: issuing a millisecond-level cache lookup and a second-level remote retrieval together, and consuming the fast result first.
- Long-running tasks: builds, tests, and batch data processing that inherently take tens of seconds, avoiding idle spinning in reasoning.
2.3 Engineering Implementation Notes
# Illustration: the application maintains a "pending calls table" and fills in results when readypending = {} # call_id -> task contextresults = {} # call_id -> tool returnfor event in stream:if event.type == "tool_call":pending[event.call_id] = dispatch_async(event) # returns immediately, no blockingelif event.type == "tool_result":results[event.call_id] = event.payloadif all_done(pending, results):resume_reasoning(results) # proceed only once dependencies are complete
Three things deserve attention in practice. First, idempotency: asynchrony means retries and out-of-order delivery, so tools must be safely replayable under the same idempotency key. Second, timeouts and cancellation: pending calls need a clear deadline to avoid “zombie calls” occupying resources indefinitely. Third, result trimming: what is fed back to the model should be a structured summary rather than large raw data blocks, otherwise the context will be quickly exhausted.
3. Capability 2: Mid-Turn Steering, Turning “Rework After the Fact” into “Course Correction During the Process”
3.1 Pushing Down from the Orchestration Layer to the Interface Layer
In the past, this capability was mostly implemented by individual products at the upper orchestration layer: the user interjects on the client, the product puts the message into a queue, and it is consumed together after the current turn ends. The limitation is coarse correction granularity and difficulty in preserving completed intermediate work.
A more general approach is to push intervention down to the interface layer: while the response is still being generated, new requirements or direction corrections are submitted through standardized steering events, the server preserves the completed parts, and subsequent generation picks up the new requirements. For developers, this means not having to implement a “pause — save state — replay” state machine themselves.
3.2 State Preservation Is the Hard Part
The real difficulty of mid-turn steering is not “interjecting” but “not wasting work after interjecting.” A usable implementation must at least distinguish three kinds of state:
- Artifacts that are complete and still valid (for example, a list of files already read, confirmed requirement constraints);
- Artifacts that are complete but may be invalidated by the new instruction (for example, a draft plan generated under the old criteria);
- Planned steps that have not started yet.
Only by explicitly modeling these three kinds of state can a steering event “carry forward” rather than “start over.”
Session state exampleconfirmed: tech stack constraints, directory structure, coding conventions -> keepinvalidated: old API draft -> mark invalid, optionally reusepending: implementation, tests, documentation -> reorder per new instruction
3.3 Usage Recommendations
Steering should be “short, precise, and verifiable.” Instead of saying “this direction seems off,” say “keep the existing directory structure unchanged, replace only the data access layer, and add failure retries.” The former leaves the model guessing; the latter maps directly to a state change. Also set a frequency limit on steering: frequent interjections cause the plan to be reordered repeatedly, which reduces stability instead.
4. Capability 3: In-Session Dynamic Switching of Reasoning Effort
4.1 Why Switch Thinking Effort
Long conversations are often chained from subtasks of vastly different difficulty: first scan the project structure, then locate a defect, and finally write the implementation and tests. Using the same reasoning effort throughout wastes compute and latency on simple steps and may under-think difficult ones.
In-session dynamic switching of reasoning effort allows adjusting the thinking budget per subtask within the same context, while reusing existing caches as much as possible to avoid prefix cache invalidation, duplicate billing, and repeated computation caused by parameter changes.
4.2 Practical Strategy
- Tiered settings: use low effort for exploration, retrieval, and formatting tasks; use high effort for architecture design, root-cause analysis of defects, and cross-module refactoring.
- Progressive escalation: produce a first version at low effort, and escalate to verify only if self-checking finds insufficient evidence or conflicts, rather than starting at maximum.
- Cache-friendly: put stable, unchanging content (conventions, dependency lists, directory descriptions) at the front of the context and volatile content at the back, reducing the scope of cache invalidation caused by switching.
# Illustration: choose reasoning effort per subtaskplan = [{"task": "Scan directories and dependencies", "effort": "low"},{"task": "Locate the defect root cause", "effort": "high"},{"task": "Generate implementation and unit tests", "effort": "medium"},{"task": "Produce the change notes", "effort": "low"},]for step in plan:run(step["task"], reasoning_effort=step["effort"])
5. How the Three Work Together: A More Controllable Agent Execution Model
Viewed together, the three capabilities point to the same goal: turning the agent’s execution from a “black-box one-shot generation” into a process that is schedulable, steerable, and tiered.
- Asynchronous tool calling addresses throughput and latency, so the critical path is no longer bound to the slowest tool.
- Mid-turn steering addresses controllability, reducing the cost of correction from a full redo to a local reorder.
- Reasoning effort switching addresses cost-effectiveness, aligning compute with task difficulty.
The combined effect is especially visible in scenarios such as AI coding tools: retrieving the codebase in parallel, correcting requirements during generation, downgrading simple rewrites, and upgrading complex refactoring. With logging services and monitoring alerts observing the call chain, teams can also pinpoint which class of tools is slowing overall latency.
6. Deployment Checklist
- Are tools idempotent and replayable, with unified timeout and cancellation semantics?
- Are the results fed back to the model structured summaries or large raw data blocks?
- Are the three session states “complete / invalidated / not started” explicitly modeled?
- Are steering instructions short, precise, and verifiable, with a frequency limit?
- Is reasoning effort tiered per subtask, with a stable prefix placed first to preserve caching?
- Is there end-to-end observability that can quantify tool latency and cache hit rate?
7. Conclusion
Asynchronous tool calling, mid-turn steering, and in-session reasoning effort switching essentially return three kinds of “control” to developers: control over scheduling, control over direction, and control over cost. In general engineering practice on platforms such as Baidu AI Cloud, these capabilities are typically implemented through combinations of foundational services such as message queues, container platforms, logging services, and monitoring alerts. Understanding their semantic boundaries and engineering constraints is more valuable in the long run than memorizing any single interface.
