memX enables efficient coordination among autonomous LLM agents by providing a real-time shared memory layer. With features like pub/sub updates and schema enforcement, this solution transforms how agents communicate and collaborate without the need for direct interaction, allowing them to focus on their tasks.
memX is a powerful real-time shared memory layer specifically designed for multi-agent LLM systems. It focuses on enhancing coordination among agents rather than merely serving as a storage solution, featuring capabilities like pub/sub messaging, schema enforcement, and API key access control.
context-sdk) facilitating smooth integration into existing systems.In a collaborative scenario, three autonomous LLM agents utilize the memX shared memory to handle a research task without any direct chat or a controlling entity. The mechanism involves as follows:
| Agent | Functionality |
|---|---|
QueryAgent | Introduces the research question and context |
ExplorerAgent | Contributes search results and thoughts |
SynthesizerAgent | Compiles and summarizes shared context into insights |
MonitorAgent | Tracks and logs the evolution of memory in real-time |
All agent interactions are conducted solely through shared keys in memX, promoting an organized and efficient framework for collaboration.
from context_sdk import AgentContext
ctx = AgentContext(api_key="agent_key_1")
ctx.set("agent:goal", "navigate kitchen")
ctx.subscribe("agent:goal", lambda data: print("Goal:", data["value"]))
For further development, the project structure is organized into core components including the FastAPI and WebSocket backend, a self-contained Python SDK, configuration files, and example agents.
Explore memX to unlock the potential of multi-agent systems in real-time memory sharing and coordination.
No comments yet.
Sign in to be the first to comment.