2023

ToolCoder: Teach Code Generation Models to use API search tools

Zhang, Kechi, Zhang, Huangzhao, Li, Ge et al.

Understand

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.

Reading the bibliography…