39How does LLM tool calling (function calling) actually work under the hood?▼medium★ EssentialOpenAIAnthropicMicrosoft1 replies◆ premiumTool calling powers every agent. The signal is grasping that the model executes nothing: it emits a structured request your code runs, then you hand the result back. Here is the loop and the details that determine reliability.Open full answer →
61Build a customer-support agent over a fake product/SQL database: tool-calling, retrieval, and a control loop.▼hardSierraDecagonOpenAI2 replies◆ premiumA live-coding round that tells apart engineers who have shipped agents from those who have only read about them. Interviewers want a genuine plan-act-observe loop, tools that query a real SQL database, guardrails that block the obvious failures, and a concrete evaluation plan, rather than one prompt masquerading as an agent.Open full answer →
96When should an agent write code instead of emitting JSON tool calls?▼mediumAnthropicOpenAIHugging Face◆ premiumTool calling costs one LLM round trip per action. Code costs one round trip for a loop over 500 records. The signal is knowing exactly what you trade away when you let the model write the program instead of the call.Open full answer →
135Write a tool-call handler for an LLM API: schema validation, execution, error feedback, and parallel calls.▼mediumOpenAIAnthropicLangChain◆ premiumEvery agent is a loop around this function. The candidates who fail it raise an exception on a bad tool call; the ones who pass hand the error back to the model as a tool result and let it fix itself on the next turn.Open full answer →