Skip to main content

Module memory

Module memory 

Source
Expand description

Cross-turn conversation memory for stateless backends.

Provides ConversationMemory for accumulating turn records and MemoryManager for file-based persistence. When enabled for an agent, previous conversation context is prepended to each new input, giving stateless backends (e.g., Gemini CLI) a form of multi-turn memory.

Structs§

ConversationMemory
In-memory conversation history with configurable limits.
MemoryConfig
Configuration for conversation memory limits.
MemoryManager
File-based persistence for agent conversation memories.
TurnRecord
A single conversation turn.

Enums§

Role
Speaker role in a conversation turn.