Example text-to-sql agent using Motherduck (DuckDB)
- Python 3.13 or higher
- uv package manager
- Clone the repository:
git clone <repository-url>
cd letta-duckdb-agent- Install dependencies using uv:
uv sync- Create a
.envfile in the project root with your configuration:
# Add your environment variables here
# Example:
# LETTA_API_KEY=your_api_key_here
# DUCKDB_CONNECTION_STRING=your_connection_string- Run the agent:
uv run python create_agent.pyduckdb- DuckDB database engineletta-client- Letta AI agent framework clientpython-dotenv- Environment variable management
All dependencies and their exact versions are specified in pyproject.toml and locked in uv.lock.