@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface A2AAdapter

    Value returned by createA2AAdapter.

    For almost every seller, adapter.mount(app) is the right entry point — it wires all four routes (JSON-RPC at the agent-card's path, the agent card at both {basePath}/.well-known/agent-card.json for A2A discovery and /.well-known/agent-card.json for origin-root probes) with one call.

    The jsonRpcHandler and agentCardHandler fields stay exposed for deployments that need finer control (mounting behind a custom auth layer, serving the card from a CDN, testing).

    interface A2AAdapter {
        jsonRpcHandler: RequestHandler;
        agentCardHandler: RequestHandler;
        getAgentCard(): Promise<AgentCard>;
        mount(app: ExpressAppLike, options?: A2AMountOptions): void;
    }
    Index

    Properties

    jsonRpcHandler: RequestHandler

    The A2A JSON-RPC middleware (message/send, tasks/get, tasks/cancel).

    agentCardHandler: RequestHandler

    The agent-card discovery GET middleware.

    Methods