function_calling
// How AI talks to external tools, APIs, and the real world
๐Ÿ’ก The core idea: By default, an AI only produces text โ€” it can't check the weather, look things up, or send emails. Function calling lets you tell the AI: "Here are tools you can use." The AI decides when to use a tool, calls it with the right inputs, reads the result, and then answers. It's like giving a clever assistant access to a toolbox.
Watch an AI use a real tool
0 / 5 steps
The big idea: AI + tools = agent
Without function calling, an AI only produces text. With function calling, an AI can take actions in the world โ€” search the internet, read files, write to a database, call any API. This is what transforms an AI chat interface into an AI agent that can actually do things for you.
AI DECIDES WHEN TO CALLYOU DECIDE WHAT TOOLS EXISTYOU RUN THE ACTUAL CODE
also by echobash