A2AServerBase
Defined in: agents/src/a2a/server.ts:66
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
O |
Properties
Section titled “Properties”allowAnonymous?
Section titled “allowAnonymous?”optional allowAnonymous?: boolean;Defined in: agents/src/a2a/server.ts:80
Development only. One fixed anonymous partition; never fall back after failed auth.
authenticate?
Section titled “authenticate?”optional authenticate?: A2AAuthenticate;Defined in: agents/src/a2a/server.ts:78
authorize?
Section titled “authorize?”optional authorize?: (context) => boolean | Promise<boolean>;Defined in: agents/src/a2a/server.ts:90
Current access check, also called for each emitted stream frame and background push. Authentication still runs first. False is indistinguishable from a missing task.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context |
{ operation: string; principal: A2APrincipal; taskId?: string; tenant?: string; } |
context.operation |
string |
context.principal |
A2APrincipal |
context.taskId? |
string |
context.tenant? |
string |
Returns
Section titled “Returns”boolean | Promise<boolean>
card: object;Defined in: agents/src/a2a/server.ts:68
description
Section titled “description”description: string;extensions?
Section titled “extensions?”optional extensions?: A2AObject[];name: string;provider?
Section titled “provider?”optional provider?: object;provider.organization
Section titled “provider.organization”organization: string;provider.url
Section titled “provider.url”url: string;security?
Section titled “security?”optional security?: Partial<Record<A2AVersion, { requirements: A2AObject[]; schemes: A2AObject;}>>;skills?
Section titled “skills?”optional skills?: A2AObject[];url: string;version?
Section titled “version?”optional version?: string;describeFailure?
Section titled “describeFailure?”optional describeFailure?: (failure) => string;Defined in: agents/src/a2a/server.ts:116
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
failure |
| RunFailure | { limit: string; } |
Returns
Section titled “Returns”string
exposeRequest?
Section titled “exposeRequest?”optional exposeRequest?: (request, context) => boolean;Defined in: agents/src/a2a/server.ts:109
May narrow request visibility, never expand actor ownership or approval policy.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
request |
PendingRequest |
context |
A2AProjectionContext |
Returns
Section titled “Returns”boolean
extendedCard?
Section titled “extendedCard?”optional extendedCard?: (principal, version) => | A2AAgentCard| Promise<A2AAgentCard>;Defined in: agents/src/a2a/server.ts:110
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
principal |
A2APrincipal |
version |
A2AVersion |
Returns
Section titled “Returns”| A2AAgentCard
| Promise<A2AAgentCard>
limits?
Section titled “limits?”optional limits?: Partial<A2ALimits> & object;Defined in: agents/src/a2a/server.ts:117
Type Declaration
Section titled “Type Declaration”blockMs?
Section titled “blockMs?”optional blockMs?: number;optional hops?: number;inlineBytes?
Section titled “inlineBytes?”optional inlineBytes?: number;pushConfigs?
Section titled “pushConfigs?”optional pushConfigs?: number;projectOutput?
Section titled “projectOutput?”optional projectOutput?: (outcome, context) => | A2APart[]| Promise<A2APart[]>;Defined in: agents/src/a2a/server.ts:99
Trusted output allowlist. Omitted means no result content leaves the process.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
outcome |
RunRecord & object | object & object | object & object |
context |
A2AProjectionContext |
Returns
Section titled “Returns”| A2APart[]
| Promise<A2APart[]>
projectText?
Section titled “projectText?”optional projectText?: (text, context) => string | Promise<string | undefined> | undefined;Defined in: agents/src/a2a/server.ts:104
Root text only, no reasoning/tools/children. Omitted means no transient text is exposed.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
context |
A2AProjectionContext |
Returns
Section titled “Returns”string | Promise<string | undefined> | undefined
publicCard?
Section titled “publicCard?”optional publicCard?: boolean;Defined in: agents/src/a2a/server.ts:82
Only the discovery card may bypass authentication. Defaults to false.
optional push?: A2APushPolicy;Defined in: agents/src/a2a/server.ts:114
remoteApprovals?
Section titled “remoteApprovals?”optional remoteApprovals?: boolean;Defined in: agents/src/a2a/server.ts:96
remoteClientTools?
Section titled “remoteClientTools?”optional remoteClientTools?: boolean;Defined in: agents/src/a2a/server.ts:97
sessions?
Section titled “sessions?”optional sessions?: boolean;Defined in: agents/src/a2a/server.ts:87
Opt in only when runs has an owner-checked session factory. Otherwise context IDs group tasks without loading conversation history. Never infer session access from the ID.
optional sign?: A2ACardSigner;Defined in: agents/src/a2a/server.ts:115
tasks: A2ATaskStore;Defined in: agents/src/a2a/server.ts:67
tenant?
Section titled “tenant?”optional tenant?: string;Defined in: agents/src/a2a/server.ts:84
Host-selected tenant for this handler. Request tenant fields cannot change it.