Back to Agno

Nvidia Cookbook

cookbook/90_models/nvidia/README.md

2.6.4707 B
Original Source

Nvidia Cookbook

Note: Fork and clone this repository if needed

1. Create and activate a virtual environment

shell
python3 -m venv ~/.venvs/aienv
source ~/.venvs/aienv/bin/activate

2. Export your NVIDIA_API_KEY

shell
export NVIDIA_API_KEY=***

3. Install libraries

shell
uv pip install -U openai agno

4. Run basic Agent

  • Streaming on
shell
python cookbook/92_models/nvidia/basic_stream.py
  • Streaming off
shell
python cookbook/92_models/nvidia/basic.py

5. Run Agent with Tools

  • Streaming on
shell
python cookbook/92_models/nvidia/tool_use_stream.py
  • Streaming off
shell
python cookbook/92_models/nvidia/tool_use.py