Skip to main content
This guide shows you how to add Snow Leopard data retrieval to a Pydantic AI agent.

Prerequisites

Don’t have data? Use our sample superheroes dataset to get started, or choose from our other sample datasets.

Start from scratch

Clone and run the complete working example:
Set your environment variables:
Run the agent:
You now have an interactive REPL where you can ask questions about your data:

Bring your own agent

Already have a Pydantic AI agent? Add Snow Leopard data retrieval with these steps.

1. Install dependencies

2. Create the Snow Leopard tool

Add a tool to your agent that calls Snow Leopard to retrieve data:

3. Customize the tool description

The tool’s docstring tells the agent when and how to use it. Update it to describe your specific data:

Next steps