The Evolution of AI Agent Capabilities: From Tool Calls to Mid-Execution Steering

    This article examines the key engineering shifts in large language model (LLM) based agents, moving beyond simple prompt engineering toward robust interaction protocols. It covers five core capabilities: asynchronous tool calling, mid-execution user steering, adaptive reasoning intensity, context caching for long conversations, and refined prompt design. The discussion focuses on how these mechanisms improve controllability, responsiveness, and resource efficiency in complex, multi-step tasks, concluding with practical guidance on evaluation metrics and edge case handling for production deployment.

    Recent developments in large language models are shifting applications from single-turn question answering toward sustained, multi-step collaboration. Models are no longer just receiving a prompt and generating an answer. They are now expected to understand complex goals, call external tools, process intermediate results, respond to user interruptions, and dynamically adjust their reasoning approach based on task difficulty. As these abilities become embedded in models and standard API layers, the focus of agent design has moved from “how to write a prompt” to “how to design a complete interaction protocol and task execution mechanism.”

    Many developers may interpret this shift simply as “a new model is smarter.” However, from an engineering perspective, the more significant change is in the model execution paradigm. Tool calls are no longer limited to synchronous, blocking operations. Users can alter the direction mid-task. The intensity of reasoning can be adjusted based on context. Previously processed context can be reused. Together, these capabilities enhance the controllability, responsiveness, and resource efficiency of complex tasks.

    Asynchronous Tool Calling: From Blocking Execution to Parallel Collaboration

    Traditional tool calling typically follows this flow:

    1. The user presents a task.
    2. The model decides to call a specific tool.
    3. The application pauses model generation.
    4. The tool executes and returns a result.
    5. The model reads the result and continues generation.

    This approach is simple and stable but has a clear bottleneck. Consider a task that requires querying a project directory, reading a config file, searching logs, and accessing a knowledge base. The model often waits for one tool to return before deciding the next step. Even if the application layer can run multiple tools concurrently using asynchronous programming, the model’s decision-making process can still be serialized.

    The core change with asynchronous tool calling is that the model can continue working on other tasks that do not depend on pending tool results. For example, the model can initiate a log search and simultaneously organize the user’s requirements. While waiting for external data to return, it can build an analysis framework, prepare candidate solutions, or review existing context.

    The two modes can be abstracted as follows:

    1. Synchronous mode:
    2. Model decision → Call Tool A → Wait for result → Continue reasoning
    3. ↓
    4. Call Tool B
    5. Asynchronous mode:
    6. Model decision → Call Tool A and Tool B concurrently
    7. → Process tasks not dependent on tool results
    8. → Results return asynchronously
    9. → Aggregate and continue reasoning

    However, asynchronous does not mean all tools are suitable for concurrent execution. Developers need to define the dependencies between tools. For instance, if Tool B must read a file generated by Tool A, a strict order is required. If multiple tools are simply querying different data sources independently, they are better suited for parallel processing.

    When implementing this in engineering, several key factors need attention:

    • Task dependency management: Determine which calls can run concurrently and which must be serialized.
    • Timeout and cancellation: A tool that hangs indefinitely should not stall the entire task.
    • Result correlation: Asynchronous results must be accurately mapped back to their original calls.
    • Error isolation: If one tool fails, the model should be able to continue working based on other available results.
    • Resource control: Excessive concurrency can lead to connection limits, quota issues, or system overload.

    Therefore, asynchronous tool calling is not simply about executing multiple functions at once. It requires the application to have robust task orchestration, state tracking, and exception recovery mechanisms.

    Mid-Execution Steering: Allowing Users to Modify Running Tasks

    In traditional conversations, users typically wait for the model to finish its current response before issuing new requests. However, complex tasks often present situations where the user realizes the direction is wrong shortly after the model begins analysis, or wants to add constraints after seeing intermediate results. If the user must wait for the entire task to complete, the interaction becomes inefficient, and the model may waste significant time going down the wrong path.

    Mid-execution steering allows users to insert new instructions while the model is still working. Examples include:

    • “Don’t modify the files yet. Explain the risks first.”
    • “The scope is too broad. Only analyze the config directory.”
    • “Keep the original plan, but add a rollback step.”
    • “Stop searching. Prioritize summarizing what you have.”

    This capability is distinct from application-level UI controls like pausing display, resubmitting a task, or stopping generation. Deeper mid-execution steering involves the model’s execution protocol being able to receive new control events, adjust the subsequent plan, and preserve existing work.

    A reliable processing flow includes:

    1. Save the intermediate results the model has already produced.
    2. Record the current task state and the tool calls that have been executed.
    3. Receive the user’s new constraints or priority changes.
    4. Determine which completed work remains valid.
    5. Re-plan the remaining steps.
    6. Continue generating the new output.

    The most critical part here is “preserving valid work.” If every user interruption forces the model to start over, the logic is simple but results in higher latency, increased cost, and redundant context usage. A better approach is to break the task into phases, such as requirement understanding, information gathering, solution design, execution, and result verification. When the user changes a requirement, only the affected phases need to be rolled back, not the entire task.

    Adaptive Reasoning Intensity: Choosing the Right Approach for Task Complexity

    Different tasks have vastly different requirements for reasoning depth. Simple tasks like extracting information, converting formats, or reviewing a directory structure do not need heavy computation. Conversely, architecture design, fault diagnosis, complex code modifications, and security analysis require significantly more thorough reasoning and validation.

    If all tasks use the highest intensity reasoning, three problems arise:

    • Simple tasks become unnecessarily slow.
    • Compute resource usage and API costs increase.
    • Output can become verbose and reduce efficiency.

    On the other hand, if all tasks use lower intensity, results may be incomplete, miss edge cases, and lack reliability. The ideal solution is not a fixed reasoning mode but one that dynamically adjusts based on the task phase within a single long conversation.

    For example, a project analysis task might adopt the following strategy:

    • Low intensity phase: Quickly scan the directory, identify key modules and config files.
    • Medium intensity phase: Analyze module dependencies, data flow, and potential issues.
    • High intensity phase: Develop modification plans, assess compatibility, risk, and rollback paths.
    • Verification phase: Check whether changes meet the original requirements and provide testing suggestions.

    It is important to note that switching reasoning intensity is not simply about generating more or fewer words. It should reflect changes in analysis depth, validation scope, and decision-making caution. Developers can guide the model through task decomposition, defining acceptance criteria, and setting stage-wise goals, rather than just instructing it to “think deeper.”

    Context Caching: Reducing Redundant Processing in Long Conversations

    Long conversations often contain a large amount of information that does not change frequently. This includes project structure, user preferences, business rules, interface constraints, and historical decisions. If every turn requires reprocessing all of this content, response times suffer, and context costs increase.

    The value of context caching lies in reusing information that has already been processed and remains valid. When the user transitions from “understanding the project structure” to “modifying a specific module,” the model does not need to rescan everything. It can directly leverage the structured understanding it has already built.

    However, more caching is not always better. Cached content must meet several criteria:

    • Stability: Does not change frequently in a short period.
    • Reusability: Will be used across multiple subsequent steps.
    • Clear boundaries: Can be distinguished from temporary instructions.
    • Traceable versions: Can be invalidated when content changes.
    • Secure: Sensitive information or expired permissions should not be retained long-term.

    In practice, context can be divided into three categories:

    1. Base context: Role, output specifications, system constraints.
    2. Project context: Directory structure, tech stack, data model, business rules.
    3. Task context: Current goal, temporary constraints, intermediate results.

    Base context and stable project context are well-suited for caching. Task context needs to be updated as user requirements change. Clear separation of these layers helps prevent “old instructions from polluting new tasks.”

    The Focus of Prompt Optimization: Preventing Drift, Ensuring Strong Compliance, and Personalized Expression

    A good prompt is not a long list of rules. It establishes clear task boundaries and priorities. For complex work, a prompt should include at least the following components:

    1. Define the Role and Goal Explicitly

    Instead of just saying “help me analyze,” specify the object of analysis, the expected output, and the intended use case. For example:

    1. You are a technical review assistant.
    2. Your goal is to identify compatibility risks in configuration changes.
    3. Output should include: issue location, affected scope, risk level, and remediation suggestions.

    2. Set Execution Boundaries

    The model needs to know what it is allowed to do and what requires explicit user consent. For example:

    1. Until confirmation is received, you may only read and analyze files. Do not modify or delete content.

    3. Constrain Output Structure

    Structured output reduces omissions and makes it easier for downstream programs to process:

    1. Please output in the following order:
    2. 1. Conclusion
    3. 2. Evidence
    4. 3. Risks
    5. 4. Recommendations
    6. 5. Items pending confirmation

    4. Handle Uncertainty

    The prompt should explicitly ask the model to distinguish between facts, inferences, and assumptions. It should not present uncertain content as definitive conclusions. For example:

    1. If information cannot be confirmed from the available data, mark it as "needs verification." Do not fill in gaps.

    5. Allow User Corrections

    In long tasks, explicitly tell the model how to handle new requirements: which completed work should be preserved, which constraints have higher priority, and how to ask the user when conflicts arise.

    Reducing Template-like Content and Improving Personalized Writing Quality

    Many users are dissatisfied with machine-generated content not because the information is wrong, but because the article shows clear signs of a template: generic opening, repetitive paragraph structure, over-the-top conclusions, dense adjectives, and a lack of real reasoning.

    To address this, four areas can be improved:

    • Provide real context: Describe who the readers are and what scenario the article is for.
    • Specify the desired style: For example, a technical blog, design document, post-mortem, or internal training material.
    • Limit vague statements: Require every conclusion to have evidence, conditions, and scope.
    • Encourage specific details: Prioritize descriptions of processes, constraints, failure modes, and verification methods.

    Personalization does not mean forcing casual language or adding excessive emotional expression. Effective personalization makes the content match the target reader’s knowledge level, reading purpose, and decision-making needs.

    Establishing a Complete Evaluation Mechanism for Deployment

    Whether the new capabilities are truly valuable cannot be determined by demonstrations alone. They must be validated through repeatable tests. The following metrics are recommended for evaluation:

    • Is tool calling correct?
    • Are there mismatches in results from concurrent calls?
    • Does the model preserve valid context after user interruptions?
    • Is there a proper balance between accuracy and response time after switching reasoning intensity?
    • Do outdated instructions contaminate long conversations?
    • Does the output meet format and style requirements?
    • Can the model degrade gracefully when tools fail, time out, or return abnormal data?

    In addition, test cases should include typical edge scenarios, such as users frequently changing goals, tools returning incomplete data, context content changing version, and conflicting instructions. Only when the agent remains stable in these boundary conditions does it truly have engineering value.

    Overall, asynchronous tool calling, mid-execution steering, adaptive reasoning, and context caching represent a shift in LLM applications from “generating text” to “collaboratively completing tasks.” The role of prompts has also expanded from controlling tone and format to defining task state, execution boundaries, interaction protocols, and recovery strategies. For developers, the future priority is not chasing specific model names but mastering these general mechanisms and integrating them into reliable application architectures, state management, and evaluation systems.