Interface: RawDispatchContext
Plain input object supplied to DispatchContext at construction time.
Remarks
All fetch and mutation callbacks are required — every execution context must have a persistence layer wired up, even in standalone mode. Optional pre-fetched arrays populate the context's Sets at construction time without replacing the callbacks (the callbacks are still invoked on subsequent fetch calls).
Properties
| Property | Type | Description |
|---|---|---|
deleteMemory | DispatchMemoryDeleteFn | Removes a memory by ID. |
deleteMessage | DispatchMessageDeleteFn | Removes a message by ID. |
deleteRetrievable | DispatchRetrievableDeleteFn | Removes a retrievable record by ID. |
deleteStandingInstruction | DispatchStandingInstructionDeleteFn | Removes a standing instruction. |
deleteThought | DispatchThoughtDeleteFn | Removes a thought by ID. |
deleteToolCall | DispatchToolCallDeleteFn | Removes a tool call by ID. |
fetchMemories | DispatchMemoryRetrievalFn | Retrieves memories for this execution. |
fetchMessages | DispatchMessageRetrievalFn | Retrieves messages for this execution. |
fetchRetrievables | DispatchRetrievableRetrievalFn | Retrieves retrievable records for this execution. |
fetchThoughts | DispatchThoughtRetrievalFn | Retrieves thoughts for this execution. |
fetchToolCalls | DispatchToolCallRetrievalFn | Retrieves tool calls for this execution. |
fetchTools | DispatchToolsRetrievalFn | Retrieves tools for this execution. |
hooks? | DispatchContextHookRegistrations | Optional hook registrations for emit events. |
memories? | Memory[] | Pre-fetched memories to populate the context at construction. |
messages? | Message[] | Pre-fetched messages to populate the context at construction. |
mutateMemory | DispatchMemoryMutateFn | Updates an existing memory. |
mutateMessage | DispatchMessageMutateFn | Updates an existing message. |
mutateRetrievable | DispatchRetrievableMutateFn | Updates an existing retrievable record. |
mutateStandingInstruction | DispatchStandingInstructionMutateFn | Updates an existing standing instruction. |
mutateThought | DispatchThoughtMutateFn | Updates an existing thought. |
mutateToolCall | DispatchToolCallMutateFn | Updates an existing tool call. |
refreshStandingInstructions | DispatchStandingInstructionsRefreshFn | Refreshes and returns standing instructions for this execution. |
retrievables? | Retrievable[] | Pre-fetched retrievable records to populate the context at construction. |
standingInstructions? | (string | Tokenizable)[] | Standing instructions for this execution. |
stash? | Record<string, unknown> | Arbitrary key-value store for cross-step state. |
storeMemory | DispatchMemoryStoreFn | Stores a new memory. |
storeMessage | DispatchMessageStoreFn | Stores a new message. |
storeRetrievable | DispatchRetrievableStoreFn | Stores a new retrievable record. |
storeStandingInstruction | DispatchStandingInstructionStoreFn | Stores a new standing instruction. |
storeThought | DispatchThoughtStoreFn | Stores a new thought. |
storeToolCall | DispatchToolCallStoreFn | Stores a new tool call. |
systemPrompt | string | Tokenizable | The system prompt for this execution. |
thoughts? | Thought[] | Pre-fetched thoughts to populate the context at construction. |
toolCalls? | ToolCall[] | Pre-fetched tool calls to populate the context at construction. |
tools? | Tool<SpooledArtifact>[] | Pre-fetched tools to populate the tool registry at construction. |
turnAbortController? | AbortController | AbortController whose signal can cancel execution mid-flight. |
waitFor? | OpenGateFn | Optional gate suspension function. When absent, waitFor rejects with @nhtio/adk!E_LLM_EXECUTION_GATE_NOT_SUPPORTED. |