A tool can retrieve information, compute a result or perform an action. The application controls which capabilities are available.
Reference: PydanticAI function tools. Data: Vasco (vascos), Swiss Popular Voting, Kaggle, MIT; see dataset/README.md.
dataset/README.md
A tool call is structured data: a tool name and arguments. Python executes the function and returns the result for the next model response.
Reference: PydanticAI function tools. Example call uses the Week 04 plotting tool; optional year filters are omitted.
Use the coding assistant to implement and test the tool. Inspect the changed files and check the result before accepting the model's explanation.
Data: Vasco (vascos), Swiss Popular Voting, Kaggle, MIT; see dataset/README.md. Counts describe the supplied snapshot.
The agents are components of the application. Python runs the tools; the model receives the context and evidence the application sends.
Pattern: PydanticAI multi-agent applications. Data: Vasco (vascos), Swiss Popular Voting, Kaggle, MIT; see dataset/README.md.
Open video separately · 97 seconds · silent
“Add a date filter” → coding assistant. “Compare participation by decade” → running application.
In this lab: coding-assistant account for building; application key in .env for running. Keep keys out of prompts and saved results. Model setup.
.env
Data: Vasco (vascos), Swiss Popular Voting, Kaggle, version 1 (24 November 2024), MIT license. Read dataset/README.md for units, missingness, provenance, and limitations.
Open video separately · 184 seconds · silent
Open video separately · 174 seconds · silent
The model requests a tool. Python checks its arguments, executes the registered function, and returns evidence for the next model call.
Reference: PydanticAI function tools. Our application also enforces request, tool-call and time limits.
API reference: PydanticAI function tools. A file path written in model text is not proof of a successful tool call.
Open video separately · 219 seconds · silent
Open video separately · 159 seconds · silent
Open video separately · 291 seconds · silent
Checked 2 October 2026: Claude file creation · Presentations in Codex / ChatGPT desktop · Copilot in PowerPoint. Access and input workflows depend on the account; insert saved plots if folder input is unsupported.
Open video separately · 193 seconds · silent