95 items
Defining a Tool JSON Schema
Code QuizCost and Latency of Multi-Turn Tool Use
Slides / VideoSecurity Risks of Tool Execution
Slides / VideoError Handling and Retries in Agent Loops
Slides / VideoAgent Frameworks Overview
Slides / VideoStopping Conditions and Max Iterations
Slides / VideoAgent Memory and State Across Steps
Slides / VideoMulti-Step Task Decomposition by Agents
Slides / VideoCommon Tool Types for LLM Agents
Slides / VideoTools vs Functions vs Agents
Slides / VideoAgent Reasoning Loops: The ReAct Pattern
Slides / VideoWhat an LLM Agent Is
Slides / VideoStructured Output via Function Calling
Slides / VideoHandling Invalid or Hallucinated Tool Arguments
Slides / VideoControlling Tool Choice
Slides / VideoParallel and Multiple Tool Calls
Slides / VideoThe Full Function Calling Loop
Slides / VideoReturning Tool Results Back to the Model
Slides / VideoExecuting the Function in Your Code
Slides / VideoParsing the Model's Tool Call Response
Slides / VideoJSON Schema for Parameters
QuizDefining a Tool Schema
QuizForcing Tool Choice
QuizHandling Hallucinated Calls
QuizHow the Model Decides to Call
QuizStructured Output vs Function Calling
QuizSecurity Risks of Tool Calls
QuizToken Cost of Tools and Loops
QuizMulti-Step Function Loop
QuizWhat an LLM Agent Is
QuizError Handling and Retries
QuizAgents vs Function Calling
QuizAgent Frameworks Overview
QuizReturning Tool Results
QuizPassing Tool Definitions
QuizExecuting the Function
QuizReading the Tool Call
QuizAgent Memory and State
QuizWhat Function Calling Is
QuizThe Tool Message Role
QuizThe ReAct Loop
QuizStopping Conditions
QuizParsing Call Arguments
QuizParallel Tool Calls
QuizWriting Function Descriptions
QuizCommon Agent Tools
QuizWhy LLMs Need Tools
QuizHow the Model Decides to Call a Tool
Slides / VideoPassing Tool Definitions in an API Request
Slides / VideoTool Definitions and JSON Schema
Slides / VideoWhat Function Calling Is and Why It Exists
Slides / VideoSending tool results back
Code QuizParameter types and required fields
Code QuizDetecting a tool call
Code QuizExecuting the local function
Code QuizReturning tool errors to the model
Code QuizPreventing infinite loops
Code QuizHandling parallel tool calls
Code QuizValidating arguments against allowed values
Code QuizDistinguishing final vs tool response
Code QuizForcing a specific tool_choice
Code QuizPassing the tools array
Code QuizBuilding the tool-call loop
Code QuizParsing tool call arguments
Code QuizWriting function descriptions
Code QuizPreserving the assistant tool_calls message
Code QuizDispatching tool names to handlers
Code QuizMatching tool_call_id to result
Code QuizHandling malformed arguments
Code QuizAppending the tool result message
Code QuizStopping Conditions and Limits
FlashcardPassing Tools in a Request
FlashcardWhat Function Calling Is
FlashcardStructured Output via Function Calling
FlashcardWhy LLMs Need Tools
FlashcardPlanning and Task Decomposition
FlashcardAgent Frameworks Overview
FlashcardThe Agent Loop
FlashcardExecuting and Returning Results
FlashcardHow the Model Picks a Tool
FlashcardAgent Memory and State
FlashcardDescribing Parameters and Types
FlashcardParsing the Tool Call Response
FlashcardSecurity Risks of Tool Execution
FlashcardThe ReAct Pattern
FlashcardCost and Latency of Agent Loops
FlashcardDefining a Tool Schema
FlashcardFunction Calling vs RAG vs Fine-Tuning
FlashcardWriting Effective Tool Descriptions
FlashcardTool Choice Control
FlashcardThe Full Function Calling Loop
FlashcardMulti-Tool Orchestration
FlashcardWhat an LLM Agent Is
FlashcardHandling Call Errors
FlashcardParallel Function Calls
FlashcardValidating arguments against allowed values
Spot the inverted check that lets bad values through.
const allowedUnits = ["celsius", "fahrenheit"];
const args = JSON.parse(call.function.arguments);
if (allowedUnits.includes(args.unit)) {
throw new Error("Invalid unit");
}
return getWeather(args);What is the bug in the validation logic?