LLM Agent Capabilities: Async Tool Calls and Mid-Run Steering in Practice

    This article breaks down four LLM agent capabilities that move agents from demos to deliverables: asynchronous tool calls, mid-run user steering at the API level, dynamic reasoning effort switching, and explicit personalization and writing constraints. For each capability, it explains the underlying principle, the interface abstraction, and key implementation points, with sample code. It also shows how to orchestrate all four in a single long-horizon task, and lists common pitfalls plus an acceptance checklist covering end-to-end latency, rework avoidance, cache hit rate, and cost control.

    1. Background: Agents Moving From “Demoable” to “Deliverable”

    Agent practice over the past two years keeps hitting the same bottleneck: within a single request, the model can only do one thing, tool calls are blocking, users who want to correct course must wait for the entire output to finish, reasoning effort is fixed from start to end, and writing style is highly homogeneous. These issues are barely visible in short Q&A. Once a task becomes a long chain — read a codebase, edit multiple files, run tests, fix regressions — they get amplified many times over: long waits, expensive rework, context crowded out by useless content, and final text that still carries a heavy template tone.

    Recent capability evolution in the industry addresses these problems along four main lines: making tool calls asynchronous instead of synchronous, pushing user intervention down from the application layer to the API layer, making reasoning effort dynamically adjustable, and turning personalization and writing quality into explicit constraints. This article takes a neutral technical view of the principles, interface abstractions, and implementation essentials of these four capabilities, with illustrative code.

    2. Capability 1: Asynchronous Tool Calls, Removing Serial Waits at the Model Layer

    Traditional tool use is synchronous and blocking at the model layer: after the model emits a call intent, it must wait for the application to return a result before it can continue reasoning. Developers can fire off multiple requests in parallel inside their own programs, but the model’s own “stream of thought” is stuck.

    The core change with asynchronous tool calls is that the model no longer idles after issuing a call. It can keep advancing work that has no dependency on that result — planning the next steps, or drafting document sections that do not depend on it — and resume once the result is filled back in.

    Three engineering points matter:

    1. Dependency annotation. Declare for each tool whether it is a “blocking dependency” or a “deferrable dependency,” so the model can decide whether to wait.
    2. Result backfill protocol. Async results flow back through a unified event stream carrying the call identifier, avoiding mismatched correlation.
    3. Timeout and fallback. Set a timeout and a fallback strategy for each call so one slow tool cannot drag down the whole chain.

    Illustrative interface abstraction:

    1. # Declare dependency attributes for tools
    2. tools = [
    3. {"name": "search_docs", "mode": "async", "depends_on": []},
    4. {"name": "run_tests", "mode": "async", "depends_on": ["edit_files"]},
    5. ]
    6. # Application side: submit first, do not block; results flow back as events
    7. pending = client.tools.submit("search_docs", args={"q": "cache policy"})
    8. draft = client.plan_next_step() # the model keeps doing work that does not depend on the result
    9. result = client.tools.await_result(pending.id, timeout=8.0)

    3. Capability 2: Mid-Run Steering, Pushing the “Right to Interject” Down to the API Layer

    In earlier products, “cut in line / queue up” behavior was implemented at the application orchestration layer: the application intercepted user input and held it until the next turn. The newer approach pushes intervention down to the API layer, using a standard event to modify a response that is still being generated. The server keeps the work already completed and generates a new segment that picks up the new requirement.

    The direct benefits: users can correct direction without waiting for the model to finish speaking; completed parts are not wasted; and the context does not need to be replayed in full.

    Practice recommendations:

    • Define the semantic boundaries of steering events. Distinguish three types — “supplement information,” “change the goal,” and “cancel the current step” — so the model does not misread a correction as a brand-new task.
    • Keep structured markers on completed segments to make later concatenation and auditing easier.
    • Make steering idempotent: sending the same steering event repeatedly should not produce duplicate side effects.
    1. # The user interjects mid-run: modify the response being generated
    2. client.responses.steer(
    3. response_id=resp.id,
    4. instruction="Handle only the login module, skip the cache rework",
    5. keep_completed=True,
    6. )

    4. Capability 3: Dynamic Reasoning Effort Switching, Without Breaking the Cache

    Within the same long conversation, task difficulty varies: reading a directory structure, changing a constant, and designing a concurrency model require completely different amounts of thinking. A fixed effort level either wastes compute or fails on hard problems.

    The key to dynamic switching is adjusting thinking effort by difficulty within the same session, without breaking existing caches. The cache key is typically determined jointly by “system prompt + tool definitions + history prefix,” and rewriting any of these mid-run invalidates the cache entirely. So engineering practice should:

    • Put volatile content (live user input, current step description) at the tail of the context, keeping the prefix stable;
    • Have effort switching change only the reasoning budget parameter, not the prefix content;
    • Set cost caps for different effort levels to prevent abuse of the high tier.
    1. client.responses.update(resp.id, reasoning={"effort": "low"}) # inspect the structure
    2. # ... the prefix stays unchanged and the cache keeps hitting ...
    3. client.responses.update(resp.id, reasoning={"effort": "high"}) # attack the hard part

    5. Capability 4: Personalization and Writing Constraints, Suppressing the “AI Tone”

    The cause of template tone is usually not that the model cannot write, but that explicit constraints are missing: no style samples, no reader profile, no banned-word list, no structure requirements. A practical approach is to write writing standards as an executable block of rules:

    1. [Style] Prefer short sentences; ban stock phrases like "first / second / in summary";
    2. [Reader] 3 years of backend experience; no need to explain basic concepts;
    3. [Structure] Conclusion first, one point per paragraph, no empty paragraphs;
    4. [Banned] empower, closed loop, leverage, ultimate, seamless;
    5. [Samples] Attach 2 passages of my own past writing as style anchors.

    Paired with a two-step flow of “outline first, then prose” and “self-review before output,” this can significantly reduce the proportion of empty talk. Personalization does not mean pandering: keep a fact-checking step so accuracy is not sacrificed to match a style.

    6. Putting It Together: Orchestrating One Long Task

    Chain the four capabilities together and a typical orchestration looks like this: scan the project structure at low effort → submit tests and retrieval asynchronously → let the user steer mid-run to narrow the scope → attack the core algorithm at high effort → produce the documentation following the style rules. Throughout the process the prefix stays stable, the cache is reusable, and the user can correct course at any time.

    For cloud implementation, general-purpose service categories can carry this: a message queue handles the backflow of async tool results, object storage holds intermediate artifacts, a logging service plus monitoring and alerting track per-step latency and failure rate, and a container platform hosts the tool execution sandbox.

    7. Common Pitfalls and an Acceptance Checklist

    • Pitfall 1: Making every tool asynchronous. Short calls with no dependencies are simpler synchronously.
    • Pitfall 2: Treating steering events as new tasks. Unclear semantics lead to duplicated work.
    • Pitfall 3: Changing the system prompt casually. This is the number one cause of cache invalidation.
    • Pitfall 4: Adding only a style word list without review. Empty talk comes back in another form.

    Acceptance checklist: has end-to-end latency for long tasks dropped; can mid-run corrections be made without a full rerun; is the cache hit rate stable; has the template-tone proportion dropped in manual spot checks; is per-task cost under control.