Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Roadmap] Persistence and state management #2358

Open
1 of 4 tasks
ekzhu opened this issue Apr 11, 2024 · 3 comments
Open
1 of 4 tasks

[Roadmap] Persistence and state management #2358

ekzhu opened this issue Apr 11, 2024 · 3 comments
Assignees
Labels
roadmap Issues related to roadmap of AutoGen

Comments

@ekzhu
Copy link
Collaborator

ekzhu commented Apr 11, 2024

We want to be able to persist the state of a multi-agent workflow and restart from a given state. This is required for large-scale deployment of AutoGen workflows. The key steps are:

  1. How to inject state (e.g., conversation history) into a multi-agent workflow so it starts from a given state. This functionality can also be used to implement in-context learning for individual agents, so they learn from a curated set of instructions and examples before participating in a workflow.
  2. How to export the state of a multi-agent workflow.

We start building (1) and (2) for individual class:

  • single-agent
  • two-agent chat
  • sequential chats
  • group chat,

and then move on to think about a composed workflow of multiple conversation patterns.

Tasks

  1. enhancement group chat
  2. enhancement help wanted persistence
@ekzhu ekzhu added the roadmap Issues related to roadmap of AutoGen label Apr 11, 2024
@ekzhu ekzhu self-assigned this Apr 11, 2024
@NikolayTV
Copy link
Collaborator

NikolayTV commented Apr 17, 2024

Hi! I have following use case:
In multi-agen conversation with human, there is an Agent named "collector" which collects info about the user to json from conversation. That meta-information I want to use sometimes, and "coordinator" will decide when to call it to context.

Is this feature about state management? I want to implement it for my project, and may be it will be nice to PR this to main repo too?

For example:
user_meta_info = {
"Name": "Boris",
"Chronic deseases": "astma, headache"
}

@ekzhu
Copy link
Collaborator Author

ekzhu commented Apr 17, 2024

You are thinking about a usage case that is a natural language text to JSON conversion. You can certainly create a two-agent chats to collect human input and then in the initiate_chat use a summary_method=reflection_with_llm and summary_args={"summary_prompt": "extract the following information ... and returns a JSON"}. This is not directly really related to the state management.

@randombet
Copy link
Collaborator

How could this support async chats?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap Issues related to roadmap of AutoGen
Projects
None yet
Development

No branches or pull requests

3 participants