도구 호출 (인공지능)
IT 위키
더 많은 작업
도구 호출(tool calling 또는 function calling)이란 인공지능 에이전트가 외부 도구, API 또는 시스템을 사용해 능력을 확장하는 메커니즘이다. 미리 학습된 지식에만 의존하지 않고, 데이터베이스 조회, 실시간 정보 검색, 계산 수행, 애플리케이션 연동 등 복잡한 작업을 외부에 위임할 수 있다[1].
도구 호출은 LLM(대형 언어 모델)을 수동적 챗봇이 아닌 능동적 에이전트(agentic AI)로 변화시킨다. 모델은 주어진 입력에 대해 텍스트만 생성하는 대신, 외부 도구를 검색·선택·호출하고, 그 결과를 바탕으로 후속 추론을 수행할 수 있다[2].
도구는 이름(name), 설명(description), 입력 인자(parameters)를 JSON 스키마 등으로 명세하여 모델에 제공된다[3].
모델에 호출 가능한 도구 목록이 바인딩된다. 예를 들어 LangChain에서는 `model.bind_tools(...)` 식으로 연결된다[4].
모델은 사용자의 요청이 도구 호출이 필요한지 판단하고, 관련 도구를 선택한다[5].
모델이 JSON 형태로 도구 이름과 인자값을 생성하면, 응용프로그램이 해당 도구 함수를 수행해 결과를 반환한다[6].
도구 수행 결과를 바탕으로 모델이 최종 답변을 생성한다.
- LangChain, Vercel AI, Anthropic Claude, OpenAI Function Calling 등 다양한 플랫폼이 도구 호출 기능 제공[15]
- 고객 지원, 가상 비서, 코드 생성, 문서 자동화 등 다양한 도메인에서 활용 중.
- 가상 비서
- 에이전트 기반 AI
- 함수 호출(function calling)
- LLM 보안
- Retrieval‑Augmented Generation
- ↑ Tool calling refers to the ability of artificial intelligence (AI) models to interact with external tools, application programming interfaces (APIs) or systems to enhance their functions.
- ↑ Tool calling, sometimes referred to as function calling, is a key enabler of agentic AI… enabling multistep problem-solving, make real-time decisions and more.
- ↑ Tool calling basics: Tool: An action… name, description, inputs.
- ↑ LangChain: Tool binding, model_with_tools = model.bind_tools(tools_list).
- ↑ Tool calling involves… model recognizes when it lacks knowledge and selects appropriate tool.
- ↑ When appropriate, the model can decide to call a tool… result will have tool_calls attribute.
- ↑ Tools are mainly used for information retrieval… e.g., retrieve current weather.
- ↑ 예: Zendesk API를 호출해 실시간 티켓 데이터 제공.
- ↑ Multi-step problem-solving… tool calling is critical element of agentic systems.
- ↑ Model request tool call… application executes and returns result; model never gets direct API access.
- ↑ Auth0 사례: least privilege, audit logs, token rotation.
- ↑ Reducing Tool Hallucination via Reliability Alignment (arXiv).
- ↑ ToolGen: represent each tool as a unique token… enhances performance.
- ↑ Advancing and Benchmarking Personalized Tool Invocation for LLMs (arXiv, May 7 2025).
- ↑ LangChain, AI SDK Core, Writer AI Studio 문서 참조.