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

    Interface AgentDiscoveryCacheConfig

    Opt-in sharing of endpoint / tools/list / get_adcp_capabilities discovery across SingleAgentClient instances.

    Sharing is explicit: nothing is shared unless a client is configured with a cache AND a caller-owned authIdentity.

    interface AgentDiscoveryCacheConfig {
        cache: AgentDiscoveryCache;
        authIdentity: string;
        ttlMs?: number;
    }
    Index

    Shared store. Create one with createInMemoryAgentDiscoveryCache.

    authIdentity: string

    Stable, caller-owned identity of the principal whose credentials these clients use (for example a tenant or buyer-account ID). Required.

    Entries are only shared between clients that present the same identity, so choose it to be at least as specific as the credential's authorization scope. It is NOT derived from the token: rotating a token for the same principal keeps the entry, and two principals must never share an identity. The identity is hashed into the cache key and never stored in the entry.

    ttlMs?: number

    Freshness window in milliseconds. Defaults to five minutes; capped at 24 hours.