Skip to content

[Feature Request]: initiate_chats ‘s context cannot be displayed in dictionary format in the conversation list #2753

Closed as not planned
@wangruxun

Description

@wangruxun

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

截图-20240522

### Tasks
### Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.2Issues which are related to the pre 0.4 codebaseneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions