Skip to content
providerkit
GitHub

A2ATaskStore

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

create(record): Promise<{
created: boolean;
record: A2ATaskRecord;
}>;

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

Atomic on both (scope,id) and (scope,messageId). Changed duplicate content must throw.

Parameter Type
record A2ATaskRecord

Promise<{ created: boolean; record: A2ATaskRecord; }>


findMessage(scope, id): Promise<
| A2ATaskRecord
| null>;

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

Parameter Type
scope A2ATaskScope
id string

Promise< | A2ATaskRecord | null>


get(scope, id): Promise<
| A2ATaskRecord
| null>;

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

Parameter Type
scope A2ATaskScope
id string

Promise< | A2ATaskRecord | null>


hasContext(scope, contextId): Promise<boolean>;

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

Parameter Type
scope A2ATaskScope
contextId string

Promise<boolean>


list(scope, filter): Promise<{
nextPageToken: string;
tasks: A2ATaskRecord[];
}>;

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

Parameter Type
scope A2ATaskScope
filter { contextId?: string; pageSize: number; pageToken?: string; }
filter.contextId? string
filter.pageSize number
filter.pageToken? string

Promise<{ nextPageToken: string; tasks: A2ATaskRecord[]; }>


update(
scope,
id,
patch,
revision
): Promise<A2ATaskRecord>;

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

CAS also claims every newly added messageId across the scope. No writes on conflict.

Parameter Type
scope A2ATaskScope
id string
patch A2ATaskPatch
revision string

Promise<A2ATaskRecord>