Prerequisites
- Python 3.10+
- OpenAI API key (or another supported model provider)
- Snow Leopard API key
- A datafile uploaded to Snow Leopard Playground
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:Bring your own agent
Already have a LangChain agent? Add Snow Leopard data retrieval with these steps.1. Install dependencies
2. Create the Snow Leopard tool
Create a LangChainTool that calls Snow Leopard to retrieve data:
3. Add the tool to your agent
Add the Snow Leopard tool to your agent’s tool list:Next steps
- View the full example on GitHub
- See our full API documentation to learn about the Retrieve and Response endpoints
- Explore Recipes for production-ready agent examples