English

Achieving Tool Calling Functionality in LLMs Using Only Prompt Engineering Without Fine-Tuning

Software Engineering 2024-07-09 v1 Artificial Intelligence Human-Computer Interaction

Abstract

Currently, the vast majority of locally deployed open-source large language models (LLMs) and some commercial model interfaces do not support stable tool calling functionality. The existing solution involves fine-tuning LLMs, which results in significant time and computational resource consumption. This paper proposes a method that enables LLMs to achieve stable tool calling capabilities using only prompt engineering and some ingenious code design. We conducted experiments on multiple LLMs that lack tool calling capabilities across various tool calling tasks, achieving a success rate of 100%.

Keywords

Cite

@article{arxiv.2407.04997,
  title  = {Achieving Tool Calling Functionality in LLMs Using Only Prompt Engineering Without Fine-Tuning},
  author = {Shengtao He},
  journal= {arXiv preprint arXiv:2407.04997},
  year   = {2024}
}

Comments

5 pages, 2 figures,review comments welcome

R2 v1 2026-06-28T17:31:08.683Z