Type: url
Original: https://www.promptingguide.ai/agents/function-calling
Status: generated
Language: en
Summary
A page of DAIR.AI’s Prompt Engineering Guide explaining function calling (tool calling) in LLM-based agents: how the model decides to call a tool from the assembled context, why tool definitions (name, description, parameters) are the most critical component, and how the agent loop of action, environment response, observation and decision works. It also covers debugging by inspecting intermediate steps and gives best practices for writing tool definitions.