Best Way for Agent in Multi-agent Group Chat to Reference Output from Other Agents #10422
Replies: 3 comments
-
Tagging @crickman |
Beta Was this translation helpful? Give feedback.
-
Each agent in the chat has explicit knowledge of the entire chat. I'd be interested to understand more specifically on your use-case. |
Beta Was this translation helpful? Give feedback.
-
It's clarity on this statement that I am looking for... "Each agent in the chat has explicit knowledge of the entire chat." What does that mean exactly, and in technical terms. The use case is I want to provide explicit instructions to an agent to look for something another agent in the group chat provides in one of their messages. How do I do that? Do they see the xml? Do they see the parsed text? Do they see some other format? As I mentioned I can instruct the agent to "read the group chat" and it works somewhat reliably. I want to be able to instruct the agent exactly where to look. |
Beta Was this translation helpful? Give feedback.
-
Consider Agent_A and Agent_B are part of a group chat like...
chat = AgentGroupChat(agents=[Agent_A, Agent_B])
...and let's say that Agent_A produces some output like...
{"key": "value"}
...and now when Agent_B runs I want Agent_B to reference "value" from the output of Agent_A from the
chat.history
, how is that best achieved?It seems to work intermittently by just mentioning in the
instructions
for Agent_B to "read the group chat", but I wonder if there are more explicit ways to instruct agents how to access parts of the group chat history.Beta Was this translation helpful? Give feedback.
All reactions