Skip to content
providerkit
GitHub

a2aPolicy

function a2aPolicy(policy, options): BackgroundPolicy;

Defined in: agents/src/a2a/server.ts:1315

Gate A2A evidence before handing it to the real host resolver/claim. Does not grant approvals, invent scopes, consume requests or replace the host’s lease checks.

Parameter Type
policy BackgroundPolicy
options { context: BackgroundContext; remoteApprovals?: boolean; remoteClientTools?: boolean; scope: A2ATaskScope; tasks: A2ATaskStore; }
options.context BackgroundContext
options.remoteApprovals? boolean
options.remoteClientTools? boolean
options.scope A2ATaskScope
options.tasks A2ATaskStore

BackgroundPolicy