Skip to content
1 min read · 58 words

Type Alias: RetrievableBytesStoreFn ​

ts
type RetrievableBytesStoreFn = (
  ctx: TurnContext,
  id: string,
  bytes: ConduitBytes,
) => SpoolReader | Promise<SpoolReader>;

Defined in: src/lib/contracts/turn_runner_context.ts:242

Persists extracted retrievable text bytes into consumer storage and returns a @nhtio/adk!SpoolReader. A byte-persistence conduit, not a mutation.

Parameters ​

ParameterType
ctxTurnContext
idstring
bytesConduitBytes

Returns ​

| SpoolReader | Promise<SpoolReader>