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

    Interface AdapterEnvelopeInput

    Everything an adapter needs to address one dispatch.

    interface AdapterEnvelopeInput {
        baseUrl: string;
        body: Buffer;
        credential: string | null;
        extraHeaders: Readonly<Record<string, string>>;
        model: string;
        signal?: AbortSignal;
    }
    Index
    baseUrl: string

    Route origin, without a trailing slash. The adapter appends its own path.

    body: Buffer

    The exact bytes a signed request/header row committed to.

    Transmit verbatim. Appending, re-serialising or "fixing" them breaks the commitment and turns a later derivation into a false tamper alarm.

    credential: string | null

    The credential value, resolved for THIS request through the credentials seam, or null when the route configures none.

    Null is legitimate: a local model server has no key, and requiring a reference that resolves to nothing would mean recording a credential the deployment does not have. What is never legitimate is an adapter reading one from anywhere else.

    extraHeaders: Readonly<Record<string, string>>

    Route-pinned headers — an agent id, a tenant, an API version override.

    model: string

    The model, for adapters whose URL carries it. The BODY already names it.

    signal?: AbortSignal