Connect tools to your agent to interact with real world.
from upsonic import Agent, Task from upsonic.tools import Search # Importing Search Tool task = Task( "Find the latest OpenAI developments on the internet.", tools=[Search] # Adding Search tool to the Task ) agent = Agent(name="Reporter") agent.print_do(task)
Setup your virtual environment
python3 -m venv .venv source .venv/bin/activate
Install dependencies
pip install -U upsonic
Put your OpenAI key
OPENAI_API_KEY=sk-***
Run the agent to do the task
python agent_with_tools.py