Tools & Functions
Tools & Functions
Tools & Functions
Tools let your agent do things—look up orders, check weather, book appointments, or end a call. When a user asks something that requires real data or an action, the LLM decides to call a tool instead of making something up.
Tools are Python functions that your agent can invoke during a conversation. The LLM analyzes the user’s request, decides which tool to call (if any), and your code executes it. The result is fed back to the LLM so it can respond naturally.
This is also known as function calling or tool use.
get_weather("New York, NY"){"temp": 72}The LLM never runs your code directly—it just tells you what to run and with what arguments.