AI Engineering / Working with LLMsFunction Calling, Tools & Agents

70 items

1

Defining a Tool JSON Schema

Code Quiz
2

Cost and Latency of Multi-Turn Tool Use

Slides / Video
3

Security Risks of Tool Execution

Slides / Video
4

Error Handling and Retries in Agent Loops

Slides / Video
5

Agent Frameworks Overview

Slides / Video
6

Stopping Conditions and Max Iterations

Slides / Video
7

Agent Memory and State Across Steps

Slides / Video
8

Multi-Step Task Decomposition by Agents

Slides / Video
9

Common Tool Types for LLM Agents

Slides / Video
10

Tools vs Functions vs Agents

Slides / Video
11

Agent Reasoning Loops: The ReAct Pattern

Slides / Video
12

What an LLM Agent Is

Slides / Video
13

Structured Output via Function Calling

Slides / Video
14

Handling Invalid or Hallucinated Tool Arguments

Slides / Video
15

Controlling Tool Choice

Slides / Video
16

Parallel and Multiple Tool Calls

Slides / Video
17

The Full Function Calling Loop

Slides / Video
18

Returning Tool Results Back to the Model

Slides / Video
19

Executing the Function in Your Code

Slides / Video
20

Parsing the Model's Tool Call Response

Slides / Video
21

Token Cost of Tools and Loops

Quiz
22

The Tool Message Role

Quiz
23

Returning Tool Results

Quiz
24

Structured Output vs Function Calling

Quiz
25

Forcing Tool Choice

Quiz
26

Parallel Tool Calls

Quiz
27

Multi-Step Function Loop

Quiz
28

Parsing Call Arguments

Quiz
29

Reading the Tool Call

Quiz
30

How the Model Decides to Call

Quiz
31

Passing Tool Definitions

Quiz
32

Writing Function Descriptions

Quiz
33

JSON Schema for Parameters

Quiz
34

Defining a Tool Schema

Quiz
35

Why LLMs Need Tools

Quiz
36

What Function Calling Is

Quiz
37

Executing the Function

Quiz
38

Stopping Conditions

Quiz
39

Handling Hallucinated Calls

Quiz
40

Security Risks of Tool Calls

Quiz
41

What an LLM Agent Is

Quiz
42

Error Handling and Retries

Quiz
43

The ReAct Loop

Quiz
44

Agents vs Function Calling

Quiz
45

Common Agent Tools

Quiz
46

Agent Memory and State

Quiz
47

Agent Frameworks Overview

Quiz
48

How the Model Decides to Call a Tool

Slides / Video
49

Passing Tool Definitions in an API Request

Slides / Video
50

Tool Definitions and JSON Schema

Slides / Video
51

What Function Calling Is and Why It Exists

Slides / Video
52

Sending tool results back

Code Quiz
53

Building the tool-call loop

Code Quiz
54

Parsing tool call arguments

Code Quiz
55

Parameter types and required fields

Code Quiz
56

Passing the tools array

Code Quiz
57

Forcing a specific tool_choice

Code Quiz
58

Detecting a tool call

Code Quiz
59

Executing the local function

Code Quiz
60

Appending the tool result message

Code Quiz
61

Handling parallel tool calls

Code Quiz
62

Preventing infinite loops

Code Quiz
63

Dispatching tool names to handlers

Code Quiz
64

Returning tool errors to the model

Code Quiz
65

Validating arguments against allowed values

Code Quiz
66

Preserving the assistant tool_calls message

Code Quiz
67

Distinguishing final vs tool response

Code Quiz
68

Matching tool_call_id to result

Code Quiz
69

Handling malformed arguments

Code Quiz
70

Writing function descriptions

Code Quiz
QuizIntermediate

Parsing Call Arguments

Function call arguments arrive as a JSON string that your code must parse.

Function call arguments are typically returned as a JSON string. What should your code do with them?