Zum Inhalt springen
Agent Hub
Back to glossary
architecture

Tool use

Tool use (or function calling) is a language model's ability to call external functions with structured arguments — e.g. an API, a database query, or a skill.

Also known as: Function Calling

In detail

This is what lets the LLM leave pure chat mode and act. The flow:

  1. We define a tool: name, description, JSON schema of arguments.
  2. On a request, the LLM decides whether and with what arguments to call the tool.
  3. We execute the call, return the result.
  4. The LLM uses the result for its answer.

Claude and GPT-4 support this natively. We use it for RAG search, CRM lookups, calendar bookings.

Related terms

Tool use — explained · Agent Hub