Agno is a lightweight framework designed for building multi-modal AI agents. To get started, export your SambaNova API key and run the example code below.

Example

Use Sambanova with your Agent:

from agno.agent import Agent, RunResponse
from agno.models.sambanova import Sambanova

agent = Agent(model=Sambanova(), markdown=True)

# Print the response in the terminal
agent.print_response("Share a 2 sentence horror story.")

Parameters

ParameterTypeDefaultDescription
idstr"Meta-Llama-3.1-8B-Instruct"The id of the model to use.
namestr"Sambanova"The name of this chat model instance.
providerstr"Sambanova"The provider of the model.
api_keyOptional[str]NoneThe API key for authenticating with Sambanova (defaults to environment variable SAMBANOVA_API_KEY).
base_urlstr"https://api.sambanova.ai/v1"The base URL for API requests.