Ramja's picture
Create agents.py
28be273 verified
raw
history blame
332 Bytes
from smolagents import CodeAgent, HfApiModel
from tools import duck_search_tool, google_search_tool
# Initialize the model for agent_1
model_1 = HfApiModel()
agent_1_instructions = "Search for and retrieve relevant information about the question asked:\n"
agent_1 = CodeAgent(
model = model_1,
tools=[duck_search_tool]
)