Solving Context Window Overflow in AI Agents
On the map: LLM agents and tool use → Medical and scientific domain agents
Abstract (arXiv)
Large Language Models (LLMs) have become increasingly capable of interacting with external tools, granting access to specialized knowledge beyond their training data - critical in dynamic, knowledge-intensive domains such as Chemistry and Materials Science. However, large tool outputs can overflow the LLMs' context window, preventing task completion. Existing solutions such as truncation or summarization fail to preserve complete outputs, making them unsuitable for workflows requiring the full data. This work introduces a method that enables LLMs to process and utilize tool responses of arbitrary length without loss of information. By shifting the model's interaction from raw data to memory pointers, the method preserves tool functionality, allows seamless integration into agentic workflows, and reduces token usage and execution time. The proposed method is validated on a real-world Materials Science application that cannot be executed with conventional workflows, and its effectiveness is demonstrated via a comparative analysis where both methods succeed. In this experiment, the proposed approach consumed approximately seven times fewer tokens than the traditional workflow.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Medical and scientific domain agents, one of 16 directions in LLM agents and tool use. Builds on 7 of its 9 references that are in the map. First posted on arXiv 27 Nov 2025.
Builds on
7 of 9 references.
References · 7
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,947
- 2023ChemCrow: Augmenting large-language models with chemistry toolscited by 631
- 2023RestGPT: Connecting Large Language Models with Real-World RESTful APIscited by 135
- 2024Toolshed: Scale Tool-Equipped Agents with Advanced RAG-Tool Fusion and Tool Knowledge Basescited by 23
- 2025LongFuncEval: Measuring the effectiveness of long context models for function callingcited by 18
- 2024Concise and Precise Context Compression for Tool-Using Language Modelscited by 12
- 2024EcoAct: Economic Agent Determines When to Register What Actioncited by 11
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agentscited by 44
- 2026View-oriented Conversation Compiler for Agent Trace Analysiscited by 2
- 2026On Problems of Implicit Context Compression for Software Engineering Agentscited by 0
- 2026SpecFirst: Behavioral Specification Elicitation as a First-Class Step in Agent-Based Program Synthesis from Scratchcited by 0
- 2026SpecFirst: Behavioral Specification Elicitation as a First-Class Step in Agent-Based Program Synthesis from Scratch29 Jul 2026
- 2026On Problems of Implicit Context Compression for Software Engineering Agents11 May 2026
- 2026View-oriented Conversation Compiler for Agent Trace Analysis31 Mar 2026
- 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents14 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026From Knowledge to Action: Outcomes of the 2025 Large Language Model (LLM) Hackathon for Applications in Materials Science and Chemistry
- 2026Token Optimization and Context Window Management in Multi-Agent AI Workflows
- 2024AutoFlow: Automated Workflow Generation for Large Language Model Agents
- 2025LLM Agents for Knowledge Discovery in Atomic Layer Processing
- 2026A Cloud-based Multi-Agentic Workflow for Science
- 2024HoneyComb: A Flexible LLM-Based Agent System for Materials Science
- 2025LLM-Based Data Science Agents: A Survey of Capabilities, Challenges, and Future Directions
- 2026Can Coding Agents Reproduce Findings in Computational Materials Science?