ToolCoder: Teach Code Generation Models to use API search tools
Not on the map. Why?
Cited by 20 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Automatically generating source code from natural language descriptions has been a growing field of research in recent years. However, current large-scale code generation models often encounter difficulties when selecting appropriate APIs for specific contexts. These models may generate APIs that do not meet requirements or refer to non-existent APIs in third-party libraries, especially for lesser-known or private libraries. Inspired by the process of human developers using tools to search APIs, we propose ToolCoder, a novel approach that integrates API search tools with existing models to assist in code generation and API selection. To teach our model to use tools, we introduce an automated data annotation method using ChatGPT to add tool usage information into the source code data and fine-tune code generation models. During inference, we integrate API search tools into the generation process so that our model can automatically use the search tool to get suggestions when selecting an API. Our experimental results demonstrate that ToolCoder exhibits excellent performance and generalization across five public and private library code generation benchmarks, with at least 6.21% improvement on average pass@1 metrics and 9.64% improvement on average pass@10 metrics compared to state-of-the-art methods. Furthermore, we show that our relatively small ToolCoder model is comparable to one of the current best models, GPT-3.5, highlighting the potential of incorporating programming tools into the code generation process.
Key facts. Cited by 37 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 May 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 15; 2025: 15; 2026: 6.
37 papers.
Sort:
By area:
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 194
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2024What Are Tools Anyway? A Survey from the Language Model Perspectivecited by 53
- 2025SciReplicate-Bench: Benchmarking LLMs in Agent-driven Algorithmic Reproduction from Research Paperscited by 42
- 2026Code as Agent Harnesscited by 40
- 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generationcited by 39
- 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scalecited by 39
- 2024Octopus: On-device language model for function calling of software APIscited by 26
25 more
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveragingcited by 25
- 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Taskscited by 24
- 2024An LLM Agent for Automatic Geospatial Data Analysiscited by 21
- 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updatescited by 18
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applicationscited by 17
- 2026Vision2Web: A Hierarchical Benchmark for Visual Website Development with Agent Verificationcited by 16
- 2025Can Compressed LLMs Truly Act? An Empirical Evaluation of Agentic Capabilities in LLM Compressioncited by 15
- 2024RGD: Multi-LLM Based Agent Debugger via Refinement and Generation Guidancecited by 12
- 2025AskToAct: Enhancing LLMs Tool Use via Self-Correcting Clarificationcited by 12
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challengescited by 9
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Applicationcited by 8
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunitiescited by 7
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generationcited by 6
- 2024API Pack: A Massive Multi-Programming Language Dataset for API Call Generationcited by 5
- 2025GraphChain: Large Language Models for Large-scale Graph Analysis via Tool Chainingcited by 5
- 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specificationscited by 4
- 2024MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programmingcited by 3
- 2025The Fools are Certain; the Wise are Doubtful: Exploring LLM Confidence in Code Completioncited by 3
- 2024Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context Learningcited by 2
- 2025Towards Event Extraction with Massive Types: LLM-based Collaborative Annotation and Partitioning Extractioncited by 2
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agentscited by 2
- 2025Mitigating Sensitive Information Leakage in LLMs4Code through Machine Unlearningcited by 1
- 2026SkillAlign: Aligning Skill Interfaces for LLM-based Agentscited by 0
- 2026SkillAlign: Aligning Skill Interfaces for LLM-based Agents7 Sep 2026
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Application10 Jun 2026
- 2026Code as Agent Harness18 May 2026
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applications8 May 2026
- 2026Vision2Web: A Hierarchical Benchmark for Visual Website Development with Agent Verification27 Mar 2026
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunities14 Jan 2026
- 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specifications6 Nov 2025
- 2025GraphChain: Large Language Models for Large-scale Graph Analysis via Tool Chaining1 Nov 2025
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agents20 Oct 2025
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveraging26 Aug 2025
- 2025The Fools are Certain; the Wise are Doubtful: Exploring LLM Confidence in Code Completion22 Aug 2025
- 2025Can Compressed LLMs Truly Act? An Empirical Evaluation of Agentic Capabilities in LLM Compression26 May 2025
25 more
- 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challenges29 Apr 2025
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generation18 Apr 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025SciReplicate-Bench: Benchmarking LLMs in Agent-driven Algorithmic Reproduction from Research Papers31 Mar 2025
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challenges27 Mar 2025
- 2025Towards Event Extraction with Massive Types: LLM-based Collaborative Annotation and Partitioning Extraction4 Mar 2025
- 2025AskToAct: Enhancing LLMs Tool Use via Self-Correcting Clarification3 Mar 2025
- 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scale19 Feb 2025
- 2025Mitigating Sensitive Information Leakage in LLMs4Code through Machine Unlearning9 Feb 2025
- 2024MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programming25 Oct 2024
- 2024An LLM Agent for Automatic Geospatial Data Analysis24 Oct 2024
- 2024RGD: Multi-LLM Based Agent Debugger via Refinement and Generation Guidance2 Oct 2024
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generation24 Sep 2024
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep 2024
- 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updates8 Jul 2024
- 2024Tool Learning with Large Language Models: A Survey28 May 2024
- 2024Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context Learning6 May 2024
- 2024Octopus: On-device language model for function calling of software APIs2 Apr 2024
- 2024What Are Tools Anyway? A Survey from the Language Model Perspective18 Mar 2024
- 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Tasks7 Mar 2024
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey29 Feb 2024
- 2024API Pack: A Massive Multi-Programming Language Dataset for API Call Generation14 Feb 2024
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution5 Jan 2024
- 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generation14 Nov 2023
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 194
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2025SciReplicate-Bench: Benchmarking LLMs in Agent-driven Algorithmic Reproduction from Research Paperscited by 42
- 2026Code as Agent Harnesscited by 40
- 2024Octopus: On-device language model for function calling of software APIscited by 26
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveragingcited by 25
- 2024An LLM Agent for Automatic Geospatial Data Analysiscited by 21
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applicationscited by 17
- 2026Vision2Web: A Hierarchical Benchmark for Visual Website Development with Agent Verificationcited by 16
- 2025Can Compressed LLMs Truly Act? An Empirical Evaluation of Agentic Capabilities in LLM Compressioncited by 15
12 most cited of 18 All 18 (JSON)
- 2026SkillAlign: Aligning Skill Interfaces for LLM-based Agents7 Sep 2026
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Application10 Jun 2026
- 2026Code as Agent Harness18 May 2026
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applications8 May 2026
- 2026Vision2Web: A Hierarchical Benchmark for Visual Website Development with Agent Verification27 Mar 2026
- 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunities14 Jan 2026
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveraging26 Aug 2025
- 2025Can Compressed LLMs Truly Act? An Empirical Evaluation of Agentic Capabilities in LLM Compression26 May 2025
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generation18 Apr 2025
- 2025SciReplicate-Bench: Benchmarking LLMs in Agent-driven Algorithmic Reproduction from Research Papers31 Mar 2025
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challenges27 Mar 2025
- 2025AskToAct: Enhancing LLMs Tool Use via Self-Correcting Clarification3 Mar 2025
12 newest of 18 All 18 (JSON)
- 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specificationscited by 4
- 2024MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programmingcited by 3
- 2024Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context Learningcited by 2
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agentscited by 2
- 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specifications6 Nov 2025
- 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agents20 Oct 2025
- 2024MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programming25 Oct 2024
- 2024Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context Learning6 May 2024
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024What Are Tools Anyway? A Survey from the Language Model Perspectivecited by 53
- 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generationcited by 39
- 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scalecited by 39
- 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Taskscited by 24
- 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updatescited by 18
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challengescited by 9
- 2024API Pack: A Massive Multi-Programming Language Dataset for API Call Generationcited by 5
- 2025GraphChain: Large Language Models for Large-scale Graph Analysis via Tool Chainingcited by 5
- 2025The Fools are Certain; the Wise are Doubtful: Exploring LLM Confidence in Code Completioncited by 3
- 2025Towards Event Extraction with Massive Types: LLM-based Collaborative Annotation and Partitioning Extractioncited by 2
- 2025GraphChain: Large Language Models for Large-scale Graph Analysis via Tool Chaining1 Nov 2025
- 2025The Fools are Certain; the Wise are Doubtful: Exploring LLM Confidence in Code Completion22 Aug 2025
- 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challenges29 Apr 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025Towards Event Extraction with Massive Types: LLM-based Collaborative Annotation and Partitioning Extraction4 Mar 2025
- 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scale19 Feb 2025
- 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updates8 Jul 2024
- 2024What Are Tools Anyway? A Survey from the Language Model Perspective18 Mar 2024
- 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Tasks7 Mar 2024
- 2024API Pack: A Massive Multi-Programming Language Dataset for API Call Generation14 Feb 2024
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution5 Jan 2024
- 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generation14 Nov 2023