Install Libraries
Authentication
Set yourTOGETHER_API_KEY
environment variable.
Using Agno with Together AI
pip install -U agno duckduckgo-search
TOGETHER_API_KEY
environment variable.
export TOGETHER_API_KEY=***
from agno.agent import Agent
from agno.models.together import Together
from agno.tools.duckduckgo import DuckDuckGoTools
agent = Agent(
model=Together(id="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"),
tools=[DuckDuckGoTools()],
markdown=True,
)
agent.print_response("What's happening in New York?", stream=True)
Was this page helpful?