haive.agents.rag.memory_aware.agent =================================== .. py:module:: haive.agents.rag.memory_aware.agent .. autoapi-nested-parse:: 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 ------- .. autoapisummary:: haive.agents.rag.memory_aware.agent.MemoryAwareRAGAgent haive.agents.rag.memory_aware.agent.MemoryImportance haive.agents.rag.memory_aware.agent.MemoryItem haive.agents.rag.memory_aware.agent.MemoryRetrievalAgent haive.agents.rag.memory_aware.agent.MemoryType Functions --------- .. autoapisummary:: haive.agents.rag.memory_aware.agent.create_memory_aware_rag_agent haive.agents.rag.memory_aware.agent.get_memory_aware_rag_io_schema Module Contents --------------- .. py:class:: MemoryAwareRAGAgent Bases: :py:obj:`haive.agents.multi.base.SequentialAgent` Complete Memory-Aware RAG agent with persistent learning. .. py:method:: from_documents(documents, llm_config = None, max_memories = 100, **kwargs) :classmethod: Create Memory-Aware RAG agent from documents. .. py:class:: MemoryImportance Bases: :py:obj:`str`, :py:obj:`enum.Enum` Importance levels for memory items. Initialize self. See help(type(self)) for accurate signature. .. py:class:: MemoryItem(/, **data) Bases: :py:obj:`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. .. py:class:: MemoryRetrievalAgent Bases: :py:obj:`haive.agents.base.agent.Agent` Agent that retrieves relevant memories for context enhancement. .. py:method:: build_graph() Build memory retrieval graph. .. py:class:: MemoryType Bases: :py:obj:`str`, :py:obj:`enum.Enum` Types of memory in the system. Initialize self. See help(type(self)) for accurate signature. .. py:function:: create_memory_aware_rag_agent(documents, llm_config = None, memory_mode = 'adaptive', **kwargs) Create a Memory-Aware RAG agent. .. py:function:: get_memory_aware_rag_io_schema() Get I/O schema for Memory-Aware RAG agents.