InvocationTrigger
Defined in: src/memory/extraction/triggers.ts:17
Runs extraction after every agent invocation.
The highest-fidelity option: nothing said in a turn is missed. Also the most expensive when an Extractor is configured (a model call per turn) — for a server-side-extraction backend with no extractor it is just a per-turn write.
Example
Section titled “Example”extraction: { trigger: [new InvocationTrigger()] }Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InvocationTrigger(): InvocationTrigger;Returns
Section titled “Returns”InvocationTrigger
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”readonly name: "invocation" = 'invocation';Defined in: src/memory/extraction/triggers.ts:18
Stable identifier for this trigger kind, used in logging.
Overrides
Section titled “Overrides”Methods
Section titled “Methods”attach()
Section titled “attach()”attach(context): void;Defined in: src/memory/extraction/triggers.ts:20
Wire this trigger into the agent lifecycle.
Called once per store during MemoryManager initialization. Register hooks on
context.agent and call context.fire() when extraction should run.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
context | ExtractionTriggerContext | The agent to attach to and the fire callback bound to this trigger’s store |
Returns
Section titled “Returns”void