Graphorin API reference v0.8.0
Graphorin API reference / @graphorin/memory / / MemoryFlushHookOptions
Interface: MemoryFlushHookOptions
Defined in: packages/memory/src/context-engine/compaction/hooks/memory-flush.ts:38
Options for memoryFlushHook.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
maxFacts? | readonly | number | Upper bound on facts written per flush. Default 10. | packages/memory/src/context-engine/compaction/hooks/memory-flush.ts:42 |
maxInputChars? | readonly | number | Char bound on the transcript slice sent to the provider. Default 24000. | packages/memory/src/context-engine/compaction/hooks/memory-flush.ts:44 |
maxOutputTokens? | readonly | number | Output-token cap for the flush call. Default 512. | packages/memory/src/context-engine/compaction/hooks/memory-flush.ts:46 |
provider | readonly | Provider | The (cheap) provider the one flush call runs on. | packages/memory/src/context-engine/compaction/hooks/memory-flush.ts:40 |
warn? | readonly | (message) => void | WARN sink override - used by tests. Default process.stderr. | packages/memory/src/context-engine/compaction/hooks/memory-flush.ts:48 |