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

    Interface AgentConfig

    interface AgentConfig {
        id: string;
        name: string;
        agent_uri: string;
        protocol: "mcp" | "a2a";
        auth_token?: string;
        oauth_tokens?: AgentOAuthTokens;
        oauth_client?: AgentOAuthClient;
        oauth_client_credentials?: AgentOAuthClientCredentials;
        headers?: Record<string, string>;
        request_signing?: AgentRequestSigningConfig;
    }
    Index

    Properties

    id: string
    name: string
    agent_uri: string
    protocol: "mcp" | "a2a"
    auth_token?: string

    Static authentication token Use this for API keys or pre-issued bearer tokens

    oauth_tokens?: AgentOAuthTokens

    OAuth tokens for dynamic authentication The client will automatically refresh tokens when they expire

    oauth_client?: AgentOAuthClient

    OAuth client registration info Stored after dynamic client registration

    oauth_client_credentials?: AgentOAuthClientCredentials

    OAuth 2.0 client credentials grant configuration (M2M). When present, tokens in oauth_tokens are refreshed by re-exchanging these credentials against token_endpoint — there is no user-facing authorization flow.

    headers?: Record<string, string>

    Additional HTTP headers to include in every request to this agent. Useful for sending API keys, org IDs, or other vendor-specific headers alongside the standard authorization token.

    Example:

    headers: {
    'x-api-key': 'quota-key',
    'x-org-id': 'org-123'
    }
    request_signing?: AgentRequestSigningConfig

    Optional — when set, outbound requests to this agent are signed per RFC 9421 for operations the agent advertises in its request_signing capability block (fetched once via get_adcp_capabilities and cached by the client). See AgentRequestSigningConfig.