Type Alias: DispatchRetrievableBytesStoreFn
ts
type DispatchRetrievableBytesStoreFn = (
ctx: DispatchContext,
id: string,
bytes: ConduitBytes,
) => SpoolReader | Promise<SpoolReader>;Defined in: lib/contracts/dispatch_context.ts:152
Persists extracted retrievable text bytes into consumer storage and returns a @nhtio/adk!SpoolReader (LLM execution context variant). The handler wraps the reader in a @nhtio/adk!SpooledArtifact for new Retrievable({ content }) and persists the record via storeRetrievable separately. Returns a value; does NOT touch the turn Sets.
Parameters
| Parameter | Type |
|---|---|
ctx | DispatchContext |
id | string |
bytes | ConduitBytes |
Returns
| SpoolReader | Promise<SpoolReader>