LangDB Cookbook
Note: Fork and clone this repository if needed
1. Create and activate a virtual environment
python3 -m venv ~/.venvs/aienv
source ~/.venvs/aienv/bin/activate
2. Export your LANGDB_API_KEY and LANGDB_PROJECT_ID
export LANGDB_API_KEY=***
export LANGDB_PROJECT_ID=***
3. Install libraries
uv pip install -U openai ddgs duckdb yfinance agno
4. Run Agent without Tools
python cookbook/90_models/langdb/basic.py
5. Run Agent with Tools
- Yahoo Finance without streaming
python cookbook/90_models/langdb/agent.py
python cookbook/90_models/langdb/web_search.py
python cookbook/90_models/langdb/data_analyst.py
python cookbook/90_models/langdb/finance_agent.py
6. Run Agent that returns structured output
python cookbook/90_models/langdb/structured_output.py