Multimodal input
Understand and process images alongside text in a single agent workflow.
Tool usage
Call external tools and APIs at any step of your agent’s reasoning loop.
Visual to code
Turn a visual mockup into a working web page automatically.
Model-agnostic
Swap LLM providers without rewriting your agent logic.
Prerequisites
- A SambaCloud account and API key
- Python 3.9 or later (
python --versionto confirm)
Setup
Create and activate a virtual environment
Install the required libraries
Set your SambaCloud API key
Configure the model
Use ADK’sLiteLlm wrapper to point your agent at SambaCloud. LiteLLM reads SAMBANOVA_API_KEY from the environment automatically.
Meta-Llama-3.3-70B-Instruct with any model ID from the SambaCloud models page.
Example use case
To see ADK and SambaCloud working together, check out the multimodal agent example. This example demonstrates how to:Process images
Understand and reason over visual inputs inside an ADK workflow.
Use external tools
Call APIs and services at any step of the agent’s reasoning loop.
Mockup to web page
Convert a visual design into a simple, functional web page automatically.
Troubleshooting
SAMBANOVA_API_KEY not found or authentication error
SAMBANOVA_API_KEY not found or authentication error
Confirm the variable is exported in your current shell:Re-export if empty:
export SAMBANOVA_API_KEY="your-api-key". Verify the key is active in the SambaCloud portal.litellm cannot connect to SambaCloud
litellm cannot connect to SambaCloud
Confirm If missing, run
litellm is installed in your active virtual environment:pip install litellm. Ensure your virtual environment is activated before running the agent.ADK tool call fails or returns unexpected format
ADK tool call fails or returns unexpected format
ADK expects tools to return serializable values. Check that your tool functions return strings, dicts, or lists — not custom objects. See the ADK tool documentation for supported return types.
Additional resources
ADK multimodal example
Runnable source code for the multimodal agent.
ADK documentation
Official reference for agents, tools, and advanced features.

