Skip to content

API Reference parrot.memory.agent_memory.mixin

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

parrot.memory.agent_memory.mixin

View source

Agent lifecycle adapter; stores retain ownership of persistence and dynamics.

Alias AgentMemoryConfig

Re-exported from parrot.memory.agent_memory.models.AgentMemoryConfig.

Class AgentMemoryMixin

Integrate independently enabled persistent-memory capabilities with a host agent.

Attributes:

Attribute Type Description
enable_episodic_memory bool
enable_user_memory bool
enable_brain bool
agent_memory_config AgentMemoryConfig | dict[str, Any] | None
brain_service BrainService | None
memory_extraction_client_factory Callable[[], Any] | None
memory_evidence_tenant_resolver EvidenceTenantResolver | None

Method AgentMemoryMixin.configure

Await host setup, respect configure skips, and initialize owned resources once.

configure(app: Any = None) -> None

Parameter Type Default Description
app Any None Optional host application passed through the cooperative MRO.

Method AgentMemoryMixin.prepare_memory

Return one scoped supplementary block without loading conversation history.

prepare_memory(query: str, *, scope: MemoryRequestScope) -> MemoryContext

Parameter Type Default Description
query str Current user query.
scope MemoryRequestScope Trusted request-local memory scope.

Returns: MemoryContext — The assembled supplementary memory context, or an empty context when the facade has no configured manager.

Method AgentMemoryMixin.complete_memory

Route exactly one completed invocation event to its owning store.

complete_memory(event: MemoryEvent) -> None

Parameter Type Default Description
event MemoryEvent Validated completed invocation event.

Method AgentMemoryMixin.cleanup

Stop the brain service and drain owned writes before host resource cleanup.

cleanup() -> None

Alias BrainService

Re-exported from parrot.memory.dream.service.BrainService.

Alias EvidenceTenantResolver

Re-exported from parrot.memory.user.store.EvidenceTenantResolver.

Alias MemoryContext

Re-exported from parrot.memory.unified.models.MemoryContext.

Alias MemoryEvent

Re-exported from parrot.memory.agent_memory.models.MemoryEvent.

Alias MemoryNamespace

Re-exported from parrot.memory.episodic.models.MemoryNamespace.

Alias MemoryRequestScope

Re-exported from parrot.memory.agent_memory.models.MemoryRequestScope.

Alias UnifiedMemoryManager

Re-exported from parrot.memory.unified.manager.UnifiedMemoryManager.

Alias create_memory_manager

Re-exported from parrot.memory.agent_memory.factory.create_memory_manager.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally