haive.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 haive.agents.rag.memory_aware.agent.MemoryAwareRAGAgent¶
Bases:
haive.agents.multi.base.SequentialAgentComplete Memory-Aware RAG agent with persistent learning.
- class haive.agents.rag.memory_aware.agent.MemoryImportance¶
-
Importance levels for memory items.
Initialize self. See help(type(self)) for accurate signature.
- class haive.agents.rag.memory_aware.agent.MemoryItem(/, **data)¶
Bases:
pydantic.BaseModelIndividual 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 haive.agents.rag.memory_aware.agent.MemoryRetrievalAgent¶
Bases:
haive.agents.base.agent.AgentAgent that retrieves relevant memories for context enhancement.
- build_graph()¶
Build memory retrieval graph.
- Return type:
haive.core.graph.state_graph.base_graph2.BaseGraph
- class haive.agents.rag.memory_aware.agent.MemoryType¶
-
Types of memory in the system.
Initialize self. See help(type(self)) for accurate signature.
- haive.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: