Hello, Im trying out the AgentWorkflow feature and have noticed that the tool outputs arent being captured.
To start I've made a simple single agent AgentWorkflow. While the responses are generated, the
response.tool_calls
list is empty, and when listening to the stream of events, I never see the ToolCallResult being output.
My goal is to be able to get the source nodes used by the query engine tool. Not sure if its an issue or I have misunderstood something. Im following
https://docs.llamaindex.ai/en/stable/understanding/agent/multi_agents/See basic example below.
topic_a_agent = FunctionAgent(
name="topic_a_expert",
description="Answers questions about topic A",
system_prompt="You are a retrieval assistant.",
tools=[QueryEngineTool((....)]
llm=OpenAI(model="gpt-4"),
)
workflow = AgentWorkflow(
agents=[topic_a_agent], root_agent="topic_a_expert"
)
response = await workflow.run(user_msg="......")