LLM Agents Making Agent Tools

📅 2025-02-17
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
To address the limited generalization capability of LLM-based agents in specialized domains such as life sciences and medicine—stemming from their reliance on manually pre-written tools—this paper introduces ToolMaker: the first end-to-end framework for automatically constructing LLM-callable tools from scientific code repositories. Its core innovation is a closed-loop, self-correcting paradigm for fully automated tool generation, integrating multi-step reasoning–driven agent orchestration, automatic dependency installation, iterative code generation and debugging, and unit-test–driven robustness validation. Evaluated on a benchmark of 15 complex tasks spanning medical and non-medical domains, ToolMaker achieves an 80% accuracy rate, substantially outperforming existing software-engineering–oriented LLM agents. It represents the first system capable of autonomously transforming research code into production-ready, LLM-executable tools.

Technology Category

Machine Learning: Large Multimodal Models (LMMs)Natural Language Processing: Code Generation / Program Synthesis from Natural LanguageCognitive Modeling & Cognitive Systems: Agent Architectures

Application Category

Search and Retrieval-Augmented AI: Search Tool Learning with LLM: Teaching LLMs to invoke search and make use of retrieved informationSemantics and Knowledge: Data modeling to support human-machine intelligence, including LLMs agents, intelligent system behavior, explanations, and user-friendly interactionsEconomics, Online Markets and Human Computation: Cost models of using LLMs in production systems
📝 Abstract
Tool use has turned large language models (LLMs) into powerful agents that can perform complex multi-step tasks by dynamically utilising external software components. However, these tools must be implemented in advance by human developers, hindering the applicability of LLM agents in domains which demand large numbers of highly specialised tools, like in life sciences and medicine. Motivated by the growing trend of scientific studies accompanied by public code repositories, we propose ToolMaker, a novel agentic framework that autonomously transforms papers with code into LLM-compatible tools. Given a short task description and a repository URL, ToolMaker autonomously installs required dependencies and generates code to perform the task, using a closed-loop self-correction mechanism to iteratively diagnose and rectify errors. To evaluate our approach, we introduce a benchmark comprising 15 diverse and complex computational tasks spanning both medical and non-medical domains with over 100 unit tests to objectively assess tool correctness and robustness. ToolMaker correctly implements 80% of the tasks, substantially outperforming current state-of-the-art software engineering agents. ToolMaker therefore is a step towards fully autonomous agent-based scientific workflows.
Problem

Research questions and friction points this paper is trying to address.

Autonomous tool creation for LLMs
Enhancing LLM agents' domain adaptability
Transforming code-based papers into tools
Innovation

Methods, ideas, or system contributions that make the work stand out.

Autonomous tool creation from papers
Closed-loop self-correction mechanism
Benchmark for tool correctness assessment
🔎 Similar Papers
G
Georg Wölflein
Else Kröner Fresenius Center for Digital Health, Technical University Dresden, Germany; School of Computer Science, University of St Andrews, United Kingdom
D
Dyke Ferber
Else Kröner Fresenius Center for Digital Health, Technical University Dresden, Germany; National Center for Tumor Diseases (NCT), Heidelberg University Hospital, Germany
Daniel Truhn
Daniel Truhn
Professor of Radiology, University Hospital Aachen
Machine LearningArtificial IntelligenceComputer VisionMedical Imaging
O
Ognjen Arandjelović
School of Computer Science, University of St Andrews, United Kingdom
J
Jakob Nikolas Kather
Else Kröner Fresenius Center for Digital Health, Technical University Dresden, Germany; National Center for Tumor Diseases (NCT), Heidelberg University Hospital, Germany; Department of Medicine I, University Hospital Dresden, Germany