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

Persistent Context Transfer Between Multiple Agents #45

Open
4 tasks done
EwoutH opened this issue May 11, 2023 · 1 comment
Open
4 tasks done

Persistent Context Transfer Between Multiple Agents #45

EwoutH opened this issue May 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@EwoutH
Copy link
Contributor

EwoutH commented May 11, 2023

⚠️ Please check that this feature request hasn't been suggested before.

  • I searched previous Issues didn't find any similar feature requests.

🔖 Feature description

The proposed feature would involve enhancing the existing state serialization in L♾️pGPT to allow for the transfer of an agent's memory/context to one or more other agents. This functionality would be invaluable in scenarios where multiple agents need to interact with each other or return to previous discussions, maintaining awareness of the context of each conversation.

✔️ Solution

To accomplish this, we would need to extend the serialization and deserialization processes to not only handle saving and loading the state of a single agent, but also transferring this state between different agents.

This could be implemented as follows:

  1. Agent State Export: An agent should be able to export its current state, including memory/context, into a standardized format that can be imported by other agents. This could be a serialized object, a JSON representation, or another appropriate format.

  2. Agent State Import: An agent should be able to import a previously exported state. This would update its current memory/context to reflect the imported state.

This feature would add to the modularity of L♾️pGPT and improve its utility in multi-agent conversations and simulations. The ability to share context between agents would also allow for more seamless conversation continuity, as agents could "remember" previous discussions.

❓ Alternatives

An alternative solution could be to have a shared database or context store that all agents can access and update. While this might be simpler to implement, it could lead to potential synchronization issues and may not provide the same level of flexibility as the proposed solution.

📝 Additional Context

This feature would further extend the usefulness of L♾️pGPT's existing state serialization capabilities, allowing for more complex agent interactions and conversation simulations. It would be particularly useful in scenarios where continuity and context-awareness across multiple agents are important, such as in customer service chatbots, virtual assistants, or interactive storytelling applications.

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this feature has not been requested yet.
  • I have provided enough information for the maintainers to understand and evaluate this request.
@EwoutH EwoutH added the enhancement New feature or request label May 11, 2023
@swapneils
Copy link

I'm mainly concerned that this might interfere with the integration of other state-stores later on (e.g. Redis), unless serializing their state is more trivial than I expect.
Perhaps it would be sufficient to run a "summarize" on the context (with a prompt that pushes towards detailed description) and provide that as textual input when creating other agents?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants