mlsanityData to 7 Oct 2026

ToolCoder: Teach Code Generation Models to use API search tools

arXiv 2305.04032 ↗First posted 6 May 2023cs.SEcited by 37

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 15; 2025: 15; 2026: 6.

37 papers.

Sort:

By area:

  1. 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
  2. 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
  3. 2024Tool Learning with Large Language Models: A Surveycited by 221
  4. 2025Large Language Model Agent: A Survey on Methodology, Applications and Challengescited by 194
  5. 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 173
  6. 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
  7. 2024What Are Tools Anyway? A Survey from the Language Model Perspectivecited by 53
  8. 2025SciReplicate-Bench: Benchmarking LLMs in Agent-driven Algorithmic Reproduction from Research Paperscited by 42
  9. 2026Code as Agent Harnesscited by 40
  10. 2023CodeScope: An Execution-based Multilingual Multitask Multidimensional Benchmark for Evaluating LLMs on Code Understanding and Generationcited by 39
  11. 2025Repo2Run: Automated Building Executable Environment for Code Repository at Scalecited by 39
  12. 2024Octopus: On-device language model for function calling of software APIscited by 26
25 more
  1. 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveragingcited by 25
  2. 2024Evaluation of LLMs on Syntax-Aware Code Fill-in-the-Middle Taskscited by 24
  3. 2024An LLM Agent for Automatic Geospatial Data Analysiscited by 21
  4. 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updatescited by 18
  5. 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applicationscited by 17
  6. 2026Vision2Web: A Hierarchical Benchmark for Visual Website Development with Agent Verificationcited by 16
  7. 2025Can Compressed LLMs Truly Act? An Empirical Evaluation of Agentic Capabilities in LLM Compressioncited by 15
  8. 2024RGD: Multi-LLM Based Agent Debugger via Refinement and Generation Guidancecited by 12
  9. 2025AskToAct: Enhancing LLMs Tool Use via Self-Correcting Clarificationcited by 12
  10. 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
  11. 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
  12. 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challengescited by 9
  13. 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Applicationcited by 8
  14. 2026LLM-Based Agentic Systems for Software Engineering: Challenges and Opportunitiescited by 7
  15. 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generationcited by 6
  16. 2024API Pack: A Massive Multi-Programming Language Dataset for API Call Generationcited by 5
  17. 2025GraphChain: Large Language Models for Large-scale Graph Analysis via Tool Chainingcited by 5
  18. 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specificationscited by 4
  19. 2024MaCTG: Multi-Agent Collaborative Thought Graph for Automatic Programmingcited by 3
  20. 2025The Fools are Certain; the Wise are Doubtful: Exploring LLM Confidence in Code Completioncited by 3
  21. 2024Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context Learningcited by 2
  22. 2025Towards Event Extraction with Massive Types: LLM-based Collaborative Annotation and Partitioning Extractioncited by 2
  23. 2025Empowering Real-World: A Survey on the Technology, Practice, and Evaluation of LLM-driven Industry Agentscited by 2
  24. 2025Mitigating Sensitive Information Leakage in LLMs4Code through Machine Unlearningcited by 1
  25. 2026SkillAlign: Aligning Skill Interfaces for LLM-based Agentscited by 0