Type Alias: DispatchMediaBytesStoreFn
ts
type DispatchMediaBytesStoreFn = (
ctx: DispatchContext,
id: string,
bytes: ConduitBytes,
) => MediaReader | Promise<MediaReader>;Defined in: lib/contracts/dispatch_context.ts:140
Persists tool-generated media bytes into consumer storage and returns a @nhtio/adk!MediaReader (LLM execution context variant). Unlike the store* mutation callbacks this returns a value and does NOT add anything to the turn Sets — the handler builds a @nhtio/adk!Media from the reader and persists it via storeMessage/storeToolCall separately.
Parameters
| Parameter | Type |
|---|---|
ctx | DispatchContext |
id | string |
bytes | ConduitBytes |
Returns
| MediaReader | Promise<MediaReader>