@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Interface AgentDiscoveryEntry

    Endpoint, tool-list and capability evidence for one (agent, caller identity, AdCP version, transport policy) tuple. Entries are plain JSON so a shared cache can live in process memory or an external store.

    interface AgentDiscoveryEntry {
        endpoint?: {
            agentUri: string;
            mcpEra?: "legacy" | "modern";
            observedAt?: number;
        };
        capabilities?: AdcpCapabilities;
        toolSchemas?: Record<string, Record<string, unknown>>;
        toolInputSchemas?: Record<string, Record<string, unknown>>;
        observedAt: number;
        expiresAt: number;
    }
    Index
    endpoint?: {
        agentUri: string;
        mcpEra?: "legacy" | "modern";
        observedAt?: number;
    }

    MCP endpoint resolved by endpoint discovery (the URL actually serving MCP).

    Type Declaration

    • agentUri: string
    • OptionalmcpEra?: "legacy" | "modern"
    • OptionalobservedAt?: number

      Epoch milliseconds when this endpoint was observed (may be older than the entry).

    capabilities?: AdcpCapabilities

    Capabilities from an authoritative get_adcp_capabilities response. Never synthetic.

    toolSchemas?: Record<string, Record<string, unknown>>

    tools/list input-schema properties keyed by tool name.

    toolInputSchemas?: Record<string, Record<string, unknown>>

    Complete listed input schemas, including local reference targets; absent in older entries. Backends must allow space for both these documents and their property maps.

    observedAt: number

    Epoch milliseconds when this evidence was observed.

    expiresAt: number

    Epoch milliseconds after which the entry must not be used. Enforced by the SDK on read.