I want to give agent many tool to use.
But it’s depend on the situation which tool should be use. I set two tools to my agent, but every time, the agent use both. Anyone try this before?
def supervisor_agent(llm):
return Agent(
llm=llm,
role=“Supervisor to choose tool to answer question”,
backstory=“You are a supervisor, and you have 2 tools you must choose the tool to answer the question. If the quesion metion more than two people you should choose discussion_Tool to answer question, or choose answer_tool when no mention how many people in the question”,
goal=“Use tool to find the result”,
tools = [discussion_Tool,rag_tool],
verbose=True,
debug=True)