Skip to main content
DuckDbTools enable an Agent to run SQL and analyze data using DuckDb.

Prerequisites

The following example requires the duckdb and openai libraries.
For more installation options, see DuckDB documentation.

Example

The following agent will analyze the movies file using SQL and return the result.
cookbook/91_tools/duckdb_tools.py

Toolkit Params

Toolkit Functions

You can use include_tools or exclude_tools to modify the list of tools the agent has access to. Learn more about selecting tools.

Developer Resources