What you’ll build: A minimal Agno agent that talks to a SambaCloud-hosted model in under a dozen lines of Python.
Overview
Agno is a lightweight Python framework for building multi-modal AI agents. Wire it to SambaCloud and you get fast, low-ceremony agents that can:Reason and respond
Stream natural-language replies from any SambaCloud-hosted LLM through a clean
Agent interface.Use tools
Compose decorator-based tools with full Python type hints — Agno generates the schemas for you.
Stay model-agnostic
Swap models with a single
id= argument — same code, different backend.Ship fast
Run as a script, a notebook cell, or behind a FastAPI service with minimal framework overhead.
Prerequisites
- A SambaCloud account and API key from the SambaCloud portal
- Python 3.9 or later installed. Confirm with
python --version. - Familiarity with Python virtual environments and terminal basics
Setup
1
Create and activate a virtual environment
2
Install Agno and the OpenAI SDK
3
Export your SambaCloud API key
Example
UseSambanova as your Agent’s model. Always pass id= explicitly — the library’s default model is deprecated on SambaCloud.
horror_agent.py
Swap
id= for any model on the SambaCloud supported models page — the rest of the code stays the same.Parameters
TheSambanova model class accepts the following arguments:
Additional resources
Agno repository
Source code, examples, and release notes for the Agno framework.
Agno documentation
Official guides covering agents, tools, multi-modal inputs, and storage.
Supported models
Current list of models available on SambaCloud.
Deprecations
Models scheduled for removal and their recommended replacements.
Troubleshooting
ModuleNotFoundError: agno or openai
ModuleNotFoundError: agno or openai
- Install both packages:
pip install agno openai - Agno’s
Sambanovamodel class depends onopenaiunder the hood —pip install agnoalone is not enough - Confirm your virtual environment is active:
which pythonshould point inside.venv
Authentication error or missing API key
Authentication error or missing API key
- Confirm the key is exported:
echo $SAMBANOVA_API_KEY - Re-export with
export SAMBANOVA_API_KEY="your-key"and retry - The
Sambanovaclass readsSAMBANOVA_API_KEYautomatically — no need to passapi_key=explicitly unless overriding
Deprecated model warning or unexpected responses
Deprecated model warning or unexpected responses
- The library default
id(Meta-Llama-3.1-8B-Instruct) is deprecated on SambaCloud — always passid=explicitly - Check the SambaCloud models page for current model IDs
- See Deprecations for recommended replacements
Model not found
Model not found
- Model names are case-sensitive — use the exact string from the SambaCloud models page
- Verify your SambaCloud account has access to the requested model

