Skip to content
1 min read · 85 words

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

ParameterType
ctxDispatchContext
idstring
bytesConduitBytes

Returns

| SpoolReader | Promise<SpoolReader>