Skip to content
providerkit
GitHub

A2ARuns

Defined in: agents/src/a2a/memory-runs.ts:38

Type Parameter Default type
I AgentInput
O unknown
optional send?: (owner, id, input) => Promise<void>;

Defined in: agents/src/a2a/memory-runs.ts:61

Optional, explicit capability. Enqueue is not a promise that a model consumed the input.

Parameter Type
owner string
id string
input QueuedInput

Promise<void>

cancel(owner, id): Promise<BackgroundCancelResult>;

Defined in: agents/src/a2a/memory-runs.ts:54

Follow the returned physical segment. Queue acceptance is not a cancelled outcome.

Parameter Type
owner string
id string

Promise<BackgroundCancelResult>


observe(
owner,
id,
afterSeq?,
signal?
): AsyncIterable<A2AStoredEvent>;

Defined in: agents/src/a2a/memory-runs.ts:47

Parameter Type
owner string
id string
afterSeq? number
signal? AbortSignal

AsyncIterable<A2AStoredEvent>


read(owner, id): Promise<A2ARun<O>>;

Defined in: agents/src/a2a/memory-runs.ts:46

Return independent snapshots and hydrated outcomes. A caller or projector must not be able to change stored results by mutating a read. Completed checkpoints are authoritative.

Parameter Type
owner string
id string

Promise<A2ARun<O>>


resume(
owner,
id,
answers
): Promise<{
id: string;
}>;

Defined in: agents/src/a2a/memory-runs.ts:55

Parameter Type
owner string
id string
answers Readonly<Record<string, unknown>>

Promise<{ id: string; }>


start(
owner,
input,
options
): Promise<{
id: string;
}>;

Defined in: agents/src/a2a/memory-runs.ts:39

Parameter Type
owner string
input I
options { runId: string; sessionId?: string; signal?: AbortSignal; }
options.runId string
options.sessionId? string
options.signal? AbortSignal

Promise<{ id: string; }>