0

Fireworks AI Cookbook

Example · مثال

Content

Fireworks AI 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 FIREWORKS_API_KEY

export FIREWORKS_API_KEY=***

3. Install libraries

uv pip install -U openai ddgs duckdb yfinance agno

4. Run basic Agent

python cookbook/90_models/fireworks/basic.py

5. Run Agent with Tools

  • DuckDuckGo Search
python cookbook/90_models/fireworks/tool_use.py

6. Run Agent that returns structured output

python cookbook/90_models/fireworks/structured_output.py

Source and license

Source
Agno
Original
agno-agi/agno/cookbook/90_models/fireworks
License
Apache-2.0