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
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | |
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.
Accepts a ModelSettings instance or a dictionary containing its fields.
phase_two_model
class-attribute
instance-attribute
phase_two_model: str | Model = 'gpt-5.5'
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.
Accepts a ModelSettings instance or a dictionary containing its fields.
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.
phase_two_max_turns
class-attribute
instance-attribute
Maximum agent turns for the separate phase-2 consolidation run.
The application's outer Runner turn limit does not apply to this run. This limit
counts model turns, not elapsed time, tokens, or monetary cost. Exhaustion uses the
runner's MaxTurnsExceeded error; the memory manager logs the failure and does not
record the consolidation selection as successful. Earlier tool writes are not rolled back.
MemoryReadConfig
dataclass
Configuration for sandbox-backed memory reads.