본문으로 건너뛰기
AI 도감

도구 호출과 함수 호출

모델이 호출할 API를 고르고 인자를 채운다

에이전트와 도구 호출중급 #35
입력텍스트동작

이 페이지의 본문은 영어로 제공됩니다. 제목과 요약은 한국어로 번역되었습니다.

이 능력이 뜻하는 것

Takes a user request and a list of available tools — names, descriptions, argument schemas — and outputs a structured call such as get_weather with city set to Shanghai. The model executes nothing itself; it selects a tool and assembles arguments, while the actual call is made by external code whose result is fed back for further reasoning.

기술적으로 구현하는 방법

Fine-tuning on many examples of when to call, which tool to use and what arguments look like teaches the model to emit a call when it needs external information or action; at inference the tool definitions go into the prompt and the output is constrained to a valid structure. With many tools, retrieval first narrows the candidates, and a multi-turn loop that feeds results back handles complex tasks.

대표 제품

10

관련 기관

대표적 용도

  • Fetching live data such as weather, prices or stock
  • Performing business actions such as orders and messages
  • Calling calculators, search and code executors
  • Chaining several APIs for a composite task

성능을 평가하는 방법

Function-selection accuracy
Share of requests where the right tool was chosen
Exact argument match
Share with arguments exactly matching the reference
End-to-end task success
Whether the task completes once tools actually run

경계와 난점

  • Slightly complex argument shapes — nested objects, arrays, optional fields — are easily filled wrongly
  • As the tool list grows, wrong selections rise sharply, and similar-purpose tools are the most confusable
  • Recovery after a failed call is unreliable, and the model often loops on the error instead of adapting

뒤에 있는 개념