Config
MemoryLayoutConfig
dataclass
Filesystem layout for sandbox-backed memory generation.
ソースコード位置: src/agents/sandbox/config.py
MemoryGenerateConfig
dataclass
Configuration for sandbox-backed memory extraction and consolidation.
Run segments are appended during the sandbox session. Extraction and consolidation run when the sandbox session closes.
ソースコード位置: src/agents/sandbox/config.py
max_raw_memories_for_consolidation
class-attribute
instance-attribute
Maximum number of recent raw memories considered during consolidation.
phase_one_model
class-attribute
instance-attribute
phase_one_model: str | Model = 'gpt-5.4-mini'
Model used for phase-1 single-rollout extraction.
phase_one_model_settings
class-attribute
instance-attribute
phase_one_model_settings: ModelSettings | None = field(
default_factory=_default_memory_phase_one_model_settings
)
Model settings used for phase-1 single-rollout extraction.
phase_two_model
class-attribute
instance-attribute
phase_two_model: str | Model = 'gpt-5.4'
Model used for phase-2 memory consolidation.
phase_two_model_settings
class-attribute
instance-attribute
phase_two_model_settings: ModelSettings | None = field(
default_factory=_default_memory_phase_two_model_settings
)
Model settings used for phase-2 memory consolidation.
extra_prompt
class-attribute
instance-attribute
Optional developer-specific guidance appended to memory extraction and consolidation prompts.
Use this to tell memory what extra details are important to preserve for future runs, in addition to the standard user preferences, failure recovery, and task summary signals. Prefer a few targeted bullet points or short paragraphs, not pages of extra instructions. Try to keep it under about 5k tokens, and usually much shorter. The phase-one memory generator already receives a large built-in prompt plus a truncated conversation in a single model context window, so oversized extra prompts can crowd out the evidence you actually want it to summarize.
MemoryReadConfig
dataclass
Configuration for sandbox-backed memory reads.