Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Interface LlmRouteConfig

    One provider, as an operator configures it.

    interface LlmRouteConfig {
        adapter: LlmAdapter;
        baseUrl: string;
        credentialRef: CredentialRef | null;
        headers?: Readonly<Record<string, string>>;
        models: readonly string[] | null;
        providerId: string;
        retry?: RetryPolicyConfig;
    }
    Index
    adapter: LlmAdapter
    baseUrl: string

    Origin the adapter builds its URL from. A trailing slash is trimmed.

    credentialRef: CredentialRef | null

    The credential this route authenticates with, by REFERENCE.

    Null means the route needs none — a local model server, or AMC's own gateway when it is reached over a trusted socket. There is deliberately no way to configure a VALUE: the type is CredentialRef, and P3.0's brand makes a plain string unassignable to it.

    headers?: Readonly<Record<string, string>>

    Static headers every request on this route carries.

    models: readonly string[] | null

    Models this route serves, or null for any.

    An allowlist rather than a free-for-all because a typo in a model name is otherwise a 404 from a provider, several seconds and one signed header row later. Naming the models a route serves turns that into a refusal before anything is committed.

    providerId: string

    Stable provider id. Recorded verbatim in every request/header row.