from agno.agent import Agent from agno.models.together import Together from agno.tools.hackernews import HackerNewsTools agent = Agent( model=Together(id="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"), tools=[HackerNewsTools()], markdown=True, ) agent.print_response("Whats happening in France?")
Set up your virtual environment
uv venv --python 3.12 source .venv/bin/activate
Set your API key
export TOGETHER_API_KEY=xxx
Install dependencies
uv pip install -U openai agno
Run Agent
python cookbook/11_models/together/tool_use.py
Was this page helpful?