agents.rag.memory_aware.agent¶
Memory-Aware RAG Agents.
from typing import Any Memory-aware RAG with persistent context and iterative learning. Uses structured output models for memory management.
Classes¶
Complete Memory-Aware RAG agent with persistent learning. |
|
Importance levels for memory items. |
|
Individual memory item with metadata. |
|
Agent that retrieves relevant memories for context enhancement. |
|
Types of memory in the system. |
Functions¶
|
Create a Memory-Aware RAG agent. |
Get I/O schema for Memory-Aware RAG agents. |
Module Contents¶
- class agents.rag.memory_aware.agent.MemoryAwareRAGAgent(config)¶
Bases:
haive.agents.multi.base.SequentialAgent
Complete Memory-Aware RAG agent with persistent learning.
Init .
- Parameters:
config (SequentialAgentConfig) – [TODO: Add description]
- class agents.rag.memory_aware.agent.MemoryImportance¶
-
Importance levels for memory items.
Initialize self. See help(type(self)) for accurate signature.
- class agents.rag.memory_aware.agent.MemoryItem(/, **data)¶
Bases:
pydantic.BaseModel
Individual memory item with metadata.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class agents.rag.memory_aware.agent.MemoryRetrievalAgent(llm_config=None, max_memories=10, **kwargs)¶
Bases:
haive.agents.base.agent.Agent
Agent that retrieves relevant memories for context enhancement.
Initialize memory retrieval agent.
- Parameters:
llm_config (haive.core.models.llm.base.LLMConfig | None)
max_memories (int)
- build_graph()¶
Build memory retrieval graph.
- Return type:
haive.core.graph.state_graph.base_graph2.BaseGraph
- class agents.rag.memory_aware.agent.MemoryType¶
-
Types of memory in the system.
Initialize self. See help(type(self)) for accurate signature.
- agents.rag.memory_aware.agent.create_memory_aware_rag_agent(documents, llm_config=None, memory_mode='adaptive', **kwargs)¶
Create a Memory-Aware RAG agent.
- Parameters:
- Return type: