Agent With Tools
Connect tools to your agent to interact with real world.
Agent with Tools
agent_with_tools.py
pythonCopyEditfrom beaconlabs import Agent, Task
from beaconlabs.client.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("Reporter")
agent.print_do(task)1. Set Up Your Virtual Environment
2. Install Dependencies
3. Set Up Your OpenAI API Key
4. Run the Agent to Execute the Task
Last updated