Pushing the Limits of LLM Tool Calling via Experiential Knowledge Integration and Activation
Summary
This paper presents a systematic study on integrating experiential knowledge into LLM tool calling, proposing the KATE framework that combines knowledge-augmented data, width-expanded inference, and knowledge-aware training, achieving consistent improvements on BFCL-V3 and AppWorld benchmarks.
View Cached Full Text
Cached at: 06/10/26, 06:12 AM
# Pushing the Limits of LLM Tool Calling via Experiential Knowledge Integration and Activation
Source: [https://arxiv.org/html/2606.10875](https://arxiv.org/html/2606.10875)
Yupu Hao1,2,Zhuoran Jin1,2,Huanxuan Liao1,2,Kang Liu1,2,Jun Zhao1,2 1The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences, Beijing, China 2School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing, China \{haoyupu2023, liaohuanxuan2023\}@ia\.ac\.cn, \{zhuoran\.jin, kliu, jzhao\}@nlpr\.ia\.ac\.cn
###### Abstract
Large language models \(LLMs\) rely on tool use to act as autonomous agents, yet often fail in multi\-step execution due to insufficient tool\-related knowledge and ineffective knowledge activation\. Therefore, we present a systematic study on how knowledge influences tool\-use performance, covering the stages ofknowledge acquisition, activation, and internalization\. In the knowledge acquisition stage, we acquire and evaluate various forms of experiential knowledge, and our analysis shows that simple instance\-level knowledge can already provide strong and reliable gains, while abstract intent\-level knowledge offers limited benefits\. At inference time, to activate knowledge, we find that prompting LLM to expand the depth of reasoning yields diminishing returns, whereas expanding the width of reasoning by parallel sampling with aggregation more effectively activates latent experiential knowledge\. At training time, for knowledge internalization, post\-training with knowledge\-augmented data further improves performance, with reinforcement learning outperforming supervised fine\-tuning\. Based on these insights, we propose theKnowledge\-AugmentedToolExecution \(KATE\), a knowledge\-augmented tool execution framework that integrates experiential knowledge with reasoning\-width\-expanded inference and knowledge\-aware training\. Experiments on BFCL\-V3 and AppWorld demonstrate consistent and substantial improvements over strong baselines across model scales\. Our Code is available at[https://github\.com/hypasd\-art/KATE](https://github.com/hypasd-art/KATE)\.
Pushing the Limits of LLM Tool Calling via Experiential Knowledge Integration and Activation
Yupu Hao1,2, Zhuoran Jin1,2, Huanxuan Liao1,2, Kang Liu1,2, Jun Zhao1,2††thanks:Corresponding Author1The Key Laboratory of Cognition and Decision Intelligence for Complex Systems,Institute of Automation, Chinese Academy of Sciences, Beijing, China2School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing, China\{haoyupu2023, liaohuanxuan2023\}@ia\.ac\.cn, \{zhuoran\.jin, kliu, jzhao\}@nlpr\.ia\.ac\.cn
## 1Introduction
Tool use has emerged as a cornerstone capability for transforming large language models \(LLMs\) into practical intelligent agentsLi et al\. \([2023](https://arxiv.org/html/2606.10875#bib.bib11)\); Mialon et al\. \([2023](https://arxiv.org/html/2606.10875#bib.bib16)\);[Li et al\.](https://arxiv.org/html/2606.10875#bib.bib10)\. LLMs increasingly rely on tool calling to execute actions, access external informationJin et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib9)\), and serve as autonomous agentsPlaat et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib19)\)\. However, existing approaches largely treat tool use as a problem of prompt designShinn et al\. \([2023](https://arxiv.org/html/2606.10875#bib.bib25)\), API documents specificationQu et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib23)\), or supervised or unsupervised alignmentLiu et al\. \([2025b](https://arxiv.org/html/2606.10875#bib.bib14)\); Li et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib12)\); Zhang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib35)\); Lu et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib15)\), implicitly assuming that models already possess sufficient experiential knowledge for tool execution\. In practice, however, failures in tool use often stem not from reasoning incapability alone, but from the lack of concrete, executable experience, such as parameter constraints, scenario\-specific operation patterns, and error recovery strategies\.
While prior work has explored knowledge augmentation for general reasoningWang et al\. \([2024](https://arxiv.org/html/2606.10875#bib.bib28)\), the role of*experiential knowledge*Fang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib5)\); Zhou et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib38)\)in tool execution remains largely underexplored\. In particular, it is unclear \(i\) which forms of knowledge are most effective for tool use, \(ii\) how knowledge within the system should be activated during inference, and \(iii\) whether there are additional gains if the knowledge is internalized into model parameters through training\. Addressing these questions requires a systematic investigation that spans retrieval, inference\-time reasoning, and training\-time optimization, which is an aspect missing from existing studies\.
To bridge this gap, we conduct the first systematic study of experiential knowledge in tool execution, examining how different types of experiential knowledge can be acquired, activated, and internalized within large language models\. Unlike prior works that primarily focuses on designing specific knowledge representations construction process and more fine\-grained retrieval mechanismsCao et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib2)\); Fang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib5)\); Wang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib30)\), we emphasizes a unified and principled understanding of how knowledge functions throughout the entire pipeline\. We organize our investigation along two complementary dimensions:Knowledge Acquisition and IntegrationandKnowledge Activation and Utilization\. From the perspective ofknowledge acquisition, we extract and categorize four types of experiential knowledge which includes*instance\-level*Scenario Trajectory Knowledge and Experience Summary Knowledge, as well as*intent\-level*Script\-Style Intent Clustering Knowledge and Textual\-Style Intent Clustering Knowledge, and design a unified retrieval mechanism to integrate them at inference time\. Through extensive experiments, we demonstrate that instance\-level knowledge consistently yields the largest performance gains, indicating that concrete execution traces or its corresponding description provide more actionable guidance than abstract intent descriptions for tool\-using agents\. The results demonstrate that*high\-quality execution trajectories alone are sufficient to yield substantial performance improvements in tool use*\. From the perspective ofknowledge activation, we investigate how to effectively elicit and utilize such knowledge\. At inference time, we compare depth\-based hint prompting with width\-based parallel sampling,*revealing a clear advantage of expanding the reasoning width over increasing depth of reasoning*\. While explicit prompts engineering provide diminishing returns as model capability scales, parallel sampling with aggregation substantially improves tool\-calling accuracy, suggesting that much of the model’s experiential knowledge remains latent under deterministic decoding\. At training time, we further show that*fine\-tuning with knowledge\-augmented data enables deeper internalization of experiential knowledge, yielding additional gains beyond context\-based retrieval alone*\. We adopt both supervised fine\-tuning \(SFT\) and reinforcement learning \(RL\), and find that RL leads to more substantial performance improvements\.
Based on these findings, we proposeKATE\(Knowledge\-AugmentedToolExecution\), a unified framework that systematically incorporates experiential knowledge across acquisition, activation, and training stages\. KATE integrates instance\-level knowledge with width\-based parallel sampling to effectively activate latent knowledge during inference, and further internalizes such knowledge through post\-training\. Empirical results demonstrate that KATE achieves significant and consistent improvements in tool\-use accuracy across model scales and task settings\.
Our work makes three key contributions:
- •We systematically investigate how different granularities of tool\-usage knowledge affect tool execution\. By designing multiple experiential knowledge acquisition strategies, we show that simple, high\-quality instance\-level knowledge alone can already provide effective improvements\.
- •We study how tool\-related knowledge is activated during both inference and training\. We analyze reasoning depth and width and find that parallel sampling with aggregation more effectively activates latent knowledge\. And post\-training yields additional gains beyond context\-based knowledge injection\.
- •Our methodKATEis a unified knowledge\-augmented tool execution framework that integrates instance\-level experience with width\-expanded inference and knowledge\-aware training\. KATE achieves state\-of\-the\-art performance in both training\-free and training\-based settings\. On the Qwen3\-8B model of dataset BFCL\-V3, our method improves average performance by 15% compared to direct tool use\.
## 2Preliminary
Multi\-turn tool\-utilization by LLMs can be formulated as a Markov decision process \(MDP\)\. At interaction steptt, conditioned on the set of available tools𝒯\\mathcal\{T\}, the system promptSSand the previous dialogue historyℋt\\mathcal\{H\}\_\{t\}, the core objective of the LLMPPis to predict the next actionot\+1o\_\{t\+1\}based on the current context:
ot\+1=P\(𝒯,S,ℋt\)o\_\{t\+1\}=P\(\\mathcal\{T\},S,\\mathcal\{H\}\_\{t\}\)\(1\)
whereot\+1o\_\{t\+1\}representing either a tool invocationct\+1c\_\{t\+1\}or a final natural language responseat\+1a\_\{t\+1\}\.
After the model emitsot\+1o\_\{t\+1\}, the environment returns external feedbackrt\+1r\_\{t\+1\}, which can be categorized as either atool execution responsert\+1envr^\{\\text\{env\}\}\_\{t\+1\}or auser replyrt\+1userr^\{\\text\{user\}\}\_\{t\+1\}\. The dialogue history is then updated as follows:
ℋt\+1=ℋt∪ot\+1∪rt\+1\\mathcal\{H\}\_\{t\+1\}=\\mathcal\{H\}\_\{t\}\\cup o\_\{t\+1\}\\cup r\_\{t\+1\}\(2\)
This updated state serves as the context for the subsequent decision step, thereby completing the Markovian interaction loop\.
## 3Method
We present the study and method of experiential knowledge in tool execution, examining how it is acquired, activated, and internalized\.
### 3\.1Knowledge Acquisition and Integration
Knowledge plays an essential role in successful tool execution\. We systematically investigate how different types of experiential knowledge influence model performance, as well as how such knowledge can be efficiently retrieved and utilized during inference through a structured knowledge base\.
#### 3\.1\.1Knowledge Base Construction
To study the role of different experiential knowledge, we categorize experiential knowledge into two levels based on granularity:Instance\-level Knowledge, which provides concrete, example\-specific guidance, andIntent\-level Knowledge, which captures higher\-level abstractions of task objectives and decision patterns\.
For Instance\-level Knowledge, we consider two forms: \(1\) Scenario Trajectory Knowledge\(ST\): Ground\-truth tool execution trajectories are directly used as knowledge inputs during inference, providing explicit step\-by\-step guidance\. \(2\) Experience Summary Knowledge\(ES\): An LLM is prompted with paired user queries and ground\-truth trajectories from the training data to generate concise, high\-level operational guidelines in textual form\.
For intent\-level knowledge, we observe that each user query in a scenario naturally reflects a specific intent \(e\.g\., information retrieval, shopping online\)\. These intents serve as the fundamental components of more complex goals, and tool invocation patterns are often consistent within the same intent category\. Thus, we construct two forms of intent\-level knowledge: \(1\) Script\-Style Intent Clustering Knowledge\(SIC\): We generate the intents of user questions, cluster training examples accordingly and summarize tool\-usage scripts with an LLM in a semi\-structured form\. \(2\) Textual\-Style Intent Clustering Knowledge\(TIC\): We additionally provide unstructured, natural\-language descriptions that capture the operational strategies for each intent category based on the cluster result\. The details of knowledge base construction are in Appendix[A](https://arxiv.org/html/2606.10875#A1)and the examples of user’s questions with retrieval knowledge are in Appendix[B](https://arxiv.org/html/2606.10875#A2)\.
To construct knowledge base𝒦\\mathcal\{K\}, we build the retrieval base by encoding and storing the user queries into vector representations using a language model encoder for Instance\-level Knowledge\. For Intent\-level knowledge, we encode the inferred user intentsIIrather than the raw queries\. Together, these knowledge forms differ in both granularity and representation, enabling a systematic study of how experiential knowledge influences tool\-use learning and inference\.
#### 3\.1\.2Knowledge Retrieval
During inference, if the feedbackrt\+1r\_\{t\+1\}is a user queryrt\+1userr^\{\\text\{user\}\}\_\{t\+1\}, we automatically retrieve relevant knowledge from an external knowledge base\.
Figure 1:The augmentation results of different experiential knowledge\. “All” indicates incorporating all the experiential knowledge\.For Instance\-level Knowledge, we employ the same language model encoder to map the user queryrt\+1userr^\{\\text\{user\}\}\_\{t\+1\}into a vector representation and perform similarity matching against the stored knowledge embeddings\. Knowledge entries whose similarity scores exceed a predefined thresholdppare ranked, and the top\-KKentries are selected as retrieved knowledge\. These retrieved entries are then concatenated with the original user query and provided to the model as augmented input\.
For intent\-level knowledge, we first prompt the model to explicitly infer the user’s current intentIt\+1I\_\{t\+1\}\. The inferred intent is subsequently encoded and used as the query to retrieve intent\-level knowledge\. The knowledge entry corresponding to the most similar intent is selected as the final retrieval result \(KK=1\)\.
Formally, the retrieval operation is defined as:
ℛ\(Q\)=Top\-K\(𝐤j\|𝐤j∈𝒦,sim\(Q,𝐤j\)≥p\)\\mathcal\{R\}\(Q\)=\\operatorname\{Top\\text\{\-\}K\}\\Big\(\\mathbf\{k\}\_\{j\}\\big\|\\mathbf\{k\}\_\{j\}\\in\\mathcal\{K\},\\text\{sim\}\(Q,\\mathbf\{k\}\_\{j\}\)\\geq p\\Big\)\(3\)whereQQdenotes either the user queryrt\+1userr^\{\\text\{user\}\}\_\{t\+1\}or the inferred intentIt\+1I\_\{t\+1\}, and𝒦\\mathcal\{K\}represents the knowledge base\. For intent\-level retrieval, we setK=1K=1\.
When a user message is observed, the retrieved knowledge is incorporated into the interaction as:
rt\+1re=rt\+1∪ℛ\(Q\),ifrt\+1=rtuserr^\{\\text\{re\}\}\_\{t\+1\}=r\_\{t\+1\}\\cup\\mathcal\{R\}\(Q\),\\quad\\text\{if \}r\_\{t\+1\}=r^\{\\text\{user\}\}\_\{t\}\(4\)
and the dialogue history augmented with retrieved knowledge is updated as:
ℋt\+1re=ℋtre∪ot\+1,rt\+1re\\mathcal\{H\}^\{\\text\{re\}\}\_\{t\+1\}=\\mathcal\{H\}^\{\\text\{re\}\}\_\{t\}\\cup\{o\_\{t\+1\},r^\{\\text\{re\}\}\_\{t\+1\}\}\(5\)
We conduct analysis experiments on the BFCL\-V3Patil et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib18)\)benchmark\. We evaluate our approach on Qwen3\-8B and Qwen3\-32BYang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib33)\), systematically comparing different experiential knowledge types and integration settings, as shown in Figure[1](https://arxiv.org/html/2606.10875#S3.F1)\. The experimental results show that: \(1\)Instance\-level knowledge consistently yields greater performance improvements than intent\-level knowledge\. This is likely because trajectory\-level information provides fine\-grained and directly executable guidance, whereas intent\-level knowledge requires multi\-step abstraction and intent matching, which may introduce additional errors due to imperfect intent inference by LLMs\. \(2\)Scenario Trajectory Knowledge \(ST\) and Experience Summary Knowledge \(ES\), as well as their combination, exhibit comparable overall performance, with their relative effectiveness varying across different tasks and model backbones\. This suggests that no single form of instance\-level knowledge universally dominates, and that task\-specific and model\-specific adaptation is necessary to achieve optimal performance\. \(3\)We observe that simply stacking multiple types of knowledge does not guarantee further gains\. Naive combinations may lead to redundancy or interference among knowledge sources, underscoring that effective integration and utilization strategies are more important than the quantity of experiential knowledge provided\. This observation motivates the need for structured retrieval and selective activation mechanisms, rather than indiscriminate knowledge aggregation\.
### 3\.2Knowledge Activation and Utilization
Given a fixed amount of knowledge, a central question is how to more effectively activate a model’s tool\-use capabilities to produce reliable and accurate tool outputs\. We investigate this problem from both the training\-time and inference\-time perspectives\.
#### 3\.2\.1Inference\-Time
At inference time, we identify thereasoning depthandreasoning widthas two key factors that influence knowledge activation\. Based on this observation, we explore two main strategies:Depth\-based Prompt\-Hint Activation, which encourages deeper and more detailed reasoning, andWidth\-Based Parallel Sampling with Aggregation, which expands the reasoning space by exploring multiple candidate trajectories\.
Depth\-based Prompt\-Hint Activation\.Prompt engineering enhances model reasoning by shaping the input prompt\. depth\-based Prompt\-Hint methods aim to increase reasoning depth by explicitly providing guidance that encourages structured reasoning patterns\. Concretely, after each tool execution, a hint is appended as a user\-role message before the next tool decision, prompting the model to explicitly consider tool selection and action planning\. Based on the error\-prone scenarios identified in the analysis in[Patil et al\.](https://arxiv.org/html/2606.10875#bib.bib18)Patil et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib18)\), we design the three prompt hints to target the model’s common failure modes\. These hints are constructed from three complementary perspectives:*intent*,*reflection*, and*state*\. Specifically, the model is instructed to reason over these aspects and base subsequent tool calls on the resulting structured analysis\.
Figure 2:The Prompt\-Hint results on BFCL\-V3 dataset\.As shown in Figure[2](https://arxiv.org/html/2606.10875#S3.F2), prompt hints yield improvements in certain scenarios\. However, the overall results indicate that such prompts often yield only limited gains and may even degrade tool\-calling accuracy\. A plausible explanation is that complex tool\-use tasks involve multiple interacting factors, andexplicitly constraining the reasoning process to predefined perspectives can inadvertently restrict the model’s flexibility, causing it to overlook other critical information\.
Width\-based Parallel Sampling with Aggregation\.
Parallel sampling has proven effective in improving reasoning reliability across a wide range of LLM tasksWang et al\. \([2023](https://arxiv.org/html/2606.10875#bib.bib29)\); Zheng et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib37)\); Pan et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib17)\)\. We extend this technique to multi\-step tool execution and systematically evaluate its impact on tool\-calling accuracy\. Rather than generating an entire tool\-call sequence in a single pass, we apply parallel sampling at each interaction step, where the model predicts the next action conditioned on the current dialogue history\. At each step, multiple candidate actions are generated independently\. If all candidates agree, the action is executed directly, otherwise, an aggregation function is applied to derive the final decision\. The overall procedure is summarized in Algorithm[1](https://arxiv.org/html/2606.10875#alg1)\. We investigate two key factors: aggregation strategies and sampling scale\.
Figure 3:The average results of parallel sampling with different sampling size\.We apply and evaluate the following aggregation strategies𝒜\(⋅\)\\mathcal\{A\(\\cdot\)\}: \(1\)Self\-consistencyWang et al\. \([2023](https://arxiv.org/html/2606.10875#bib.bib29)\), which selects the final action by majority voting or consensus among parallel\-sampled candidates; \(2\)LLM\-based aggregation,which feeds multiple sampled candidates back to the model to select the most appropriate action\.
Figure 4:The inference and training framework of the methodKATE\.As shown in Figure[3](https://arxiv.org/html/2606.10875#S3.F3), results demonstrate that: \(1\)Effectiveness of parallel sampling\.Parallel sampling substantially improves tool\-calling performance, suggesting that greedy decoding with zero temperature fails to fully activate the model’s internal knowledge required for correct tool usage\. Increasing the sampling temperature not only elicits relevant knowledge more effectively but also increases the frequency with which such knowledge appears, leading to more accurate tool invocation decisions\. \(2\)Advantages of self\-consistency\.Self\-consistency demonstrates greater stability and higher accuracy than LLM\-based aggregation, with performance remaining largely insensitive to the sampling scale\. This indicates that strong results can be achieved with a relatively small number of parallel samples\. However, due to the diversity of textual outputs, self\-consistency is less suitable for tasks requiring structured or diverse responses, such as code\-based agent tool useTrivedi et al\. \([2024](https://arxiv.org/html/2606.10875#bib.bib27)\)\. \(3\)Performance of LLM\-based aggregation\.While LLM\-based aggregation can further improve performance, its effectiveness does not increase monotonically with the number of parallel samples\. This instability may stem from the model’s limited capacity to reason over long contexts containing many candidate actions\. These results suggest that expanding the width of the reasoning is more effective than encouraging more depth thinking\. The completed results is illstruated in Figure[7](https://arxiv.org/html/2606.10875#A3.F7)\.
#### 3\.2\.2Training\-Time
We further investigate methodologies for internalizing knowledge into the model’s parameters\. We argue that inference\-time reasoning enhancement alone is insufficient to fully improve a model’s tool\-use capability, as knowledge injected through context is inherently limited\. To achieve more robust gains, we further enhance tool\-calling accuracy through post\-training\. Motivated by the hint\-assisted reinforcement learningLiu et al\. \([2025a](https://arxiv.org/html/2606.10875#bib.bib13)\); Yan et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib32)\), we incorporate experiential knowledge directly into the training context by pre\-inserting it as guidance signals\. This design increases the probability of sampling correct reasoning trajectories in RL and thereby improving the overall efficacy of the training process\.
Our experimental framework spans the primary stages of the post\-training regime, specifically SFT and RL\. During the data preparation phase, we augment the training set by concatenating experiential knowledge retrieved from a structured knowledge base with the original user instructions to get the enhanced data\. These augmented samples are then seamlessly integrated into the training pipeline\. Through this design, we aim to quantify if there is the additive gain by incorporating training stage with provided experiential knowledge, analyzing its role in guiding the model toward more accurate tool selection\.
### 3\.3KATE
Based on the above analysis, we propose our methodKATE, which explicitly leverages knowledge across different stages of tool use\. For the knowledge acquisition stage, we adopt Scenario\-Trajectory \(ST\) knowledge to provide structured and reliable experience signals, as even the simple trajectory knowledge is effective\. For the knowledge activation stage, we employ a depth\-based parallel sampling and LLM\-based aggregation strategy to effectively stimulate and utilize the acquired knowledge during reasoning\. To further validate the effectiveness of training under our proposed knowledge\-usage framework, we conduct additional experiments for training\. These components demonstrate how knowledge systematically supports tool use at acquisition, activation, and training stages\. The framework of our method is shown in Figure[4](https://arxiv.org/html/2606.10875#S3.F4)\. The inference process is in Algorithm[2](https://arxiv.org/html/2606.10875#alg2)\.
## 4Experiment
Table 1:Experimental results on BFCL\-V3\. Blue labels show absolute improvement over FC baseline\. Green rows \(↪\\hookrightarrow\) denote inference\-time variants of ablation results, while non\-highlighted rows \(▶\\blacktriangleright\) indicate post\-training results on Qwen3\-8B\. “r PS\-Con\.” means replace the LLM\-based Aggregation with self\-consistency\.### 4\.1Datasets
We use BFCL\-V3Patil et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib18)\)and AppWorldTrivedi et al\. \([2024](https://arxiv.org/html/2606.10875#bib.bib27)\)as our evaluation datasets\. BFCL\-V3 is a multi\-step tool\-use benchmark, which evaluates tool\-use capability across diverse multi\-turn interactive environments\. Our study focuses on complex multi\-turn interaction tasks spanning four scenarios in BFCL\-V3, includingBase,Miss Func,Miss Param, andLong Context\. AppWorld is a benchmark of multi\-step tasks for interactive coding agents, which use state\-based programmatic evaluation approach\. A task is successful if the final environment state matches the goal and all unit tests pass\. It also provides two metrics: Task Goal Completion \(TGC\) and Scenario Goal Completion \(SGC\)\.
### 4\.2Implementation Details
In BFCL\-V3 evaluation, we select 100 samples from the Base scenario as the training set, with the remaining data used for testing\. To prevent data leakage, we partition the dataset by sample ID, using even\-numbered instances for training and odd\-numbered instances for testing\. For AppWorld, we adopt a code\-based tool\-calling setting\. Specifically, we distill the ground\-truth solution procedures using GPT\-4o, to obtain correct code\-level reasoning steps to construct a knowledge base\. Evaluation is conducted on test\-normal \(Test\-N\) and test\-challenge \(Test\-C\)\. The details are in Appendix[D](https://arxiv.org/html/2606.10875#A4), and training details is in Appendix[G](https://arxiv.org/html/2606.10875#A7)\.
Test\-NTest\-CAverageMethodTGCSGCTGCSGCQwen3\-8BReAct10\.11\.83\.80\.74\.1ReAct \+ ST26\.210\.74\.80\.710\.6Memp22\.07\.13\.607\.92KATE\(Ours\)26\.810\.75\.50\.710\.92Qwen3\-32BReAct16\.71\.86\.21\.46\.52ReAct \+ ST27\.41\.88\.609\.45Memp22\.65\.49\.11\.49\.62KATE\(Ours\)32\.710\.77\.40\.712\.87Table 2:Performance comparison on AppWorld\.
### 4\.3Baselines
For dataset BFCL\-V3, we adopt the following baselines: \(1\) Function Calling \(FC\) adopts the default tool\-calling format\. \(2\) Prompt\-based methods \(Prompt\) use the default setting prompt in BFCL\-V3 dataset\. \(3\) MempFang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib5)\)is a universal framework that enables AI agents to transform past task trajectories into reusable skills through the systematic management of procedural memory, while it achieves lifelong learning by continuously updating its trajectory repository, our experiments utilize a static, non\-updating version for the purpose of fair comparison\. For AppWorld, we adopt ReActYao et al\. \([2023](https://arxiv.org/html/2606.10875#bib.bib34)\)and Memp as the baseline\.
### 4\.4Result
Table[1](https://arxiv.org/html/2606.10875#S4.T1)presents the performance of various methods on the BFCL\-V3 dataset\. Both Qwen3\-8B and Qwen3\-32B show substantial improvements under our method, achieving roughly a performance gain over the baselines\. We observe that our approach not only enhances performance on theBase scenario, but also yields gains onMiss Func,Miss Param, andLong Contexttasks\. By empowering models with explicit experiential knowledge, KATE even allows the Qwen3 series to outperform state\-of\-the\-art models like GPT\-4\.1 and GPT\-5 in specific tool\-use benchmarks\. Furthermore, fine\-tuning confirms that internalizing knowledge into parameters provides benefits that exceed prompt\-based injection alone\.
As illustrated in Table[2](https://arxiv.org/html/2606.10875#S4.T2), on AppWorld, KATE maintains a clear advantage over the ReAct baseline\. However, in the Test\-Challenge \(Test\-C\) scenario, while KATE outperforms the vanilla ReAct and ReAct \+ ST, its improvement is slightly lower than Memp for some case\. This stems from the extreme complexity of Test\-C tasks: when a task exceeds the model’s inherent reasoning capacity, parallel sampling may fail to generate valid trajectories, and the presence of multiple candidate plans can introduce noise that interferes with final decision\-making\. This suggests a trade\-off between reasoning width and task complexity\. The reason is that for the too difficult question, model do not have the ability to answer, so the performance may have little lower than Memp in certain metrics\. Importantly, this is not necessarily due to noise introduced by parallel sampling\. Rather, for these hard tasks, the reasoning content produced by the model is generally incorrect, so aggregation tends to yield mostly noisy outputs\. We believe that the most effective way to improve accuracy in such cases is either to provide additional training or supply higher\-quality procedural knowledge to support the model during the reasoning process\. The efficiency and more results are in Appendix[E](https://arxiv.org/html/2606.10875#A5)and Appendix[F](https://arxiv.org/html/2606.10875#A6), respectively\.
### 4\.5Ablation Result
As shown in Table[1](https://arxiv.org/html/2606.10875#S4.T1), ablation studies reveal critical insights into our components\. “w/o PS” means without parallel sampling, it indicates that simply incorporating knowledge provides a baseline improvement\. However, the gains are sightly lower than the full KATE framework\. This suggests that without an activation mechanism, the model fails to fully utilize the injected knowledge\. “w/o Exp” means without experiential knowledge\. It shows that utilizing parallel sampling alone improves performance, but the model’s upper bound remains limited\. This indicates that task\-specific experiential knowledge is essential for supplementing the model’s inherent reasoning\. Replacing LLM\-based aggregation with self\-consistency leads to gains on the Qwen3\-32B model in some testing results, demonstrating the robustness of this strategy\.
Figure 5:The Error type analysis of different methods on Qwen3\-8B using dataset BFCL\-V3 Base scenarios\.
### 4\.6Error Type Analysis
As presented in Figure[5](https://arxiv.org/html/2606.10875#S4.F5), we use gpt\-5\-mini to classify the error type\. We find that planning and reasoning errors constitute the largest failure mode across all methods, but are substantially reduced by trajectory\-level supervision and further by parallel sampling\. This indicates that experiential knowledge can present the model to a broader set of previously observed scenarios, thereby improving its ability to reason and reducing reasoning\-related failures\. Parallel sampling also significantly mitigates premature termination errors, improving robustness in long\-horizon execution\.
### 4\.7Training Analysis
As shown in Table[1](https://arxiv.org/html/2606.10875#S4.T1), analysis of the Qwen3\-8B fine\-tuning experiments shows that RL is more effective than SFT for knowledge internalization\. While the “SFT \+ RL” sequence is effective, we found that Direct RL \(without prior SFT\) yields the best performance\. This suggests that for sufficiently strong base models, RL better explores and reinforces tool\-calling capabilities than SFT within the same data budget\. As shown in Figure[6](https://arxiv.org/html/2606.10875#A3.F6), while the difference between “SFT \+ RL” and “RL” is subtle, RL consistently maintains an upper hand in convergence quality and final accuracy\.
## 5Related Work
Tool Learning\.LLMs have recently been extended with tool\-use capabilitiesHao et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib6)\); Prabhakar et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib20)\); Qin et al\. \([2024](https://arxiv.org/html/2606.10875#bib.bib22)\), enabling them to interact with external APIs and environments beyond pure text generationLu et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib15)\)\. Due to the complexity of multi\-turn interactive tool\-use tasks, researchers typically enhance tool\-learning capabilities by optimizing reasoning frameworksQin et al\. \([2024](https://arxiv.org/html/2606.10875#bib.bib22)\)and fine\-tuning model parametersLu et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib15)\)\. With the adoption of reinforcement learning in LLMsHu \([2025](https://arxiv.org/html/2606.10875#bib.bib7)\); Shao et al\. \([2024](https://arxiv.org/html/2606.10875#bib.bib24)\), an increasing number of tasks leverage RL to strengthen a model’s ability to invoke toolsQian et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib21)\); Jiang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib8)\); Xue et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib31)\)\. However, few studies have emphasized the critical role of knowledge in tool\-use tasks\.
Experiential Knowledge\.Experiential knowledge refers to the experiences, memories, and thought processes involved in deriving an answerFang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib5)\); Cai et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib1)\)\. By applying such knowledge to downstream tasks, models are provided with experiential guidance for similar scenarios, thereby facilitating correct responsesCao et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib2)\); Tang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib26)\); Zheng et al\. \([2024](https://arxiv.org/html/2606.10875#bib.bib36)\); Chen et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib3)\); Chhikara et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib4)\); Wang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib30)\)\. Increasingly, recent methods leverage procedural experience to enhance model capabilities during both reasoning and training stages\. But they don’t study the role of experiential knowledge in different stage of tool use, we systematically investigate the full lifecycle of knowledge in tool learning\. At the acquisition stage, prior worksCao et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib2)\); Fang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib5)\); Wang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib30)\); Zhou et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib38)\); Tang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib26)\); Cai et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib1)\)often focus on improving specific knowledge construction process\. In contrast, we introduce and compare knowledge at different levels of abstraction \(instance\-level trajectories and intent\-level scripts\), and analyze their distinct effects\. This allows us to understand which type of knowledge is most actionable for tool\-using agents\. At activation stage, instead of designing more fine\-grained retrieval mechanisms like previous worksCao et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib2)\); Zhou et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib38)\)to retrieve most useful knowledge, we ask how already acquired knowledge should be utilized during inference with a simple top\-k retriever\.
## 6Conclusion
In this work, we investigate how do knowledge influence LLMs in multi\-turn tool\-use tasks\. We categorize experiential knowledge into instance\-level and intent\-level forms and systematically evaluate their impact on tool execution\. We further study how such knowledge can be effectively activated during inference and find that increasing reasoning breadth is particularly effective in eliciting latent experiential knowledge\. We additionally fine\-tune the model to further consolidate knowledge\-grounded reasoning\. By integrating knowledge and tool use across the stages of knowledge construction, inference\-time activation, and training\-time refinement, we demonstrate how experiential knowledge can systematically enhance tool execution capabilities\.
## Limitations
Our experiments demonstrate that incorporating knowledge can effectively enhance tool\-calling performance, and that explicit knowledge activation further improves tool\-use accuracy\. Nevertheless, our evaluation is conducted on a relatively small\-scale knowledge base, and the impact of scaling the knowledge repository remains unexplored\. Moreover, our current study is limited to text\-only tool\-use scenarios, leaving the extension to multimodal tasks as an important direction for future work\.
## Ethics Statement
Our work does not introduce ethical concerns\. This paper utilized AI assistance for language polishing of the manuscript, including vocabulary correction and spell checking\.
## Acknowledgments
This work is supported by the National Natural Science Foundation of China \(No\. U24A20335\)\.
## References
- Cai et al\. \(2025\)Yuxuan Cai, Yipeng Hao, Jie Zhou, Hang Yan, Zhikai Lei, Rui Zhen, Zhenhua Han, Yutao Yang, Junsong Li, Qianjun Pan, Tianyu Huai, Qin Chen, Xin Li, Kai Chen, Bo Zhang, Xipeng Qiu, and Liang He\. 2025\.[Building self\-evolving agents via experience\-driven lifelong learning: A framework and benchmark](https://doi.org/10.48550/ARXIV.2508.19005)\.*CoRR*, abs/2508\.19005\.
- Cao et al\. \(2025\)Zouying Cao, Jiaji Deng, Li Yu, Weikang Zhou, Zhaoyang Liu, Bolin Ding, and Hai Zhao\. 2025\.[Remember me, refine me: A dynamic procedural memory framework for experience\-driven agent evolution](https://arxiv.org/abs/2512.10696)\.*Preprint*, arXiv:2512\.10696\.
- Chen et al\. \(2025\)Silin Chen, Shaoxin Lin, Xiaodong Gu, Yuling Shi, Heng Lian, Longfei Yun, Dong Chen, Weiguo Sun, Lin Cao, and Qianxiang Wang\. 2025\.[Swe\-exp: Experience\-driven software issue resolution](https://doi.org/10.48550/ARXIV.2507.23361)\.*CoRR*, abs/2507\.23361\.
- Chhikara et al\. \(2025\)Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav\. 2025\.[Mem0: Building production\-ready AI agents with scalable long\-term memory](https://doi.org/10.48550/ARXIV.2504.19413)\.*CoRR*, abs/2504\.19413\.
- Fang et al\. \(2025\)Runnan Fang, Yuan Liang, Xiaobin Wang, Jialong Wu, Shuofei Qiao, Pengjun Xie, Fei Huang, Huajun Chen, and Ningyu Zhang\. 2025\.[Memp: Exploring agent procedural memory](https://doi.org/10.48550/ARXIV.2508.06433)\.*CoRR*, abs/2508\.06433\.
- Hao et al\. \(2025\)Yupu Hao, Pengfei Cao, Zhuoran Jin, Huanxuan Liao, Yubo Chen, Kang Liu, and Jun Zhao\. 2025\.[CITI: enhancing tool utilizing ability in large language models without sacrificing general performance](https://doi.org/10.1609/AAAI.V39I22.34573)\.In*AAAI\-25, Sponsored by the Association for the Advancement of Artificial Intelligence, February 25 \- March 4, 2025, Philadelphia, PA, USA*, pages 23996–24004\. AAAI Press\.
- Hu \(2025\)Jian Hu\. 2025\.[REINFORCE\+\+: A simple and efficient approach for aligning large language models](https://doi.org/10.48550/ARXIV.2501.03262)\.*CoRR*, abs/2501\.03262\.
- Jiang et al\. \(2025\)Dongfu Jiang, Yi Lu, Zhuofeng Li, Zhiheng Lyu, Ping Nie, Haozhe Wang, Alex Su, Hui Chen, Kai Zou, Chao Du, Tianyu Pang, and Wenhu Chen\. 2025\.[Verltool: Towards holistic agentic reinforcement learning with tool use](https://doi.org/10.48550/ARXIV.2509.01055)\.*CoRR*, abs/2509\.01055\.
- Jin et al\. \(2025\)Bowen Jin, Hansi Zeng, Zhenrui Yue, Dong Wang, Hamed Zamani, and Jiawei Han\. 2025\.[Search\-r1: Training llms to reason and leverage search engines with reinforcement learning](https://doi.org/10.48550/ARXIV.2503.09516)\.*CoRR*, abs/2503\.09516\.
- \(10\)Jiachun Li, Zhuoran Jin, Tianyi Men, Yupu Hao, Kejian Zhu, Lingshuai Wang, Dongqi Huang, Longxiang Wang, Shengjia Hua, Lu Wang, and 1 others\.Agentic environment engineering for large language models: A survey of environment modeling, synthesis, evaluation, and application\.
- Li et al\. \(2023\)Minghao Li, Yingxiu Zhao, Bowen Yu, Feifan Song, Hangyu Li, Haiyang Yu, Zhoujun Li, Fei Huang, and Yongbin Li\. 2023\.[Api\-bank: A comprehensive benchmark for tool\-augmented llms](https://doi.org/10.18653/V1/2023.EMNLP-MAIN.187)\.In*Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023, Singapore, December 6\-10, 2023*, pages 3102–3116\. Association for Computational Linguistics\.
- Li et al\. \(2025\)Xuefeng Li, Haoyang Zou, and Pengfei Liu\. 2025\.[Torl: Scaling tool\-integrated RL](https://doi.org/10.48550/ARXIV.2503.23383)\.*CoRR*, abs/2503\.23383\.
- Liu et al\. \(2025a\)Mingyang Liu, Gabriele Farina, and Asuman E\. Ozdaglar\. 2025a\.[UFT: unifying supervised and reinforcement fine\-tuning](https://doi.org/10.48550/ARXIV.2505.16984)\.*CoRR*, abs/2505\.16984\.
- Liu et al\. \(2025b\)Weiwen Liu, Xu Huang, Xingshan Zeng, Xinlong Hao, Shuai Yu, Dexun Li, Shuai Wang, Weinan Gan, Zhengying Liu, Yuanqing Yu, Zezhong Wang, Yuxian Wang, Wu Ning, Yutai Hou, Bin Wang, Chuhan Wu, Xinzhi Wang, Yong Liu, Yasheng Wang, and 8 others\. 2025b\.[Toolace: Winning the points of LLM function calling](https://openreview.net/forum?id=8EB8k6DdCU)\.In*The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24\-28, 2025*\. OpenReview\.net\.
- Lu et al\. \(2025\)Siyuan Lu, Zechuan Wang, Hongxuan Zhang, Qintong Wu, Leilei Gan, Chenyi Zhuang, Jinjie Gu, and Tao Lin\. 2025\.[Don’t just fine\-tune the agent, tune the environment](https://doi.org/10.48550/ARXIV.2510.10197)\.*CoRR*, abs/2510\.10197\.
- Mialon et al\. \(2023\)Grégoire Mialon, Roberto Dessì, Maria Lomeli, Christoforos Nalmpantis, Ramakanth Pasunuru, Roberta Raileanu, Baptiste Rozière, Timo Schick, Jane Dwivedi\-Yu, Asli Celikyilmaz, Edouard Grave, Yann LeCun, and Thomas Scialom\. 2023\.[Augmented language models: a survey](https://openreview.net/forum?id=jh7wH2AzKK)\.*Trans\. Mach\. Learn\. Res\.*, 2023\.
- Pan et al\. \(2025\)Jiayi Pan, Xiuyu Li, Long Lian, Charlie Snell, Yifei Zhou, Adam Yala, Trevor Darrell, Kurt Keutzer, and Alane Suhr\. 2025\.[Learning adaptive parallel reasoning with language models](https://doi.org/10.48550/ARXIV.2504.15466)\.*CoRR*, abs/2504\.15466\.
- Patil et al\. \(2025\)Shishir G\. Patil, Huanzhi Mao, Fanjia Yan, Charlie Cheng\-Jie Ji, Vishnu Suresh, Ion Stoica, and Joseph E\. Gonzalez\. 2025\.[The berkeley function calling leaderboard \(BFCL\): from tool use to agentic evaluation of large language models](https://openreview.net/forum?id=2GmDdhBdDk)\.In*Forty\-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13\-19, 2025*\. OpenReview\.net\.
- Plaat et al\. \(2025\)Aske Plaat, Max J\. van Duijn, Niki van Stein, Mike Preuss, Peter van der Putten, and Kees Joost Batenburg\. 2025\.[Agentic large language models, a survey](https://doi.org/10.48550/ARXIV.2503.23037)\.*CoRR*, abs/2503\.23037\.
- Prabhakar et al\. \(2025\)Akshara Prabhakar, Zuxin Liu, Ming Zhu, Jianguo Zhang, Tulika Awalgaonkar, Shiyu Wang, Zhiwei Liu, Haolin Chen, Thai Hoang, Juan Carlos Niebles, Shelby Heinecke, Weiran Yao, Huan Wang, Silvio Savarese, and Caiming Xiong\. 2025\.[Apigen\-mt: Agentic pipeline for multi\-turn data generation via simulated agent\-human interplay](https://doi.org/10.48550/ARXIV.2504.03601)\.*CoRR*, abs/2504\.03601\.
- Qian et al\. \(2025\)Cheng Qian, Emre Can Acikgoz, Qi He, Hongru Wang, Xiusi Chen, Dilek Hakkani\-Tür, Gokhan Tur, and Heng Ji\. 2025\.[Toolrl: Reward is all tool learning needs](https://doi.org/10.48550/ARXIV.2504.13958)\.*CoRR*, abs/2504\.13958\.
- Qin et al\. \(2024\)Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, Sihan Zhao, Lauren Hong, Runchu Tian, Ruobing Xie, Jie Zhou, Mark Gerstein, Dahai Li, Zhiyuan Liu, and Maosong Sun\. 2024\.[Toolllm: Facilitating large language models to master 16000\+ real\-world apis](https://openreview.net/forum?id=dHng2O0Jjr)\.In*The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7\-11, 2024*\. OpenReview\.net\.
- Qu et al\. \(2025\)Changle Qu, Sunhao Dai, Xiaochi Wei, Hengyi Cai, Shuaiqiang Wang, Dawei Yin, Jun Xu, and Ji\-Rong Wen\. 2025\.[From exploration to mastery: Enabling llms to master tools via self\-driven interactions](https://openreview.net/forum?id=QKBu1BOAwd)\.In*The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24\-28, 2025*\. OpenReview\.net\.
- Shao et al\. \(2024\)Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, Y\. K\. Li, Y\. Wu, and Daya Guo\. 2024\.[Deepseekmath: Pushing the limits of mathematical reasoning in open language models](https://doi.org/10.48550/ARXIV.2402.03300)\.*CoRR*, abs/2402\.03300\.
- Shinn et al\. \(2023\)Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao\. 2023\.[Reflexion: language agents with verbal reinforcement learning](http://papers.nips.cc/paper_files/paper/2023/hash/1b44b878bb782e6954cd888628510e90-Abstract-Conference.html)\.In*Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 \- 16, 2023*\.
- Tang et al\. \(2025\)Xiangru Tang, Tianrui Qin, Tianhao Peng, Ziyang Zhou, Daniel Shao, Tingting Du, Xinming Wei, Peng Xia, Fang Wu, He Zhu, Ge Zhang, Jiaheng Liu, Xingyao Wang, Sirui Hong, Chenglin Wu, Hao Cheng, Chi Wang, and Wangchunshu Zhou\. 2025\.[Agent KB: leveraging cross\-domain experience for agentic problem solving](https://doi.org/10.48550/ARXIV.2507.06229)\.*CoRR*, abs/2507\.06229\.
- Trivedi et al\. \(2024\)Harsh Trivedi, Tushar Khot, Mareike Hartmann, Ruskin Manku, Vinty Dong, Edward Li, Shashank Gupta, Ashish Sabharwal, and Niranjan Balasubramanian\. 2024\.[Appworld: A controllable world of apps and people for benchmarking interactive coding agents](https://doi.org/10.18653/V1/2024.ACL-LONG.850)\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\), ACL 2024, Bangkok, Thailand, August 11\-16, 2024*, pages 16022–16076\. Association for Computational Linguistics\.
- Wang et al\. \(2024\)Mengru Wang, Yunzhi Yao, Ziwen Xu, Shuofei Qiao, Shumin Deng, Peng Wang, Xiang Chen, Jia\-Chen Gu, Yong Jiang, Pengjun Xie, Fei Huang, Huajun Chen, and Ningyu Zhang\. 2024\.[Knowledge mechanisms in large language models: A survey and perspective](https://doi.org/10.18653/V1/2024.FINDINGS-EMNLP.416)\.In*Findings of the Association for Computational Linguistics: EMNLP 2024, Miami, Florida, USA, November 12\-16, 2024*, pages 7097–7135\. Association for Computational Linguistics\.
- Wang et al\. \(2023\)Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V\. Le, Ed H\. Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou\. 2023\.[Self\-consistency improves chain of thought reasoning in language models](https://openreview.net/forum?id=1PL1NIMMrw)\.In*The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1\-5, 2023*\. OpenReview\.net\.
- Wang et al\. \(2025\)Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried, and Graham Neubig\. 2025\.[Agent workflow memory](https://openreview.net/forum?id=NTAhi2JEEE)\.In*Forty\-second International Conference on Machine Learning, ICML 2025, Vancouver, BC, Canada, July 13\-19, 2025*\. OpenReview\.net\.
- Xue et al\. \(2025\)Zhenghai Xue, Longtao Zheng, Qian Liu, Yingru Li, Xiaosen Zheng, Zejun Ma, and Bo An\. 2025\.[Simpletir: End\-to\-end reinforcement learning for multi\-turn tool\-integrated reasoning](https://doi.org/10.48550/ARXIV.2509.02479)\.*CoRR*, abs/2509\.02479\.
- Yan et al\. \(2025\)Jianhao Yan, Yafu Li, Zican Hu, Zhi Wang, Ganqu Cui, Xiaoye Qu, Yu Cheng, and Yue Zhang\. 2025\.[Learning to reason under off\-policy guidance](https://doi.org/10.48550/ARXIV.2504.14945)\.*CoRR*, abs/2504\.14945\.
- Yang et al\. \(2025\)An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, and 40 others\. 2025\.[Qwen3 technical report](https://doi.org/10.48550/ARXIV.2505.09388)\.*CoRR*, abs/2505\.09388\.
- Yao et al\. \(2023\)Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik R\. Narasimhan, and Yuan Cao\. 2023\.[React: Synergizing reasoning and acting in language models](https://openreview.net/forum?id=WE_vluYUL-X)\.In*The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1\-5, 2023*\. OpenReview\.net\.
- Zhang et al\. \(2025\)Shaokun Zhang, Yi Dong, Jieyu Zhang, Jan Kautz, Bryan Catanzaro, Andrew Tao, Qingyun Wu, Zhiding Yu, and Guilin Liu\. 2025\.[Nemotron\-research\-tool\-n1: Exploring tool\-using language models with reinforced reasoning](https://doi.org/10.48550/ARXIV.2505.00024)\.*CoRR*, abs/2505\.00024\.
- Zheng et al\. \(2024\)Longtao Zheng, Rundong Wang, Xinrun Wang, and Bo An\. 2024\.[Synapse: Trajectory\-as\-exemplar prompting with memory for computer control](https://openreview.net/forum?id=Pc8AU1aF5e)\.In*The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7\-11, 2024*\. OpenReview\.net\.
- Zheng et al\. \(2025\)Tong Zheng, Hongming Zhang, Wenhao Yu, Xiaoyang Wang, Runpeng Dai, Rui Liu, Huiwen Bao, Chengsong Huang, Heng Huang, and Dong Yu\. 2025\.[Parallel\-r1: Towards parallel thinking via reinforcement learning](https://doi.org/10.48550/ARXIV.2509.07980)\.*CoRR*, abs/2509\.07980\.
- Zhou et al\. \(2025\)Huichi Zhou, Yihang Chen, Siyuan Guo, Xue Yan, Kin Hei Lee, Zihan Wang, Ka Yiu Lee, Guchun Zhang, Kun Shao, Linyi Yang, and Jun Wang\. 2025\.[Memento: Fine\-tuning LLM agents without fine\-tuning llms](https://doi.org/10.48550/ARXIV.2508.16153)\.*CoRR*, abs/2508\.16153\.
## Appendix AKnowledge Construction for Augmentation
We use GPT\-4o to summarize the experiential knowledge\.
We construct experiential data in the following manner\. ForScenario Trajectory Knowledge \(ST\), we directly use the ground\-truth tool invocation list from the training data as experiential knowledge\. ForExperience Summary Knowledge \(ES\), we ask the LLM to generate the textual summary of the tool calls\.
ForScript\-Style Intent Clustering Knowledge \(SIC\), we first clusters the vector embeddings of instructions using the K\-Means algorithm for each scenario with same toolset, with an LLM assigning semantic intent labels to each resulting cluster\. For each cluster, a batch\-wise extraction and hierarchical induction strategy is employed: task\-specific data is processed in batches to circumvent context window limitations, allowing the LLM to summarize intermediate scripts\. These scripts, which distill raw tool\-calling trajectories into structured JSON Standard Operating Procedures containing conditional logic and step sequences, are further consolidated into a final unified pattern\. Finally, these components—comprising intent labels, vector embeddings, and behavioral patterns—are integrated into a searchable procedural memory bank\. Following this, forTextual\-Style Intent Clustering Knowledge \(TIC\)the LLM is prompted to generate a natural language textual description for each refined pattern script\.
## Appendix BExamples
The user’s question enhanced with experience knowledge is shown in Example[7](https://arxiv.org/html/2606.10875#LST7), Example[8](https://arxiv.org/html/2606.10875#LST8), Example[9](https://arxiv.org/html/2606.10875#LST9), Example[10](https://arxiv.org/html/2606.10875#LST10)\. For Script\-Style Intent Clustering Knowledge, we provide indentation for readability, but in the actual prompt, there are no line breaks or indentation\.
## Appendix CPrompt
The prompt of LLM\-based aggregation of BFCL\-V3 is in Prompt[1](https://arxiv.org/html/2606.10875#LST1), and the aggregation prompt of dataset AppWorld is in Prompt[2](https://arxiv.org/html/2606.10875#LST2)\. The inference prompt of AppWorld is in Prompt[6](https://arxiv.org/html/2606.10875#LST6)\.
Figure 6:The reward scores of training process of dataset BFCL\-V3\.Figure 7:The results of parallel sampling with different sampling size\.
## Appendix DInference Details
### D\.1Retriever Design
We adopt all\-MiniLM\-L6\-v2 as the retrieval embedding model\.
To optimize retrieval precision across diverse task environments, we design different retriever for datasets\. For dataset BFCL, for a given query, the system first encodes the target content into a high\-dimensional embedding and restricts the search space to a subset of the knowledge base pre\-filtered by the relevant toolset \(involved classes\)\. This hard constraint ensures that retrieved experiences are strictly relevant to the required tool operations\. Subsequently, candidates undergo similarity thresholding atp=0\.5p=0\.5, where trajectories with cosine similarity scores below this limit are pruned to maintain high contextual precision\. To resolve potential overlaps in multi\-category tasks, the framework performs global descending sorting followed by deduplication, ultimately extracting the top most relevant unique trajectories to serve as experiential guidance for the model\.
For dataset AppWorld, the setting is same as Section[3](https://arxiv.org/html/2606.10875#S3)\.
### D\.2Inference Details
We set the temperature to 0 for inference and configured it to 1 for parallel sampling\. The parallel sampling size is set to 4, with all experiments conducted on NVIDIA A800 and A100 using Qwen3\-8B and Qwen3\-32B\. We report results from a single run for all experiments; therefore, no error bars or variance statistics are provided\.
For dataset BFCL\-V3, each testing scenarios containing 200 instances that share identical task descriptions but yield different execution outcomes due to environment\-specific dynamics\. We select 100 samples from the Base scenario to construct the training set, while the remaining samples are reserved for evaluation\. To avoid data leakage, the dataset is split at the sample\-ID level, with even\-indexed instances assigned to training and odd\-indexed instances assigned to testing\. All experiential knowledge used for knowledge augmentation is extracted exclusively from theBaseportion of the training split\.
For dataset AppWorld, we distilled 81 correct examples from the 90 training instances to construct the knowledge base\.
For Memp, we follow the “Proceduralization” setup from the original paperFang et al\. \([2025](https://arxiv.org/html/2606.10875#bib.bib5)\), that is, we combine trajectories and inductive script as the baseline\. Specifically, we use Scenario Trajectory \(ST\) knowledge and Experience Summary \(ES\) knowledge as experience, and for the retriever, we adopt the same settings\. For ReAct in AppWorld, since the Qwen3 series models output their thought processes by default, we did not ask them to output their thought processes\. Instead, we instructed them to output the code directly\.
## Appendix EInference Efficiency
To further clarify this trade\-off of efficiency and performance introduced by parallel sampling, we have added additional experiments quantifying the computational overhead and latency under different methods in Table[3](https://arxiv.org/html/2606.10875#A5.T3)\. The results show that a limited increase in parallelism yields a disproportionately large improvement in tool\-calling accuracy, demonstrating a favorable accuracy–cost trade\-off for practical deployment\.
Table 3:Token Consumption and Runtime Comparison\.We evaluate performance under different methods on 10 data points of Base scenario and report the results\. Here, “r PS\-Con” refers to replacing the LLM\-based aggregation with self\-consistency, “w/o PS” denotes removing parallel sampling, and “w/o Exp” indicates removing procedural knowledge\. All parallel computations were performed using the maximum multi\-threading allowed by vLLM\.
The results indicate that, compared to the FC baseline, our method, despite performing four parallel tool calls and final LLM\-based aggregation, does not linearly increase inference cost\. In fact, the improved accuracy may reduce unnecessary reasoning steps, so the total inference tokens are not multiplied proportionally\. For instance, KATE only increases token usage by 1\.29× for Qwen3\-32B, and using self\-consistency nearly matches or even reduces token consumption\.
Taken together, while width\-based activation introduces additional computation, it aligns with a broader trend in reasoning systems toward test\-time scaling, our empirical results show that parallel sampling only adds a small amount of token usage and latency compared to the FC method, while substantially improving accuracy\.
## Appendix FResults
Table 4:Performance comparison across models with mean and variance\. Green cells denote KATE and its ablations\.We have conducted additional experiments using multiple random seeds \(adding other two running results compared to Table[1](https://arxiv.org/html/2606.10875#S4.T1)\) and now report mean and standard deviation for key results represented in Table[4](https://arxiv.org/html/2606.10875#A6.T4)\.
The findings confirm that: \(1\) Width\-based activation maintains consistent improvements across seeds\. \(2\) Moderate parallel sampling improves not only performance but also overall stability compared to greedy decoding\.
Table 5:Performance comparison across different methods on Llama3\.2\-3B\-Instruct\.As shown in Table[5](https://arxiv.org/html/2606.10875#A6.T5), the results confirm the effectiveness of our method, demonstrating that KATE performance beyond Qwen3 model\. Here, “r PS\-Con” refers to replacing the LLM\-based aggregation with self\-consistency, “w/o PS” denotes removing parallel sampling, and “w/o Exp” indicates removing procedural knowledge\.
We set the temperature to 0\.02, as we found that using a higher temperature for this model may lead to incorrect tool\-calling formats in the generated outputs\.
The experimental results show that both parallel sampling \(w/o Exp\) and procedural knowledge \(w/o PS\) significantly improve model performance\. KATE consistently outperforms the baseline\. Although its improvement over the procedural\-knowledge\-only variant \(w/o Exp\) is not substantial, this may be because the model is already approaching its performance ceiling, leaving limited room for further gains\.
## Appendix GTraining Details
We augment the training data with experiential knowledge and decompose multi\-turn tool\-calling sequences into individual turns across different rounds\. The resulting dataset is split 1:1 for Supervised Fine\-Tuning \(SFT\) and Reinforcement Learning \(RL\), with samples exceeding a text length of 8192 tokens removed\. For the RL process, we extract the tool\-calling outputs and verify their correctness using a matching\-based evaluation\.
We fine\-tune the model using both Supervised Fine\-Tuning \(SFT\) and Reinforcement Learning \(RL\), adopting LoRA\-based parameter\-efficient tuning across all stages\. For SFT, we set the learning rate to 3e\-5, train for 3 epochs, and use a LoRA rank of 32 with LoRA alpha set to 16\. For RL, we use GRPO method\. We use a training batch size of 128, a maximum prompt length of 8192, and a maximum response length of 2048\. The learning rate is also set to 3e\-5, with 8 sampled trajectories per prompt and 7 training epochs, while maintaining a LoRA rank of 32\.
We use all models and datasets in compliance with their licenses\.
Algorithm 1Multi\-turn Parallel Action Sampling with AggregationInitial dialogue historyℋ0\\mathcal\{H\}\_\{0\}; tool set𝒯\\mathcal\{T\}; system promptSS;parallel sample sizeNN;aggregation function𝒜\(⋅\)\\mathcal\{A\}\(\\cdot\); maximum stepsTT
ℋt←ℋ0\\mathcal\{H\}\_\{t\}\\leftarrow\\mathcal\{H\}\_\{0\},t←0t\\leftarrow 0;
whilet<Tt<Tdo
actions←∅\\textit\{actions\}\\leftarrow\\emptyset;
for alli=1,…,Ni=1,\\dots,Nin paralleldo
ot\+1\(i\)∼P\(ot\+1∣𝒯,S,ℋt\)o^\{\(i\)\}\_\{t\+1\}\\sim P\(o\_\{t\+1\}\\mid\\mathcal\{T\},S,\\mathcal\{H\}\_\{t\}\);
actions←actions∪\{ot\+1\(i\)\}\\textit\{actions\}\\leftarrow\\textit\{actions\}\\cup\\\{o^\{\(i\)\}\_\{t\+1\}\\\};
ifAll samples inactionsare identicalthen
ot\+1←ot\+1\(1\)o\_\{t\+1\}\\leftarrow o^\{\(1\)\}\_\{t\+1\};
else
ot\+1←𝒜\(actions∣S,ℋt\)o\_\{t\+1\}\\leftarrow\\mathcal\{A\}\(\\textit\{actions\}\\mid S,\\mathcal\{H\}\_\{t\}\);
ifot\+1o\_\{t\+1\}is a tool invocationct\+1c\_\{t\+1\}then
Executect\+1c\_\{t\+1\}and observe environment rewardrt\+1envr^\{\\text\{env\}\}\_\{t\+1\};
ℋt\+1←ℋt∪\{ct\+1,rt\+1env\}\\mathcal\{H\}\_\{t\+1\}\\leftarrow\\mathcal\{H\}\_\{t\}\\cup\\\{c\_\{t\+1\},r^\{\\text\{env\}\}\_\{t\+1\}\\\};
else
ifNo further user querythen
returnot\+1o\_\{t\+1\};
Observe user replyrt\+1userr^\{\\text\{user\}\}\_\{t\+1\};
ℋt\+1←ℋt∪\{ot\+1,rt\+1user\}\\mathcal\{H\}\_\{t\+1\}\\leftarrow\\mathcal\{H\}\_\{t\}\\cup\\\{o\_\{t\+1\},r^\{\\text\{user\}\}\_\{t\+1\}\\\};
t←t\+1t\\leftarrow t\+1;
Algorithm 2KATEInitial historyℋ0\\mathcal\{H\}\_\{0\}; tool ses𝒯\\mathcal\{T\}; system promptSS;Parallel sizeNN;Similarity thresholdpp;Aggregation function𝒜\(⋅\)\\mathcal\{A\}\(\\cdot\); maximum stepsTT\.
Initializeℋ0re←ℋ0\\mathcal\{H\}\_\{0\}^\{\\text\{re\}\}\\leftarrow\\mathcal\{H\}\_\{0\},t←0t\\leftarrow 0;
whilet<Tt<Tdo
Observe user queryrt=rtuserr\_\{t\}=r\_\{t\}^\{\\text\{user\}\};
ℋtre←ℋtre∪ℛ\(rtuser\)\\mathcal\{H\}\_\{t\}^\{\\text\{re\}\}\\leftarrow\\mathcal\{H\}\_\{t\}^\{\\text\{re\}\}\\cup\\mathcal\{R\}\(r\_\{t\}^\{\\text\{user\}\}\);
Initializeactions←∅\\textit\{actions\}\\leftarrow\\emptyset;
for alli=1,…,Ni=1,\\dots,Nin paralleldo
ot\+1\(i\)∼P\(ot\+1∣𝒯,S,ℋtreo^\{\(i\)\}\_\{t\+1\}\\sim P\(o\_\{t\+1\}\\mid\\mathcal\{T\},S,\\mathcal\{H\}\_\{t\}^\{\\text\{re\}\}\);
actions←actions∪\{ot\+1\(i\)\}\\textit\{actions\}\\leftarrow\\textit\{actions\}\\cup\\\{o^\{\(i\)\}\_\{t\+1\}\\\};
ifAll samples inactionsare identicalthen
ot\+1←ot\+1\(1\)o\_\{t\+1\}\\leftarrow o^\{\(1\)\}\_\{t\+1\};
else
ot\+1←𝒜\(actions∣S,ℋtre\)o\_\{t\+1\}\\leftarrow\\mathcal\{A\}\(\\textit\{actions\}\\mid S,\\mathcal\{H\}\_\{t\}^\{\\text\{re\}\}\);
ifot\+1o\_\{t\+1\}is a tool invocationct\+1c\_\{t\+1\}then
Executect\+1c\_\{t\+1\}and observe environment feedbackrt\+1envr^\{\\text\{env\}\}\_\{t\+1\};
ℋt\+1re←ℋtre∪\{ct\+1,rt\+1env\}\\mathcal\{H\}\_\{t\+1\}^\{\\text\{re\}\}\\leftarrow\\mathcal\{H\}\_\{t\}^\{\\text\{re\}\}\\cup\\\{c\_\{t\+1\},r^\{\\text\{env\}\}\_\{t\+1\}\\\};
else
ifNo further user querythen
returnot\+1o\_\{t\+1\};
Observe user replyrt\+1userr\_\{t\+1\}^\{\\text\{user\}\}
ℋt\+1re←ℋtre∪\{ot\+1,rt\+1user\}\\mathcal\{H\}\_\{t\+1\}^\{\\text\{re\}\}\\leftarrow\\mathcal\{H\}\_\{t\}^\{\\textbf\{re\}\}\\cup\\\{o\_\{t\+1\},r\_\{t\+1\}^\{\\text\{user\}\}\\\};
t←t\+1t\\leftarrow t\+1;
[⬇](data:text/plain;base64,WW91IGFyZSBhIHRvb2wgY2FsbGluZyBhZ2VudC4gQmFzZWQgb24gdGhlIGNvbnZlcnNhdGlvbiBoaXN0b3J5LCBhdmFpbGFibGUgdG9vbHMsIGFuZCBjYW5kaWRhdGUgdG9vbCBjYWxscyBwcm92aWRlZC4KWW91ciB0YXNrIGlzIHRvIGV2YWx1YXRlIG11bHRpcGxlIGNhbmRpZGF0ZSB0b29sIGNhbGxzIGdlbmVyYXRlZCBmb3IgdGhlIHVzZXIncyBxdWVzdGlvbnMgYW5kIGFzc2lzdGFudCByZXNwb25zZXMsIGFuYWx5emUgdGhlaXIgY29ycmVjdG5lc3MsIGFuZCBwcm9kdWNlIGEgc2luZ2xlICoqb3B0aW1hbCBwbGFuKiogYWxvbmcgd2l0aCBhICoqdmFsaWRhdGVkIHRvb2wgY2FsbCoqLgoKLS0tCgojIyMgSW5wdXRzCi0gQ2FuZGlkYXRlIHRvb2wgY2FsbHM6IHtjYW5kaWRhdGVfcGxhbnN9ICAKCioqUmV0dXJuIEZvcm1hdCoqICAKICAgUmV0dXJuIGEgSlNPTiBvYmplY3Qgd2l0aCB0aGUgZm9sbG93aW5nIHN0cnVjdHVyZToKCmBgYGpzb24Ke3sKICAib3B0aW1hbF9wbGFuIjogIjxFeHBsYWluIFRoZSBvcHRpbWFsIHBsYW4gYW5kIHRvb2wgY2FsbHMgdG8gZXhlY3V0ZSBuZXh0IChZb3UgZG9uJ3QgbmVlZCB0byBleHBsYWluIHdoeSB5b3UgY2hvb3NlIHRoaXMgYXBwcm9hY2gsIGJ1dCByYXRoZXIgZXhwbGFpbiB3aHkgeW91IGFyZSBleGVjdXRpbmcgdGhpcyB0b29sX2NhbGwuKT4iLAogICJvcHRpbWFsX3Rvb2xfY2FsbCI6IHt7CiAgICAibmFtZSI6ICI8dG9vbCBuYW1lPiIsCiAgICAicGFyYW1ldGVycyI6IHt7fX0KICB9fQp9fQpPbmx5IG9uZSB0b29sIGNhbGwgaXMgYWxsb3dlZCBpbiB0aGUgb3B0aW1hbF90b29sX2NhbGwuCklmIG5vIHRvb2wgY2FsbCBpcyBuZWVkZWQsIHNldCAib3B0aW1hbF90b29sX2NhbGwiOiB7eyJuYW1lIjogInJlc3BvbnNlX3RvX3VzZXIiLCAicGFyYW1ldGVycyI6IHt7ImNvbnRlbnQiOiAiVGhlIHJlc3BvbnNlIHRvIHRoZSB1c2VyIn19fX0u)Youareatoolcallingagent\.Basedontheconversationhistory,availabletools,andcandidatetoolcallsprovided\.Yourtaskistoevaluatemultiplecandidatetoolcallsgeneratedfortheuser’squestionsandassistantresponses,analyzetheircorrectness,andproduceasingle\*\*optimalplan\*\*alongwitha\*\*validatedtoolcall\*\*\.\-\-\-\#\#\#Inputs\-Candidatetoolcalls:\{candidate\_plans\}\*\*ReturnFormat\*\*ReturnaJSONobjectwiththefollowingstructure:‘‘‘json\{\{"optimal\_plan":"<ExplainTheoptimalplanandtoolcallstoexecutenext\(Youdon’tneedtoexplainwhyyouchoosethisapproach,butratherexplainwhyyouareexecutingthistool\_call\.\)\>","optimal\_tool\_call":\{\{"name":"<toolname\>","parameters":\{\{\}\}\}\}\}\}Onlyonetoolcallisallowedintheoptimal\_tool\_call\.Ifnotoolcallisneeded,set"optimal\_tool\_call":\{\{"name":"response\_to\_user","parameters":\{\{"content":"Theresponsetotheuser"\}\}\}\}\.Prompt 1:Aggregation Prompt used in KATE on dataset BFCL\-V3
[⬇](data:text/plain;base64,WW91IGFyZSBhIGhpZ2hseSBza2lsbGVkIGFzc2lzdGFudCB0YXNrZWQgd2l0aCBnZW5lcmF0aW5nIFB5dGhvbiBjb2RlIGluIGEgKipzdGVwLWJ5LXN0ZXAqKiBtYW5uZXIuIFlvdXIgZ29hbCBpcyB0byBwcm9ncmVzc2l2ZWx5IGdlbmVyYXRlIHRoZSBjb3JyZWN0IGNvZGUgYmFzZWQgb24gdGhlIGNvbnZlcnNhdGlvbiBoaXN0b3J5IGFuZCBtdWx0aXBsZSBjYW5kaWRhdGUgc29sdXRpb25zLiBBZnRlciBlYWNoIHN0ZXAsIHlvdSBzaG91bGQgYXNzZXNzIHRoZSByZXN1bHRzIG9mIHRoZSBnZW5lcmF0ZWQgY29kZSBhbmQsIGlmIG5lZWRlZCwgaXRlcmF0ZSB0byBtYWtlIGltcHJvdmVtZW50cy4gWW91IHNob3VsZCBub3QgYXR0ZW1wdCB0byBnZW5lcmF0ZSBhbGwgdGhlIGNvZGUgYXQgb25jZS4gSW5zdGVhZCwgZ2VuZXJhdGUgYSBzbWFsbCBwb3J0aW9uIG9mIHRoZSBjb2RlIGF0IGEgdGltZSwgdGVzdCBpdCwgYW5kIHJlZmluZSBpdCBiYXNlZCBvbiB0aGUgZmVlZGJhY2sgcmVjZWl2ZWQuIElmIHByZXZpb3VzIGNvZGUgYXR0ZW1wdHMgd2VyZSBpbmNvcnJlY3QsIHJlYXNzZXNzIHRoZSBsb2dpYyBhbmQgZ2VuZXJhdGUgdGhlIG5leHQgc3RlcCBvZiBjb2RlIGFjY29yZGluZ2x5LgoKLS0tCgojIyMgSW5wdXQgSW5mb3JtYXRpb246CgotICoqVXNlcidzIFF1ZXN0aW9uKio6CiAge3Vz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uZXh0IHBhcnQgb2YgdGhlIHNvbHV0aW9uLCBrZWVwaW5nIHByZXZpb3VzIGNvZGUgaW50YWN0IGFzIG11Y2ggYXMgcG9zc2libGUuCjUuICoqSXRlcmF0aXZlIFJlZmluZW1lbnQqKjogV2l0aCBlYWNoIHN0ZXAsIHlvdSBzaG91bGQgcmVmaW5lIHlvdXIgYXBwcm9hY2ggYmFzZWQgb24gd2hhdCBoYXMgYmVlbiBrbm93biBzbyBmYXIsIGdyYWR1YWxseSBtb3ZpbmcgdG93YXJkcyBhIGNvbXBsZXRlIHNvbHV0aW9uLgoKLS0tCgojIyMgT3V0cHV0IEZvcm1hdDoKCmBgYHB5dGhvbgojIFRoZSBjb2RlIGZvciB0aGUgY3VycmVudCBzdGVwIGluIHRoZSB0YXNrLgpBZGQgeW91ciBjb2RlIGhlcmUKYGBg)YouareahighlyskilledassistanttaskedwithgeneratingPythoncodeina\*\*step\-by\-step\*\*manner\.Yourgoalistoprogressivelygeneratethecorrectcodebasedontheconversationhistoryandmultiplecandidatesolutions\.Aftereachstep,youshouldassesstheresultsofthegeneratedcodeand,ifneeded,iteratetomakeimprovements\.Youshouldnotattempttogenerateallthecodeatonce\.Instead,generateasmallportionofthecodeatatime,testit,andrefineitbasedonthefeedbackreceived\.Ifpreviouscodeattemptswereincorrect,reassessthelogicandgeneratethenextstepofcodeaccordingly\.\-\-\-\#\#\#InputInformation:\-\*\*User’sQuestion\*\*:\{user\_question\}\-\*\*InteractionHistoryBetweenAssistantandtheEnvironment\*\*:\{interaction\_history\}\-\*\*CandidateCodeOptions\*\*:\{candidate\_code\}\-\-\-\#\#\#Instructions:1\.\*\*UnderstandtheProblem\*\*:Thoroughlyreviewtheuser’squestionandtheinteractionhistorytograspthecontext\.2\.\*\*BreakDowntheTask\*\*:Startbyidentifyingthemostcriticalportionofthecodethatneedstobeaddressedfirst\.Focusononecurrentstepatatime\.3\.\*\*GenerateaSmallPortionofCode\*\*:Produceonlythepartofthecodeneededtoaddressthefirststepofthetask\.Donottrytocompletetheentiresolutioninonego\.4\.\*\*IterateBasedonFeedback\*\*:Ifpreviousstepshaveerrorsorissues,donotjustfixthemallatonce\.Focusonunderstandingthespecificissueandgeneratingthenextpartofthesolution,keepingpreviouscodeintactasmuchaspossible\.5\.\*\*IterativeRefinement\*\*:Witheachstep,youshouldrefineyourapproachbasedonwhathasbeenknownsofar,graduallymovingtowardsacompletesolution\.\-\-\-\#\#\#OutputFormat:‘‘‘python\#Thecodeforthecurrentstepinthetask\.Addyourcodehere‘‘‘Prompt 2:Aggregation Prompt used in KATE on dataset AppWorld
[⬇](data:text/plain;base64,QmVmb3JlIGludm9raW5nIGFueSB0b29scywgY2xlYXJseSBpZGVudGlmeSB0aGUgdXNlcidzICpjdXJyZW50IGludGVudCogYmFzZWQgb24gdGhlIGNvbnZlcnNhdGlvbiBoaXN0b3J5IGFuZCB0aGUgbGF0ZXN0IHVzZXIgbWVzc2FnZS4KClRoZXJlIGFyZSBzb21lIHN1Z2dlc3Rpb25zIGZvciB5b3VyIHJlYXNvbmluZzoKMS4gSWRlbnRpZnkgdGhlIHVzZXIncyBjdXJyZW50IGludGVudCBiYXNlZCBvbiB0aGUgY29udmVyc2F0aW9uIGhpc3RvcnkgYW5kIHRoZSBsYXRlc3QgdXNlciBtZXNzYWdlLgoyLiBCcmVhayBkb3duIHRoaXMgaW50ZW50IGludG8gY2xlYXIsIGFjdGlvbmFibGUgc3VidGFza3Mgb3IgZ29hbHMuCjMuIERldGVybWluZSB3aGljaCB0b29scyAoaWYgYW55KSBhcmUgbmVlZGVkIGZvciBlYWNoIHN1YnRhc2ssIGFuZCBzcGVjaWZ5IHRoZWlyIGV4cGVjdGVkIGlucHV0cyBhbmQgb3V0cHV0cy4gWW91ciByZWFzb25pbmcgc2hvdWxkIGZvY3VzIG9uICpjbGFyaXR5KiAod2hhdCB0aGUgdXNlciB3YW50cyksICpzdHJ1Y3R1cmUqIChob3cgdG8gYWNoaWV2ZSBpdCksIGFuZCAqZWZmaWNpZW5jeSogKHdoaWNoIHRvb2wgb3IgcmVhc29uaW5nIHN0ZXAgc2hvdWxkIGNvbWUgbmV4dCkuCgpZb3UgZG8gbm90IGhhdmUgdG8gZnVsbHkgYWRoZXJlIHRvIHRoZSBhYm92ZSBzdWdnZXN0aW9ucy4gQnV0IHlvdSBuZWVkIHRvIGFuYWx5emUgdGhlIHJlbGV2YW50IHBvaW50cyBpbiB0aGUgY29udmVyc2F0aW9uIGhpc3RvcnkgYWJvdXQgdGhlIGludGVudCByZXF1aXJlbWVudHMgaW4gdGhlIHRoaW5raW5nIHByb2Nlc3Mu)Beforeinvokinganytools,clearlyidentifytheuser’s\*currentintent\*basedontheconversationhistoryandthelatestusermessage\.Therearesomesuggestionsforyourreasoning:1\.Identifytheuser’scurrentintentbasedontheconversationhistoryandthelatestusermessage\.2\.Breakdownthisintentintoclear,actionablesubtasksorgoals\.3\.Determinewhichtools\(ifany\)areneededforeachsubtask,andspecifytheirexpectedinputsandoutputs\.Yourreasoningshouldfocuson\*clarity\*\(whattheuserwants\),\*structure\*\(howtoachieveit\),and\*efficiency\*\(whichtoolorreasoningstepshouldcomenext\)\.Youdonothavetofullyadheretotheabovesuggestions\.Butyouneedtoanalyzetherelevantpointsintheconversationhistoryabouttheintentrequirementsinthethinkingprocess\.Prompt 3:Intent prompt in Depth\-based Prompt\-Hint Activation
[⬇](data:text/plain;base64,QmVmb3JlIGludm9raW5nIG5ldyB0b29scywgcmV2aWV3IHRoZSBoaXN0b3J5IG9mIHRvb2wgY2FsbHMgYW5kIHRoZWlyIG91dGNvbWVzLgoKVGhlcmUgYXJlIHNvbWUgc3VnZ2VzdGlvbnMgZm9yIHlvdXIgcmVhc29uaW5nOgoxLiBEZXRlcm1pbmUgd2hldGhlciB0aGUgcHJldmlvdXMgdG9vbCBjYWxscyB3ZXJlIGNvcnJlY3QsIHN1ZmZpY2llbnQsIG9yIGNvbXBsZXRlLiBJZiBhIHRvb2wgY2FsbCBmYWlsZWQgb3IgcHJvZHVjZWQgc3Vib3B0aW1hbCByZXN1bHRzIGR1ZSB0byBpbnN1ZmZpY2llbnQgb3IgbWlzc2luZyBwYXJhbWV0ZXJzIG9yIGZ1bmN0aW9ucywgcmVmbGVjdCBvbiB3aGF0IGluZm9ybWF0aW9uIHdhcyBsYWNraW5nLCBob3cgaXQgY291bGQgYmUgaW5mZXJyZWQgb3Igb2J0YWluZWQuCjIuIElmIGlzc3VlcyBleGlzdCAoZS5nLiwgd3JvbmcgcGFyYW1ldGVycywgbWlzc2luZyBjYWxscywgZmFpbGVkIGV4ZWN1dGlvbiksIGV4cGxhaW4gYnJpZWZseSB3aHkgdGhleSBvY2N1cnJlZC4KMy4gQW5hbHl6ZSBmdXR1cmUgbXVsdGktc3RlcCB0b29sIGNhbGxzIGR1cmluZyB0aGUgYW5hbHlzaXMgcHJvY2VzcywgcmF0aGVyIHRoYW4ganVzdCBmb2N1c2luZyBvbiB0aGUgbmV4dCBzdGVwLgoKWW91IGRvIG5vdCBoYXZlIHRvIGZ1bGx5IGFkaGVyZSB0byB0aGUgYWJvdmUgc3VnZ2VzdGlvbnMuIEJ1dCB5b3UgbmVlZCB0byBhbmFseXplIHRoZSByZWxldmFudCBwb2ludHMgaW4gdGhlIGNvbnZlcnNhdGlvbiBoaXN0b3J5IGFib3V0IHRoZSBjb3JyZWN0bmVzcyBhbmQgbmVjZXNzYXJ5IG9mIHByZXZpb3VzIHRvb2wgY2FsbCBpbiB0aGUgdGhpbmtpbmcgcHJvY2Vzcy4=)Beforeinvokingnewtools,reviewthehistoryoftoolcallsandtheiroutcomes\.Therearesomesuggestionsforyourreasoning:1\.Determinewhethertheprevioustoolcallswerecorrect,sufficient,orcomplete\.Ifatoolcallfailedorproducedsuboptimalresultsduetoinsufficientormissingparametersorfunctions,reflectonwhatinformationwaslacking,howitcouldbeinferredorobtained\.2\.Ifissuesexist\(e\.g\.,wrongparameters,missingcalls,failedexecution\),explainbrieflywhytheyoccurred\.3\.Analyzefuturemulti\-steptoolcallsduringtheanalysisprocess,ratherthanjustfocusingonthenextstep\.Youdonothavetofullyadheretotheabovesuggestions\.Butyouneedtoanalyzetherelevantpointsintheconversationhistoryaboutthecorrectnessandnecessaryofprevioustoolcallinthethinkingprocess\.Prompt 4:Reflection prompt in Depth\-based Prompt\-Hint Activation
[⬇](data:text/plain;base64,QmVmb3JlIGludm9raW5nIGFueSB0b29scywgY2FyZWZ1bGx5IGlkZW50aWZ5IHRoZSAqZW52aXJvbm1lbnQqIGFuZCB0aGUgKnN0YXRlKiByZXF1aXJlZCB0byBhbnN3ZXIgdGhlIHVzZXIncyBxdWVzdGlvbiwgYmVjYXVzZSB0aGVzZSBtYXkgaW5mbHVlbmNlIGJvdGggdGhlIHRvb2wgc2VsZWN0aW9uIGFuZCB0aGUgcGFyYW1ldGVycyBmb3IgdG9vbCBjYWxscy4KClRoZXJlIGFyZSBzb21lIHN1Z2dlc3Rpb25zIGZvciB5b3VyIHJlYXNvbmluZzoKMS4gQW5hbHl6ZSB0aGUgdXNlcidzIHF1ZXN0aW9uIHRvIGRldGVjdCBhbnkgaW1wbGljaXQgc3RhdGUgZGVwZW5kZW5jaWVzIChlLmcuLCB1c2VyIGxvZ2luIHN0YXR1cywgZmlsZSBleGlzdGVuY2UsIGNvbnRleHQgdmFyaWFibGVzKS4KMi4gRGV0ZXJtaW5lIHdoYXQgc3BlY2lmaWMgc3RhdGVzIG11c3QgYmUgY29uZmlybWVkIGJlZm9yZSBjb250aW51aW5nLgozLiBJZiB2ZXJpZmljYXRpb24gaXMgcmVxdWlyZWQsIGRlY2lkZSB3aGljaCB0b29scyBzaG91bGQgYmUgaW52b2tlZCB0byBjb25maXJtIHRob3NlIHN0YXRlcy4gSWYgbm8gc3RhdGUgdmVyaWZpY2F0aW9uIGlzIG5lZWRlZCwgcHJvY2VlZCB3aXRoIHJlYXNvbmluZyB0b3dhcmQgdG9vbCBzZWxlY3Rpb24gb3IgcmVzcG9uc2UgZ2VuZXJhdGlvbi4KCllvdSBkbyBub3QgaGF2ZSB0byBmdWxseSBhZGhlcmUgdG8gdGhlIGFib3ZlIHN1Z2dlc3Rpb25zLiBCdXQgeW91IG5lZWQgdG8gYW5hbHl6ZSB0aGUgcmVsZXZhbnQgcG9pbnRzIGluIHRoZSBjb252ZXJzYXRpb24gaGlzdG9yeSBhYm91dCB0aGUgc3RhdGUgcmVxdWlyZW1lbnRzIGluIHRoZSB0aGlua2luZyBwcm9jZXNzLg==)Beforeinvokinganytools,carefullyidentifythe\*environment\*andthe\*state\*requiredtoanswertheuser’squestion,becausethesemayinfluenceboththetoolselectionandtheparametersfortoolcalls\.Therearesomesuggestionsforyourreasoning:1\.Analyzetheuser’squestiontodetectanyimplicitstatedependencies\(e\.g\.,userloginstatus,fileexistence,contextvariables\)\.2\.Determinewhatspecificstatesmustbeconfirmedbeforecontinuing\.3\.Ifverificationisrequired,decidewhichtoolsshouldbeinvokedtoconfirmthosestates\.Ifnostateverificationisneeded,proceedwithreasoningtowardtoolselectionorresponsegeneration\.Youdonothavetofullyadheretotheabovesuggestions\.Butyouneedtoanalyzetherelevantpointsintheconversationhistoryaboutthestaterequirementsinthethinkingprocess\.Prompt 5:State prompt in Depth\-based Prompt\-Hint Activation
[⬇](data:text/plain;base64,VVNFUjoKSSBhbSB5b3VyIHN1cGVydmlzb3IgYW5kIHlvdSBhcmUgYSBzdXBlciBpbnRlbGxpZ2VudCBBSSBBc3Npc3RhbnQgd2hvc2Ugam9iIGlzIHRvIGFjaGlldmUgbXkgZGF5LXRvLWRheSB0YXNrcyBjb21wbGV0ZWx5IGF1dG9ub21vdXNseS4KClRvIGRvIHRoaXMsIHlvdSB3aWxsIG5lZWQgdG8gaW50ZXJhY3Qgd2l0aCBhcHAvcyAoZS5nLiwgc3BvdGlmeSwgdmVubW8sIGV0YykgdXNpbmcgdGhlaXIgYXNzb2NpYXRlZCBBUElzIG9uIG15IGJlaGFsZi4gRm9yIHRoaXMgeW91IHdpbGwgdW5kZXJ0YWtlIGEgKm11bHRpLXN0Z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5kIDxhcHBfbmFtZT4gb3RoZXJzIGF0IGZpcnN0IHRpbWUuIEFuZCB5b3UgbmVlZCB0byBwcmludCB0aGUgcmVzdWx0IG9mIGVhY2ggQVBJIGNhbGwuCgpZb3UgZG9uJ3QgbmVlZCB0byBnZW5lcmF0ZSB0aGUgZW50aXJlIGNvZGUgYXQgb25jZS4gWW91IGNhbiBnZW5lcmF0ZSB0aGUgY29kZSBzdGVwIGJ5IHN0ZXAgYW5kIGV4ZWN1dGUgaXQuCgpVU0VSOgpVc2luZyB0aGVzZSBBUElzLCBub3cgZ2VuZXJhdGUgY29kZSB0byBzb2x2ZSB0aGUgYWN0dWFsIHRhc2s6CgpNeSBuYW1lIGlzOiB7eyBzdXBlcnZpc29yLmZpcnN0X25hbWUgfX0ge3sgc3VwZXJ2aXNvci5sYXN0X25hbWUgfX0uIE15IHBlcnNvbmFsIGVtYWlsIGlzIHt7IHN1cGVydmlzb3IuZW1haWwgfX0gYW5kIHBob25lIG51bWJlciBpcyB7eyBzdXBlcnZpc29yLnBob25lX251bWJlciB9fS4KClRhc2s6Cgp7eyBpbnN0cnVjdGlvbiB9fQ==)USER:IamyoursupervisorandyouareasuperintelligentAIAssistantwhosejobistoachievemyday\-to\-daytaskscompletelyautonomously\.Todothis,youwillneedtointeractwithapp/s\(e\.g\.,spotify,venmo,etc\)usingtheirassociatedAPIsonmybehalf\.Forthisyouwillundertakea\*multi\-stepconversation\*usingapythonREPLenvironment\.Thatis,youwillwritethepythoncodeandtheenvironmentwillexecuteitandshowyoutheresult,basedonwhich,youwillwritepythoncodeforthenextstepandsoon,untilyou’veachievedthegoal\.Thisenvironmentwillletyouinteractwithapp/susingtheirassociatedAPIsonmybehalf\.HerearethreekeyAPIsthatyouneedtoknowtogetmoreinformation\#Togetalistofappsthatareavailabletoyou\.print\(apis\.api\_docs\.show\_app\_descriptions\(\)\)\#Togetthelistofapisunderanyapplistedabove,e\.g\.supervisorprint\(apis\.api\_docs\.show\_api\_descriptions\(app\_name=’supervisor’\)\)\#Togetthespecificationofaparticularapi,e\.g\.supervisorapp’sshow\_account\_passwordsprint\(apis\.api\_docs\.show\_api\_doc\(app\_name=’supervisor’,api\_name=’show\_account\_passwords’\)\)Eachcodeexecutionwillproduceanoutputthatyoucanuseinsubsequentcalls\.UsingtheseAPIs,youcannowgeneratecode,thattheenvironmentwillexecute,tosolvethetask\.Forexample,considerthetask:Mynameis:\{\{supervisor\.first\_name\}\}\{\{supervisor\.last\_name\}\}\.Mypersonalemailis\{\{supervisor\.email\}\}andphonenumberis\{\{supervisor\.phone\_number\}\}\.Task:WhatisthepasswordformySpotifyaccount?ASSISTANT:\#Okay\.Letsfirstfindwhichappsareavailabletogetthepasswordbylookingattheappdescriptions\.print\(apis\.api\_docs\.show\_app\_descriptions\(\)\)USER:\[\{"name":"api\_docs","description":"AnapptosearchandexploreAPIdocumentation\."\},\{"name":"supervisor","description":"Anapptoaccesssupervisor’spersonalinformation,accountcredentials,addresses,paymentcards,andmanagetheassignedtask\."\},\.\.\.\{"name":"spotify","description":"Amusicstreamingapptostreamsongsandmanagesong,albumandplaylistlibraries\."\},\{"name":"venmo","description":"Asocialpaymentapptosend,receiveandrequestmoneytoandfromothers\."\},\.\.\.\]ASSISTANT:\#Lookslikethesupervisorappcouldhelpmewiththat\.Letsseewhatapisareavailableunderthisapp\.print\(apis\.api\_docs\.show\_api\_descriptions\(app\_name=’supervisor’\)\)USER:\[\.\.\."show\_account\_passwords:Showyoursupervisor’saccountpasswords\."\.\.\.\]ASSISTANT:\#Icanuse‘show\_account\_passwords‘togetthepasswords\.Letmeseeitsdetailedspecificationtounderstanditsargumentsandoutputstructure\.print\(apis\.api\_docs\.show\_api\_doc\(app\_name=’supervisor’,api\_name=’show\_account\_passwords’\)\)USER:\{’app\_name’:’supervisor’,’api\_name’:’show\_account\_passwords’,’path’:’/account\_passwords’,’method’:’GET’,’description’:"Showyoursupervisor’sappaccountpasswords\.",’parameters’:\[\],’response\_schemas’:\{’success’:\[\{’account\_name’:’string’,’password’:’string’\}\],’failure’:\{’message’:’string’\}\}\}ASSISTANT:\#Okay,itrequiresnoarguments\.SoIcanjustcallitdirectly\.print\(apis\.supervisor\.show\_account\_passwords\(\)\)USER:\[\{"account\_name":"spotify","password":"dummy\_spotify\_pass"\},\{"account\_name":"file\_system","password":"dummy\_fs\_pass"\},\.\.\.\]ASSISTANT:\#SotheSpotifypasswordisanentryinthe‘passwords‘listwiththeaccount\_name=spotify\.spotify\_password=\[account\_password\["account\_name"\]=="spotify"foraccount\_passwordinpasswords\]\[0\]\["password"\]print\(spotify\_password\)USER:dummy\_spotify\_passASSISTANT:\#Whenthetaskiscompleted,Ineedtocallapis\.supervisor\.complete\_task\(\)\.Ifthereisananswer,Ineedtopassitasanargument‘answer‘\.Iwillpassthespotify\_passwordasananswer\.apis\.supervisor\.complete\_task\(answer=spotify\_password\)USER:Markedtheactivetaskcomplete\.\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-USER:\*\*Keyinstructionsanddisclaimers\*\*:1\.Theemailaddresses,accesstokensandvariables\(e\.g\.spotify\_password\)intheexampleabovewereonlyfordemonstration\.ObtainthecorrectinformationbycallingrelevantAPIsyourself\.2\.Onlygeneratevalidcodeblocks,i\.e\.,donotputthemin‘‘‘\.\.\.‘‘‘oraddanyextraformatting\.Anythoughtsshouldbeputascodecomments\.3\.Youcanusethevariablesfromthepreviouscodeblocksinthesubsequentcodeblocks\.4\.Writesmallchunksofcodeandonlyonechunkofcodeineverystep\.Makesureeverythingisworkingcorrectlybeforemakinganyirreversiblechange\.5\.TheprovidedPythonenvironmenthasaccesstoitsstandardlibrary\.ButmodulesandfunctionsthathaveariskofaffectingtheunderlyingOS,filesystemorprocessaredisabled\.Youwillgetanerrorifdocallthem\.6\.Anyreferencetoafilesysteminthetaskinstructionsmeansthefilesystem\*app\*,operableviagivenAPIs,andnottheactualfilesystemthecodeisrunningon\.Sodonotwritecodemakingcallstoos\-levelmodulesandfunctions\.7\.Tointeractwithapps,onlyusetheprovidedAPIs,andnotthecorrespondingPythonpackages\.E\.g\.,doNOTuse‘spotipy‘forSpotify\.Remember,theenvironmentonlyhasthestandardlibrary\.8\.TheprovidedAPIdocumentationhasboththeinputargumentsandtheoutputJSONschemas\.AllcallstoAPIsandparsingitsoutputsmustbeasperthisdocumentation\.9\.ForAPIsthatreturnresultsin"pages",makesuretoconsiderallpages\.10\.Toobtaincurrentdateortime,usePythonfunctionslike‘datetime\.now\(\)‘orobtainitfromthephoneapp\.Donotrelyonyourexistingknowledgeofwhatthecurrentdateortimeis\.11\.Foralltemporalrequests,usepropertimeboundaries,e\.g\.,ifIaskforsomethingthathappenedyesterday,makesuretoconsiderthetimebetween00:00:00and23:59:59\.Allrequestsareconcerningasingle,default\(no\)timezone\.12\.Anyreferencetomyfriends,familyoranyotherpersonorrelationreferstothepeopleinmyphone’scontactslist\.13\.Allmypersonalinformation,andinformationaboutmyappaccountcredentials,physicaladdressesandownedpaymentcardsarestoredinthe"supervisor"app\.YoucanaccessthemviatheAPIsprovidedbythesupervisorapp\.14\.Onceyouhavecompletedthetask,call‘apis\.supervisor\.complete\_task\(\)‘\.Ifthetaskasksforsomeinformation,returnitastheanswerargument,i\.e\.call‘apis\.supervisor\.complete\_task\(answer=<answer\>\)‘\.Fortasksthatdonotrequireananswer,justskiptheanswerargumentorpassitasNone\.15\.Theanswers,whengiven,shouldbejustentityornumber,notfullsentences,e\.g\.,‘answer=10‘for"HowmanysongsareintheSpotifyqueue?"\.Whenananswerisanumber,itshouldbeinnumbers,notinwords,e\.g\.,"10"andnot"ten"\.16\.Youcanalsopass‘status="fail"‘inthecomplete\_taskAPIifyouaresureyoucannotsolveitandwanttoexit\.17\.Youmustmakealldecisionscompletelyautonomouslyandnotaskforanyclarificationsorconfirmationsfrommeoranyoneelse\.\#\#\#Instructions:1\.\*\*UnderstandtheProblem\*\*:Thoroughlyreviewtheuser’squestionandtheinteractionhistorytograspthecontext\.2\.\*\*BreakDowntheTask\*\*:Startbyidentifyingthemostcriticalportionofthecodethatneedstobeaddressedfirst\.Focusononecurrentstepatatime\.3\.\*\*GenerateaSmallPortionofCode\*\*:Produceonlythepartofthecodeneededtoaddressthefirststepofthetask\.Donottrytocompletetheentiresolutioninonego\.4\.\*\*IterateBasedonFeedback\*\*:Ifpreviousstepshaveerrorsorissues,donotjustfixthemallatonce\.Focusonunderstandingthespecificissueandgeneratingthenextpartofthesolution,keepingpreviouscodeintactasmuchaspossible\.5\.\*\*IterativeRefinement\*\*:Witheachstep,youshouldrefineyourapproachbasedonwhathasbeenknownsofar,graduallymovingtowardsacompletesolution\.Andyouneedtocallapis\.api\_docs\.show\_app\_descriptions\(\),apis\.api\_docs\.show\_api\_descriptions\(app\_name=’<app\>’\)andapis\.api\_docs\.show\_api\_doc\(app\_name=’<app\>’,api\_name=’<app\_name\>’\)beforeutilizing<app\>and<app\_name\>othersatfirsttime\.AndyouneedtoprinttheresultofeachAPIcall\.Youdon’tneedtogeneratetheentirecodeatonce\.Youcangeneratethecodestepbystepandexecuteit\.USER:UsingtheseAPIs,nowgeneratecodetosolvetheactualtask:Mynameis:\{\{supervisor\.first\_name\}\}\{\{supervisor\.last\_name\}\}\.Mypersonalemailis\{\{supervisor\.email\}\}andphonenumberis\{\{supervisor\.phone\_number\}\}\.Task:\{\{instruction\}\}Prompt 6:Prompt of AppWorld
[⬇](data:text/plain;base64,T3JpZ2luYWwgUXVlc3Rpb246CkhvdyBtdWNoIHdvdWxkIGEgZmxpZ2h0IGZyb20gU0YgdG8gTEEgZXZlbiBjb3N0PyBJdCdzIHByb2JhYmx5IGNoZWFwLiBUaGF0J3MgaXQsIGxldCBtZSBqdXN0IGRvIGl0LiBJIG5lZWQgdG8gYXJyYW5nZSBhIGJ1c2luZXNzIGNsYXNzIGZsaWdodCBmb3IgUm9iZXJ0IFRyZW50b24gZnJvbSBTYW4gRnJhbmNpc2NvIHRvIEx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y4KQXR0ZW50aW9uIHRoZSB1c2VyIHF1ZXN0aW9uIGF0IGN1cnJlbnQgdHVybiBpczogCkhvdyBtdWNoIHdvdWxkIGEgZmxpZ2h0IGZyb20gU0YgdG8gTEEgZXZlbiBjb3N0PyBJdCdzIHByb2JhYmx5IGNoZWFwLiBUaGF0J3MgaXQsIGxldCBtZSBqdXN0IGRvIGl0LiBJIG5lZWQgdG8gYXJyYW5nZSBhIGJ1c2luZXNzIGNsYXNzIGZsaWdodCBmb3IgUm9iZXJ0IFRyZW50b24gZnJvbSBTYW4gRnJhbmNpc2NvIHRvIExvcyBBbmdlbGVzIG9uIE5vdmVtYmVyIDI1dGggMjAyNC4gVGhlIHJlc2VydmF0aW9uIHNob3VsZCBiZSBtYWRlIHVzaW5nIGhpcyB0cmF2ZWwgY2FyZCB3aXRoIGlkIGNhcmRfMzQ4NyBhbmQgYWNjZXNzIGNvZGUgMTI5My4gRm9sbG93aW5nIHRoZSBib29raW5nLCBJIGhhdmUgdG8gZW5zdXJlIGFuIGludm9pY2UgaXMgaXNzdWVkIHRvIHZlcmlmeSB0aGUgY2hhcmdlcy4=)OriginalQuestion:HowmuchwouldaflightfromSFtoLAevencost?It’sprobablycheap\.That’sit,letmejustdoit\.IneedtoarrangeabusinessclassflightforRobertTrentonfromSanFranciscotoLosAngelesonNovember25th2024\.Thereservationshouldbemadeusinghistravelcardwithidcard\_3487andaccesscode1293\.Followingthebooking,Ihavetoensureaninvoiceisissuedtoverifythecharges\.EnhancedQuestion:HowmuchwouldaflightfromSFtoLAevencost?It’sprobablycheap\.That’sit,letmejustdoit\.IneedtoarrangeabusinessclassflightforRobertTrentonfromSanFranciscotoLosAngelesonNovember25th2024\.Thereservationshouldbemadeusinghistravelcardwithidcard\_3487andaccesscode1293\.Followingthebooking,Ihavetoensureaninvoiceisissuedtoverifythecharges\.Beforeansweringtheuser’squestionabove,pleasefirstreviewthefollowingrelatedexperiences:\#\#\#Example1\*\*Question:\*\*I’mplanningtoflyfromSanFranciscotoLosAngelesonOctober15,2024\.Couldyouassistinsecuringafirst\-classseatusingmytravelcardwithid’travel\_card\_12345’?Everythingyouneedâaccesstoken\(abc123xyz456\),travelerdetailsâareattheready\.JustmakesurethatIcanafforditbecauseIonlyhave6000dollarstospendforthisflight\.\*\*CorrectToolCallingTrajectoryforReference:\*\*\-get\_flight\_cost\(travel\_from=’SFO’,travel\_to=’LAX’,travel\_date=’2024\-10\-15’,travel\_class=’first’\)\-book\_flight\(access\_token=’abc123xyz456’,card\_id=’travel\_card\_12345’,travel\_date=’2024\-10\-15’,travel\_from=’SFO’,travel\_to=’LAX’,travel\_class=’first’\)\#\#\#Example2\*\*Question:\*\*Now,withthenewlysetbudgetandusingcardwithid1432outofmyavailablecards,I’dliketobookthatbusiness\-classflightfromRivermisttoLosAngelesonAugust15,2024,utilizingmyaccesstokenABCDE12345\.Youalreadyknowthetravelcost\!\*\*CorrectToolCallingTrajectoryforReference:\*\*\-book\_flight\(access\_token=’ABCDE12345’,card\_id=’1432’,travel\_date=’2024\-08\-15’,travel\_from=’RMS’,travel\_to=’LAX’,travel\_class=’business’\)\#\#\#Example3\*\*Question:\*\*I’mplanningtojetoffandstumbleduponaniftyflightfromSanFranciscotoLosAngeles\.Lowkey,mybudgetisn’ttootight,butjustmakesureoverallcostfortheflightisbelow$10,000?Youshouldknowmytravelclassis’first’andtraveldateis’2024\-11\-15’\.Oh,andI’vegotmycardwithid’card123’andaccounttoken’access\_token\_abc123’allgoodtogo\.\*\*CorrectToolCallingTrajectoryforReference:\*\*\-get\_flight\_cost\(travel\_from=’SFO’,travel\_to=’LAX’,travel\_date=’2024\-11\-15’,travel\_class=’first’\)\-book\_flight\(access\_token=’access\_token\_abc123’,card\_id=’card123’,travel\_date=’2024\-11\-15’,travel\_from=’SFO’,travel\_to=’LAX’,travel\_class=’first’\)\*\*Note\*\*:Youarenotrequiredtoreferencetheinformationorexamplesaboveiftheyarenotdirectlyrelevanttothecurrentuserquestion\.Analyzetheproblemcarefully,decidewhethertheretrievedinformationisuseful,andalwaysapplyreasoningbeforemakinganytoolcalls\.Youractionsmustbebasedontheinformationgivenbythecurrentuser\.Youcannotmakeupdata,norcanyourefertoexamplesthatwillcauseyoutoactbeyondthecurrentinformation\.Youneedtodeterminethedifferencebetweenyourquestionandthequestioninretrievalexamples\.Attentiontheuserquestionatcurrentturnis:HowmuchwouldaflightfromSFtoLAevencost?It’sprobablycheap\.That’sit,letmejustdoit\.IneedtoarrangeabusinessclassflightforRobertTrentonfromSanFranciscotoLosAngelesonNovember25th2024\.Thereservationshouldbemadeusinghistravelcardwithidcard\_3487andaccesscode1293\.Followingthebooking,Ihavetoensureaninvoiceisissuedtoverifythecharges\.Prompt 7:Example of Scenario Trajectory Knowledge \(ST\)
[⬇](data:text/plain;base64,T3JpZ2luYWwgUXVlc3Rpb246CkhvdyBtdWNoIHdvdWxkIGEgZmxpZ2h0IGZyb20gU0YgdG8gTEEgZXZlbiBjb3N0PyBJdCdzIHByb2JhYmx5IGNoZWFwLiBUaGF0J3MgaXQsIGxldCBtZSBqdXN0IGRvIGl0LiBJIG5lZWQgdG8gYXJyYW5nZSBhIGJ1c2luZXNzIGNsYXNzIGZsaWdodCBmb3IgUm9iZXJ0IFRyZW50b24gZnJvbSBTYW4gRnJhbmNpc2NvIHRvIExvcyBBbmdlbGVzIG9uIE5vdmVtYmVyIDI1dGggMjAyNC4gVGhlIHJlc2VydmF0aW9uIHNob3VsZCBiZSBtYWRlIHVzaW5nIGhpcyB0cmF2ZWwgY2FyZCB3aXRoIGlkIGNhcmRfMzQ4NyBhbmQgYWNjZXNzIGNvZGUgMTI5My4gRm9sbG93aW5nIHRoZSBib29raW5nLCBJIGhhdmUgdG8gZW5zdXJlIGFuIGludm9pY2UgaXMgaXNzdWVkIHRvIHZlcmlmeSB0aGUgY2hhcmdlcy4KCkVuaGFuY2VkIFF1ZXN0aW9uOgpIb3cgbXVjaCB3b3VsZCBhIGZsaWdodCBmcm9tIFNGIHRvIExBIGV2ZW4g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JvYmVydCBUcmVudG9uIGZyb20gU2FuIEZyYW5jaXNjbyB0byBMb3MgQW5nZWxlcyBvbiBOb3ZlbWJlciAyNXRoIDIwMjQuIFRoZSByZXNlcnZhdGlvbiBzaG91bGQgYmUgbWFkZSB1c2luZyBoaXMgdHJhdmVsIGNhcmQgd2l0aCBpZCBjYXJkXzM0ODcgYW5kIGFjY2VzcyBjb2RlIDEyOTMuIEZvbGxvd2luZyB0aGUgYm9va2luZywgSSBoYXZlIHRvIGVuc3VyZSBhbiBpbnZvaWNlIGlzIGlzc3VlZCB0byB2ZXJpZnkgdGhlIGNoYXJnZXMu)OriginalQuestion:HowmuchwouldaflightfromSFtoLAevencost?It’sprobablycheap\.That’sit,letmejustdoit\.IneedtoarrangeabusinessclassflightforRobertTrentonfromSanFranciscotoLosAngelesonNovember25th2024\.Thereservationshouldbemadeusinghistravelcardwithidcard\_3487andaccesscode1293\.Followingthebooking,Ihavetoensureaninvoiceisissuedtoverifythecharges\.EnhancedQuestion:HowmuchwouldaflightfromSFtoLAevencost?It’sprobablycheap\.That’sit,letmejustdoit\.IneedtoarrangeabusinessclassflightforRobertTrentonfromSanFranciscotoLosAngelesonNovember25th2024\.Thereservationshouldbemadeusinghistravelcardwithidcard\_3487andaccesscode1293\.Followingthebooking,Ihavetoensureaninvoiceisissuedtoverifythecharges\.Beforeansweringtheuser’squestionabove,pleasefirstreviewthefollowingrelatedexperiences:\#\#\#Example1\*\*Question:\*\*I’mplanningtoflyfromSanFranciscotoLosAngelesonOctober15,2024\.Couldyouassistinsecuringafirst\-classseatusingmytravelcardwithid’travel\_card\_12345’?Everythingyouneedâaccesstoken\(abc123xyz456\),travelerdetailsâareattheready\.JustmakesurethatIcanafforditbecauseIonlyhave6000dollarstospendforthisflight\.\*\*Analysis&Advice:\*\*Tosolvetheuser’srequestaccurately,thetaskinvolvedextractingessentialinformationsuchasthetravelroute\(SanFranciscotoLosAngeles\),date\(October15,2024\),andclass\(first\)fromthequestion\.Theuser’sbudgetconstraintof$6000wasidentified,necessitatingacheckontheflightcostbeforebooking\.Thecorrecttoolswereselected:‘get\_flight\_cost‘toverifyaffordabilityand‘book\_flight‘toconfirmbookingdetailsusingtheprovidedaccesstokenandtravelcardID\.Thisstructuredapproachensuredthatparametersalignedwithuserneeds\.Forfuturetasks,applyasystematicextractionofconstraints,verifybudgetcompatibilitybeforebooking,andensuretoolparametersmatchtheuser’scontexttomaintainaccuracyandreliability\.\#\#\#Example2\*\*Question:\*\*Now,withthenewlysetbudgetandusingcardwithid1432outofmyavailablecards,I’dliketobookthatbusiness\-classflightfromRivermisttoLosAngelesonAugust15,2024,utilizingmyaccesstokenABCDE12345\.Youalreadyknowthetravelcost\!\*\*Analysis&Advice:\*\*Inthecurrentturn,theproblemwasaccuratelyinterpretedbyidentifyingtheuser’srequesttobookaflightusingspecificconstraints:budget,cardID,andaccesstoken\.Thetaskrequiredextractingtheseparametersfromtheuser’smessageandusingthemtoconfigurethe‘book\_flight‘toolcall\.Theconstraintswerevalidatedagainsttheuser’scontextfrompreviousturns,ensuringthetravelcostandairportcodewerealreadyknown\.Thistask’ssuccessreliedonpreciseparameterextractionandvalidation\.Forfuturetasks,consistentlyextractparametersfromuserinputandcontext,validatethemagainstknowndata,andselecttoolsthatalignwithtaskrequirements\.Ensureallparametersaremappedcorrectlyandverifiedforconsistencywithpreviousinteractions,anduseerrorhandlingtomanagepotentialinconsistencies\.\#\#\#Example3\*\*Question:\*\*I’mplanningtojetoffandstumbleduponaniftyflightfromSanFranciscotoLosAngeles\.Lowkey,mybudgetisn’ttootight,butjustmakesureoverallcostfortheflightisbelow$10,000?Youshouldknowmytravelclassis’first’andtraveldateis’2024\-11\-15’\.Oh,andI’vegotmycardwithid’card123’andaccounttoken’access\_token\_abc123’allgoodtogo\.\*\*Analysis&Advice:\*\*Inthecurrenttask,theagentsuccessfullyinterpretedtheuser’srequestbyidentifyingkeyconstraints:departure\(’SFO’\),destination\(’LAX’\),traveldate\(’2024\-11\-15’\),travelclass\(’first’\),andbudget\(below$10,000\)\.Thecorrecttoolswereselected:‘get\_flight\_cost‘tocheckthecostagainstthebudget,and‘book\_flight‘tofinalizethebookingusingprovidedcredentials\(’card123’,’access\_token\_abc123’\)\.Thisdemonstrateseffectiveconstraintextractionandparametermapping\.Forfuturetasks,ensureclearidentificationofconstraintsandcredentialsfromuserinput,verifytoolcapabilities\(e\.g\.,costretrievalbeforebooking\),andconfirmparametersmeetusercriteriabeforeproceedingwithactions\.Thisstructuredapproachimprovesaccuracyandreliabilityinhandlingsimilartasks\.\*\*Note\*\*:Youarenotrequiredtoreferencetheinformationorexamplesaboveiftheyarenotdirectlyrelevanttothecurrentuserquestion\.Analyzetheproblemcarefully,decidewhethertheretrievedinformationisuseful,andalwaysapplyreasoningbeforemakinganytoolcalls\.Youractionsmustbebasedontheinformationgivenbythecurrentuser\.Youcannotmakeupdata,norcanyourefertoexamplesthatwillcauseyoutoactbeyondthecurrentinformation\.Youneedtodeterminethedifferencebetweenyourquestionandthequestioninretrievalexamples\.Attentiontheuserquestionatcurrentturnis:HowmuchwouldaflightfromSFtoLAevencost?It’sprobablycheap\.That’sit,letmejustdoit\.IneedtoarrangeabusinessclassflightforRobertTrentonfromSanFranciscotoLosAngelesonNovember25th2024\.Thereservationshouldbemadeusinghistravelcardwithidcard\_3487andaccesscode1293\.Followingthebooking,Ihavetoensureaninvoiceisissuedtoverifythecharges\.Prompt 8:Example of Experience Summary Knowledge \(ES\)
[⬇](data:text/plain;base64,T3JpZ2luYWwgUXVlc3Rpb246CkkndmUganVzdCBzZWN1cmVkIGFsbCBkb29ycyBhbmQgZW5nYWdlZCB0aGUgcGFya2luZyBicmFrZSBpbiBteSB2ZWhpY2xlLCBwbGVhc2Ugc3RhcnQgdGhlIGVuZ2luZSB3aXRoIHRoZSBpZ25pdGlvbiBvbiBTVEFSVCBtb2RlLgoKRW5oYW5jZWQgUXVlc3Rpb246CkkndmUganVzdCBzZWN1cmVkIGFsbCBkb29ycyBhbmQgZW5nYWdlZ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mVfYXMiOiAiZG9vcnNfc3RhdHVzIgogIH0sCiAgewogICAgImNvbmRpdGlvbiI6ICI8dW5sb2NrX3JlcXVlc3RlZD4gPT0gVHJ1ZSIsCiAgICAidGhlbiI6IFsKICAgICAgewogICAgICAgICJjYWxsIjogImxvY2tEb29ycyIsCiAgICAgICAgImFyZ3MiOiB7CiAgICAgICAgICAidW5sb2NrIjogdHJ1ZSwKICAgICAgICAgICJkb29yIjogWwogICAgICAgICAgICAiZHJpdmVyIiwKICAgICAgICAgICAgInBhc3NlbmdlciIsCiAgICAgICAgICAgICJyZWFyX2xlZnQiLAogICAgICAgICAgICAicmVhcl9yaWdodCIKICAgICAgICAgIF0KICAgICAgICB9LAogICAgICAgICJzYXZlX2FzIjogInVubG9ja19yZXN1bHQiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiY29uZGl0aW9uIjogInVubG9ja19yZXN1bHQubG9ja1N0YXR1cyA9PSAndW5sb2NrZWQnIiwKICAgICAgICAidGhlbiI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgIm5vdGUiOiAiRG9vcnMgc3VjY2Vzc2Z1bGx5IHVubG9ja2VkIGFzIHJlcXVlc3RlZC4iCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZWxzZSI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImFjdGlvbiI6ICJmYWlsIiwKICAgICAgICAgICAgInJlYXNvbiI6ICJGYWlsZWQgdG8gdW5sb2NrIGFsbCByZXF1ZXN0ZWQgZG9vcnMuIgogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfQogICAgXSwKICAgICJlbHNlIjogWwogICAgICB7CiAgICAgICAgImNvbmRpdGlvbiI6ICJkb29yc19zdGF0dXMuc3RhdHVzLmRvb3JTdGF0dXMgY29udGFpbnMgYW55ICd1bmxvY2tlZCciLAogICAgICAgICJ0aGVuIjogWwogICAgICAgICAgewogICAgICAgICAgICAiY2FsbCI6ICJsb2NrRG9vcnMiLAogICAgICAgICAgICAiYXJncyI6IHsKICAgICAgICAgICAgICAidW5sb2NrIjogZmFsc2UsCiAgICAgICAgICAgICAgImRvb3IiOiBbCiAgICAgICAgICAgICAgICAiZHJpdmVyIiwKICAgICAgICAgICAgICAgICJwYXNzZW5nZXIiLAogICAgICAgICAgICAgICAgInJlYXJfbGVmdCIsCiAgICAgICAgICAgICAgICAicmVhcl9yaWdodCIKICAgICAgICAgICAgICBdCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICJzYXZlX2FzIjogImxvY2tfcmVzdWx0IgogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgImNvbmRpdGlvbiI6ICJsb2NrX3Jlc3VsdC5sb2NrU3RhdHVzID09ICdsb2NrZWQnIGFuZCBsb2NrX3Jlc3VsdC5yZW1haW5pbmdVbmxvY2tlZERvb3JzID09IDAiLAogICAgICAgICAgICAidGhlbiI6IFsKICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAibm90ZSI6ICJBbGwgZG9vcnMgbG9ja2VkIHN1Y2Nlc3NmdWxseS4iCiAgICAgICAgICAgICAgfQogICAgICAgICAgICBdLAogICAgICAgICAgICAiZWxzZSI6IFsKICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAiY2FsbCI6ICJkaXNwbGF5Q2FyU3RhdHVzIiwKICAgICAgICAgICAgICAgICJhcmdzIjogewogICAgICAgICAgICAgICAgICAib3B0aW9uIjogImRvb3JzIgogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgICJzYXZlX2FzIjogImRvb3JzX3N0YXR1c19hZnRlciIKICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICJjb25kaXRpb24iOiAiZG9vcnNfc3RhdHVzX2FmdGVyLnN0YXR1cy5kb29yU3RhdHVzIGNvbnRhaW5zIGFueSAndW5sb2NrZWQnIiwKICAgICAgICAgICAgICAgICJ0aGVuIjogWwogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgImFjdGlvbiI6ICJmYWlsIiwKICAgICAgICAgICAgICAgICAgICAicmVhc29uIjogIlVuYWJsZSB0byBsb2NrIGFsbCBkb29ycyBhZnRlciByZXRyeS4iCiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIF0KICAgICAgICAgICAgICB9CiAgICAgICAgICAgIF0KICAgICAgICAgIH0KICAgICAgICBdLAogICAgICAgICJlbHNlIjogWwogICAgICAgICAgewogICAgICAgICAgICAibm90ZSI6ICJBbGwgZG9vcnMgd2VyZSBhbHJlYWR5IGxvY2tlZC4iCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICBdCiAgfSwKICB7CiAgICAiY29uZGl0aW9uIjogIjxlbnN1cmVfcGFya2luZ19icmFrZV9lbmdhZ2VkPiA9PSBUcnVlIiwKICAgICJ0aGVuIjogWwogICAgICB7CiAgICAgICAgImNhbGwiOiAiYWN0aXZhdGVQYXJraW5nQnJha2UiLAogICAgICAgICJhcmdzIjogewogICAgICAgICAgIm1vZGUiOiAiZW5nYWdlIgogICAgICAgIH0sCiAgICAgICAgInNhdmVfYXMiOiAicGFya2luZ19icmFrZV9zdGF0dXMiCiAgICAgIH0KICAgIF0KICB9LAogIHsKICAgICJjYWxsIjogInByZXNzQnJha2VQZWRhbCIsCiAgICAiYXJncyI6IHsKICAgICAgInBlZGFsUG9zaXRpb24iOiAxLjAKICAgIH0sCiAgICAic2F2ZV9hcyI6ICJicmFrZV9wcmVzcyIKICB9LAogIHsKICAgICJjb25kaXRpb24iOiAiYnJha2VfcHJlc3MuYnJha2VQZWRhbFN0YXR1cyA9PSAncHJlc3NlZCciLAogICAgInRoZW4iOiBbCiAgICAgIHsKICAgICAgICAiY2FsbCI6ICJzdGFydEVuZ2luZSIsCiAgICAgICAgImFyZ3MiOiB7CiAgICAgICAgICAiaWduaXRpb25Nb2RlIjogIlNUQVJUIgogICAgICAgIH0sCiAgICAgICAgInNhdmVfYXMiOiAiZW5naW5lX3N0YXJ0IgogICAgICB9CiAgICBdLAogICAgImVsc2UiOiBbCiAgICAgIHsKICAgICAgICAiYWN0aW9uIjogImZhaWwiLAogICAgICAgICJyZWFzb24iOiAiQnJha2UgcGVkYWwgbm90IHByZXNzZWQ7IGNhbm5vdCBzdGFydCBlbmdpbmUuIgogICAgICB9CiAgICBdCiAgfSwKICB7CiAgICAiY29uZGl0aW9uIjogImVuZ2luZV9zdGFydC5lbmdpbmVTdGF0ZSA9PSAncnVubmluZyciLAogICAgInRoZW4iOiBbCiAgICAgIHsKICAgICAgICAibm90ZSI6ICJFbmdpbmUgc3RhcnRlZCBzdWNjZXNzZnVsbHkuIgogICAgICB9LAogICAgICB7CiAgICAgICAgImNhbGwiOiAiZGlzcGxheUNhclN0YXR1cyIsCiAgICAgICAgImFyZ3MiOiB7CiAgICAgICAgICAib3B0aW9uIjogImVuZ2luZSIKICAgICAgICB9LAogICAgICAgICJzYXZlX2FzIjogImVuZ2luZV9zdGF0dXMiCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiY2FsbCI6ICJkaXNwbGF5Q2FyU3RhdHVzIiwKICAgICAgICAiYXJncyI6IHsKICAgICAgICAgICJvcHRpb24iOiAiZnVlbCIKICAgICAgICB9LAogICAgICAgICJzYXZlX2FzIjogImZ1ZWxfc3RhdHVzIgogICAgICB9LAogICAgICB7CiAgICAgICAgImNhbGwiOiAiZGlzcGxheUNhclN0YXR1cyIsCiAgICAgICAgImFyZ3MiOiB7CiAgICAgICAgICAib3B0aW9uIjogImJhdHRlcnkiCiAgICAgICAgfSwKICAgICAgICAic2F2ZV9hcyI6ICJiYXR0ZXJ5X3N0YXR1cyIKICAgICAgfSwKICAgICAgewogICAgICAgICJjb25kaXRpb24iOiAiPG5lZWRfY2xpbWF0ZV9zdGF0dXM+ID09IFRydWUiLAogICAgICAgICJ0aGVuIjogWwogICAgICAgICAgewogICAgICAgICAgICAiY2FsbCI6ICJkaXNwbGF5Q2FyU3RhdHVzIiwKICAgICAgICAgICAgImFyZ3MiOiB7CiAgICAgICAgICAgICAgIm9wdGlvbiI6ICJjbGltYXRlIgogICAgICAgICAgICB9LAogICAgICAgICAgICAic2F2ZV9hcyI6ICJjbGltYXRlX3N0YXR1cyIKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiY29uZGl0aW9uIjogIjxuZWVkX2hlYWRsaWdodHM+ID09IFRydWUiLAogICAgICAgICJ0aGVuIjogWwogICAgICAgICAgewogICAgICAgICAgICAiY2FsbCI6ICJzZXRIZWFkbGlnaHRzIiwKICAgICAgICAgICAgImFyZ3MiOiB7CiAgICAgICAgICAgICAgIm1vZGUiOiAiPGhlYWRsaWdodF9tb2RlX29uX29yX2F1dG8+IgogICAgICAgICAgICB9LAogICAgICAgICAgICAic2F2ZV9hcyI6ICJoZWFkbGlnaHRzX3N0YXR1cyIKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0sCiAgICAgIHsKICAgICAgICAiY29uZGl0aW9uIjogIjxjaGVja190aXJlX3ByZXNzdXJlPiA9PSBUcnVlIiwKICAgICAgICAidGhlbiI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImNhbGwiOiAiY2hlY2tfdGlyZV9wcmVzc3VyZSIsCiAgICAgICAgICAgICJhcmdzIjoge30sCiAgICAgICAgICAgICJzYXZlX2FzIjogInRpcmVfc3RhdHVzIgogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgImNvbmRpdGlvbiI6ICJ0aXJlX3N0YXR1cy50aXJlUHJlc3N1cmUuaGVhbHRoeV90aXJlX3ByZXNzdXJlID09IEZhbHNlIiwKICAgICAgICAgICAgInRoZW4iOiBbCiAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgImNhbGwiOiAiZmluZF9uZWFyZXN0X3RpcmVfc2hvcCIsCiAgICAgICAgICAgICAgICAiYXJncyI6IHt9LAogICAgICAgICAgICAgICAgInNhdmVfYXMiOiAidGlyZV9zaG9wIgogICAgICAgICAgICAgIH0KICAgICAgICAgICAgXQogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfSwKICAgICAgewogICAgICAgICJjb25kaXRpb24iOiAiPHJlYWR5X3RvX2RyaXZlPiA9PSBUcnVlIiwKICAgICAgICAidGhlbiI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgImNhbGwiOiAiYWN0aXZhdGVQYXJraW5nQnJha2UiLAogICAgICAgICAgICAiYXJncyI6IHsKICAgICAgICAgICAgICAibW9kZSI6ICJyZWxlYXNlIgogICAgICAgICAgICB9LAogICAgICAgICAgICAic2F2ZV9hcyI6ICJwYXJraW5nX2JyYWtlX3JlbGVhc2UiCiAgICAgICAgICB9LAogICAgICAgICAgewogICAgICAgICAgICAiY2FsbCI6ICJyZWxlYXNlQnJha2VQZWRhbCIsCiAgICAgICAgICAgICJhcmdzIjoge30sCiAgICAgICAgICAgICJzYXZlX2FzIjogImJyYWtlX3JlbGVhc2UiCiAgICAgICAgICB9CiAgICAgICAgXSwKICAgICAgICAiZWxzZSI6IFsKICAgICAgICAgIHsKICAgICAgICAgICAgIm5vdGUiOiAiUmVtYWluIHN0YXRpb25hcnk6IGtlZXAgcGFya2luZyBicmFrZSBlbmdhZ2VkIGFuZCBmb290IGJyYWtlIGFzIG5lZWRlZC4iCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9CiAgICBdLAogICAgImVsc2UiOiBbCiAgICAgIHsKICAgICAgICAibm90ZSI6ICJFbmdpbmUgZmFpbGVkIHRvIHN0YXJ0OyBwcm9jZWVkIHdpdGggZGlhZ25vc3RpY3MuIgogICAgICB9LAogICAgICB7CiAgICAgICAgImNhbGwiOiAiZGlzcGxheUNhclN0YXR1cyIsCiAgICAgICAgImFyZ3MiOiB7CiAgICAgICAgICAib3B0aW9uIjogImZ1ZWwiCiAgICAgICAgfSwKICAgICAgICAic2F2ZV9hcyI6ICJmdWVsX3N0YXR1c19vbl9mYWlsIgogICAgICB9LAogICAgICB7CiAgICAgICAgImNhbGwiOiAiZGlz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24gb24gU1RBUlQgbW9kZS4=)OriginalQuestion:I’vejustsecuredalldoorsandengagedtheparkingbrakeinmyvehicle,pleasestarttheenginewiththeignitiononSTARTmode\.EnhancedQuestion:I’vejustsecuredalldoorsandengagedtheparkingbrakeinmyvehicle,pleasestarttheenginewiththeignitiononSTARTmode\.Beforeansweringtheuser’squestionabove,pleasefirstreviewthefollowingrelatedexperiences:Theuser’sintentisTheuserintendstostartthevehicle’senginebyengagingtheignitioninSTARTmodeafterensuringalldoorsaresecuredandtheparkingbrakeisapplied\.Therearesomebehaviorpatternforyoutoreference:\*\*PatternofThecommonintentistoensurecardoorsarelockedandtheengineisstartedforasafeandpreparedjourney\.\*\*:\[\{"note":"Preconditionsandsafety:ensuretheuserisauthorizedtocontrolthevehicle,thevehicleisinPark/Neutral,andsurroundingsaresafe\."\},\{"call":"displayCarStatus","args":\{"option":"doors"\},"save\_as":"doors\_status"\},\{"condition":"<unlock\_requested\>==True","then":\[\{"call":"lockDoors","args":\{"unlock":true,"door":\["driver","passenger","rear\_left","rear\_right"\]\},"save\_as":"unlock\_result"\},\{"condition":"unlock\_result\.lockStatus==’unlocked’","then":\[\{"note":"Doorssuccessfullyunlockedasrequested\."\}\],"else":\[\{"action":"fail","reason":"Failedtounlockallrequesteddoors\."\}\]\}\],"else":\[\{"condition":"doors\_status\.status\.doorStatuscontainsany’unlocked’","then":\[\{"call":"lockDoors","args":\{"unlock":false,"door":\["driver","passenger","rear\_left","rear\_right"\]\},"save\_as":"lock\_result"\},\{"condition":"lock\_result\.lockStatus==’locked’andlock\_result\.remainingUnlockedDoors==0","then":\[\{"note":"Alldoorslockedsuccessfully\."\}\],"else":\[\{"call":"displayCarStatus","args":\{"option":"doors"\},"save\_as":"doors\_status\_after"\},\{"condition":"doors\_status\_after\.status\.doorStatuscontainsany’unlocked’","then":\[\{"action":"fail","reason":"Unabletolockalldoorsafterretry\."\}\]\}\]\}\],"else":\[\{"note":"Alldoorswerealreadylocked\."\}\]\}\]\},\{"condition":"<ensure\_parking\_brake\_engaged\>==True","then":\[\{"call":"activateParkingBrake","args":\{"mode":"engage"\},"save\_as":"parking\_brake\_status"\}\]\},\{"call":"pressBrakePedal","args":\{"pedalPosition":1\.0\},"save\_as":"brake\_press"\},\{"condition":"brake\_press\.brakePedalStatus==’pressed’","then":\[\{"call":"startEngine","args":\{"ignitionMode":"START"\},"save\_as":"engine\_start"\}\],"else":\[\{"action":"fail","reason":"Brakepedalnotpressed;cannotstartengine\."\}\]\},\{"condition":"engine\_start\.engineState==’running’","then":\[\{"note":"Enginestartedsuccessfully\."\},\{"call":"displayCarStatus","args":\{"option":"engine"\},"save\_as":"engine\_status"\},\{"call":"displayCarStatus","args":\{"option":"fuel"\},"save\_as":"fuel\_status"\},\{"call":"displayCarStatus","args":\{"option":"battery"\},"save\_as":"battery\_status"\},\{"condition":"<need\_climate\_status\>==True","then":\[\{"call":"displayCarStatus","args":\{"option":"climate"\},"save\_as":"climate\_status"\}\]\},\{"condition":"<need\_headlights\>==True","then":\[\{"call":"setHeadlights","args":\{"mode":"<headlight\_mode\_on\_or\_auto\>"\},"save\_as":"headlights\_status"\}\]\},\{"condition":"<check\_tire\_pressure\>==True","then":\[\{"call":"check\_tire\_pressure","args":\{\},"save\_as":"tire\_status"\},\{"condition":"tire\_status\.tirePressure\.healthy\_tire\_pressure==False","then":\[\{"call":"find\_nearest\_tire\_shop","args":\{\},"save\_as":"tire\_shop"\}\]\}\]\},\{"condition":"<ready\_to\_drive\>==True","then":\[\{"call":"activateParkingBrake","args":\{"mode":"release"\},"save\_as":"parking\_brake\_release"\},\{"call":"releaseBrakePedal","args":\{\},"save\_as":"brake\_release"\}\],"else":\[\{"note":"Remainstationary:keepparkingbrakeengagedandfootbrakeasneeded\."\}\]\}\],"else":\[\{"note":"Enginefailedtostart;proceedwithdiagnostics\."\},\{"call":"displayCarStatus","args":\{"option":"fuel"\},"save\_as":"fuel\_status\_on\_fail"\},\{"call":"displayCarStatus","args":\{"option":"battery"\},"save\_as":"battery\_status\_on\_fail"\},\{"condition":"fuel\_status\_on\_fail\.status\.fuelLevel<=<fuel\_min\_threshold\_gal\>","then":\[\{"call":"fillFuelTank","args":\{"fuelAmount":"<fuel\_amount\_gal\>"\},"save\_as":"refuel\_result"\}\]\},\{"action":"fail","reason":"Enginedidnotstart;checkbatteryvoltageandfuellevel,thenretry\."\}\]\},\{"note":"Optional:Ifuserexplicitlyrequestsdoorunlocking\(e\.g\.,foraccess\),runtheunlockbranchabovebeforeanystartsteps\.Iflow\-lightisexpectedorrequested,setheadlightsto’auto’or’on’\.Alwaysconfirmcriticalstates\(doors,engine,fuel,battery\)afteractions\."\}\]\*\*Note\*\*:Youarenotrequiredtoreferencetheinformationorexamplesaboveiftheyarenotdirectlyrelevanttothecurrentuserquestion\.Analyzetheproblemcarefully,decidewhethertheretrievedinformationisuseful,andalwaysapplyreasoningbeforemakinganytoolcalls\.Youractionsmustbebasedontheinformationgivenbythecurrentuser\.Youcannotmakeupdata,norcanyourefertoexamplesthatwillcauseyoutoactbeyondthecurrentinformation\.Youneedtodeterminethedifferencebetweenyourquestionandthequestioninretrievalexamples\.Attentiontheuserquestionatcurrentturnis:I’vejustsecuredalldoorsandengagedtheparkingbrakeinmyvehicle,pleasestarttheenginewiththeignitiononSTARTmode\.Prompt 9:Example of Script\-Style Intent Clustering Knowledge \(SIC\)
[⬇](data:text/plain;base64,T3JpZ2luYWwgUXVlc3Rpb246CkkndmUganVzdCBzZWN1cmVkIGFsbCBkb29ycyBhbmQgZW5nYWdlZCB0aGUgcGFya2luZyBicmFrZSBpbiBteSB2ZWhpY2xlLCBwbGVhc2Ugc3RhcnQgdGhlIGVuZ2luZSB3aXRoIHRoZSBpZ25pdGlvbiBvbiBTVEFSVCBtb2RlLgoKRW5oYW5jZWQgUXVlc3Rpb246CkkndmUganVzdCBzZWN1cmVkIGFsbCBkb29ycyBhbmQgZW5nYWdlZCB0aGUgcGFya2luZyBicmFrZSBpbiBteSB2ZWhpY2xlLCBwbGVhc2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VudCB0dXJuIGlzOiAKSSd2ZSBqdXN0IHNlY3VyZWQgYWxsIGRvb3JzIGFuZCBlbmdhZ2VkIHRoZSBwYXJraW5nIGJyYWtlIGluIG15IHZlaGljbGUsIHBsZWFzZSBzdGFydCB0aGUgZW5naW5lIHdpdGggdGhlIGlnbml0aW9uIG9uIFNUQVJUIG1vZGUu)OriginalQuestion:I’vejustsecuredalldoorsandengagedtheparkingbrakeinmyvehicle,pleasestarttheenginewiththeignitiononSTARTmode\.EnhancedQuestion:I’vejustsecuredalldoorsandengagedtheparkingbrakeinmyvehicle,pleasestarttheenginewiththeignitiononSTARTmode\.Beforeansweringtheuser’squestionabove,pleasefirstreviewthefollowingrelatedexperiences:Theuser’sintentisTheuserhassecuredthevehicle’sdoorsandengagedtheparkingbrake,andisrequestingtostarttheenginebyturningtheignitiontotheSTARTmode\.Therearesomebehaviorpatternforyoutoreference:\*\*PatternSummaryofThecommonintentistoensurecardoorsarelockedandtheengineisstartedforasafeandpreparedjourney\.\*\*:Acrosstheprovidedtoolcallpaths,themainstreampatternistosecurethevehiclebylockingalldoors,thenstarttheenginebyfullypressingthebrakepedalandinvokingSTART\.Variationsincludecheckingdoorstatusbeforelocking,engagingtheparkingbrakeforsafety,turningonheadlightswhenrequested,andperformingpost\-startcheckslikeclimateortirepressure\.Commonpitfallsobserved:skippingapre\-checkofdoorstatusbeforelocking;notverifyingtheoutcomeofdoorlock/unlock;notconfirmingtheengineactuallystarted;neglectingfuel/batterychecksifstartfails;forgettingtoreleasethebrakepedaland/orparkingbrakebeforedriving;failingtohandlelowtirepressure;andnotconfirmingorsettingheadlightsappropriatelyforconditions\.Tomaketheworkflowrobust,itshouldinclude:doorstatusverificationandconfirmationafterlock/unlock;parkingbrakeengagementlogic\(engagewhenstationaryoronslopes,releasewhenreadytodrive\);brakepedalpressverification;enginestartverificationanddiagnosticsonfailure\(fuel/batterychecks,possiblerefuel\);optionalsafetychecks\(tirepressure\);optionallighting/climatesteps;andclean\-upstepslikereleasingthebrakeandparkingbrakebeforedeparture\.\*\*Note\*\*:Youarenotrequiredtoreferencetheinformationorexamplesaboveiftheyarenotdirectlyrelevanttothecurrentuserquestion\.Analyzetheproblemcarefully,decidewhethertheretrievedinformationisuseful,andalwaysapplyreasoningbeforemakinganytoolcalls\.Youractionsmustbebasedontheinformationgivenbythecurrentuser\.Youcannotmakeupdata,norcanyourefertoexamplesthatwillcauseyoutoactbeyondthecurrentinformation\.Youneedtodeterminethedifferencebetweenyourquestionandthequestioninretrievalexamples\.Attentiontheuserquestionatcurrentturnis:I’vejustsecuredalldoorsandengagedtheparkingbrakeinmyvehicle,pleasestarttheenginewiththeignitiononSTARTmode\.Prompt 10:Example of Script\-Style Intent Clustering Knowledge \(TIC\)Similar Articles
Are Tools Always Beneficial? Learning to Invoke Tools Adaptively for Dual-Mode Multimodal LLM Reasoning
Introduces AutoTool, a model that adaptively decides whether to invoke tools for multimodal LLM reasoning, achieving significant accuracy and efficiency gains through reinforcement learning and dual-mode reasoning.
Absorbing Complexity: An Interaction-Native Knowledge Harness for Financial LLM Agents
Proposes InKH, an interaction-native knowledge harness architecture for financial LLM agents that absorbs user complexity through structured knowledge management and temporal memory, achieving significant improvements in latency, token cost, and stale-knowledge reduction.
LLM Agents Already Know When to Call Tools -- Even Without Reasoning
This paper introduces When2Tool, a benchmark to study when LLM agents actually need to call tools, and reveals that models already know tool necessity from hidden states but fail to act. The proposed Probe&Prefill method reduces unnecessary tool calls by 48% with minimal accuracy loss.
Towards Just-in-Time Adaptive Feedback: Enhancing Student Learning via Knowledge-Grounded LLM
This paper presents a framework that uses domain-specific expert knowledge to ground large language models for providing Just-in-Time adaptive feedback to students based on their written reasoning, achieving over 80% improvement in student performance in a large university course.
LLMs Improving LLMs: Agentic Discovery for Test-Time Scaling
This paper introduces AutoTTS, an environment-driven framework that automates the discovery of test-time scaling strategies for LLMs by formulating it as controller synthesis. It demonstrates improved accuracy-cost tradeoffs on mathematical reasoning benchmarks with minimal computational overhead.