Module: ActiveMatrix::Memory
- Defined in:
- lib/active_matrix/memory.rb,
lib/active_matrix/memory/base.rb,
lib/active_matrix/memory/agent_memory.rb,
lib/active_matrix/memory/global_memory.rb,
lib/active_matrix/memory/conversation_memory.rb
Overview
Memory system for multi-agent architecture
Defined Under Namespace
Classes: AgentMemory, Base, ConversationMemory, GlobalMemory
Class Method Summary collapse
-
.for_agent(agent) ⇒ Object
Get memory interface for an agent.
-
.for_conversation(agent, user_id, room_id) ⇒ Object
Get conversation memory for agent and user.
-
.global ⇒ Object
Access global memory.
Class Method Details
.for_agent(agent) ⇒ Object
Get memory interface for an agent
13 14 15 |
# File 'lib/active_matrix/memory.rb', line 13 def for_agent(agent) AgentMemory.new(agent) end |
.for_conversation(agent, user_id, room_id) ⇒ Object
Get conversation memory for agent and user
18 19 20 |
# File 'lib/active_matrix/memory.rb', line 18 def for_conversation(agent, user_id, room_id) ConversationMemory.new(agent, user_id, room_id) end |
.global ⇒ Object
Access global memory
23 24 25 |
# File 'lib/active_matrix/memory.rb', line 23 def global GlobalMemory.instance end |