Description
initiate_chats ‘s context cannot be displayed in dictionary format in the conversation list
(1)Question:According to the carryover mechanism in initiate_chats, the context of each session will be passed to the next session, but if one of the sessions is allowed to accurately obtain the last_msg of a certain session, it cannot be obtained accurately.
(2)For example, a function I want to implement.Among them, Context[0] should be able to correspond to the session content in "recipient": b_agent, because this content is passed to the next session as a carryover.
However, how can I get it accurately in an initiate_chats?
chat_results = a_agent.initiate_chats(
[
{
"recipient": b_agent,
"message": receive_from_a_api(),
"max_turns": 1,
"summary_method": "last_msg",
},
{
"recipient": user_agent,
"message": tasks[1], #
"max_turns": 1,
"summary_method": "last_msg",
},
{
"recipient": judgement_agent,
"message": f"b_agent_comment: {Context[0]} \n user_agent_comment: {Context[1]}",
"max_turns": 1,
"summary_method": "last_msg",
},
]
)
Describe the solution you'd like
A dictionary mechanism should be provided for the context in carryover to facilitate the next session to obtain the content in a previous session and perform one-to-one correspondence.
Additional context
### Tasks
### Tasks