Skip to content
providerkit
GitHub

a2aSegments

function a2aSegments(options): SegmentHook;

Defined in: agents/src/a2a/tasks.ts:220

Install in every worker. scope must recover the original authenticated partition from host storage. onChange is awaited; an end failure never changes the runtime’s completed journal.

Parameter Type
options { onChange?: (record, segment) => void | Promise<void>; tasks: A2ATaskStore; scope: | A2ATaskScope | Promise<A2ATaskScope>; }
options.onChange? (record, segment) => void | Promise<void>
options.tasks A2ATaskStore
options.scope

SegmentHook