camel icon indicating copy to clipboard operation
camel copied to clipboard

[Feature Request] Implement Shared Memory Mechanism for Workforce Handoff

Open Aaron617 opened this issue 9 months ago • 1 comments

Required prerequisites

  • [x] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
  • [x] Consider asking first in a Discussion.

Motivation

Currently, the workforce system does not store the complete function-calling trajectory of each worker in memory. This creates challenges in task handoff, as subsequent agents do not have sufficient context to continue processing efficiently.

Proposed Solution:

Develop a shared memory mechanism to retain and share the memory context across all agents.

Modes of Memory Sharing:

All (High Priority): Share complete memory across all agents, ensuring the reasoning agent and other critical agents receive the full context.

Memory Pool: Create a configurable memory pool where relevant context can be shared between selected agents.

No Sharing (The current workforce): Disable memory sharing for specific tasks that do not require continuity.

Key Tasks:

Implement memory initialization configuration to define the desired memory-sharing mode.

Develop a memory pool manager to dynamically allocate and update shared context.

Enable seamless integration with the workforce’s function-calling trajectories.

Test and validate the performance of different memory-sharing modes.

Reference

  1. https://github.com/openai/openai-agents-python

Solution

No response

Alternatives

No response

Additional context

No response

Aaron617 avatar Mar 23 '25 09:03 Aaron617

Related memory features in CAMEL:

https://github.com/camel-ai/camel/blob/58a4f6ec0879040fbd1b77840cbd936160f80481/camel/agents/chat_agent.py#L358

https://github.com/camel-ai/camel/blob/58a4f6ec0879040fbd1b77840cbd936160f80481/camel/agents/chat_agent.py#L422

lightaime avatar Apr 21 '25 17:04 lightaime

@GitHoobar im going to take a bit of time to implement this properly, if you want this done quickly, feel free to re-assign someone else.

JINO-ROHIT avatar May 19 '25 10:05 JINO-ROHIT

hey @JINO-ROHIT , @sunchengxuanivy already did some pre study on this and I plan to schedule a joint discussion in the middle of this week, feel free to join if you have time!

Wendong-Fan avatar May 19 '25 11:05 Wendong-Fan

would love to join in!

JINO-ROHIT avatar May 19 '25 12:05 JINO-ROHIT