Class AiGatewayRoutingRuleTargetRequest

Model target or reference to another routing rule used to create or replace a rule.

Hierarchy

  • AiGatewayRoutingRuleTargetRequest

Constructors

Properties

_default?: boolean

Whether this is the single default classified destination. Omission preserves a saved value; null clears it.

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
id?: number

Saved target row ID. On replacement, retain this ID only within its original route and at most once. A stale, foreign, duplicate, or destination-changing ID is rejected. Hidden route targets can be retained using only this parent-local ID and type.

model?: string

Model name. Omit when retaining a saved target by ID or selecting a concrete target by model_id.

modelId?: number

Opaque model catalog ID for a concrete model target. New selections require provider View; saved selections can be retained without metadata.

provider?: string

Provider slug. weighted_affinity and classified tiers require an explicit provider and do not allow "*".

Optional reasoning effort preference for this model destination. Must be supported by the selected model and provider. For provider "*", every eligible provider must support the level. An explicit value overrides the request's reasoning setting, subject to model-group policy. Omitted or null preserves request and provider behavior; none is an explicit level, not the default. On update, omission preserves a saved target override; null explicitly clears it. Routing-rule references cannot set this field; each referenced model destination owns its override. If an override cannot be applied at runtime, the gateway keeps the destination and restores the caller's original reasoning settings, or preserves the provider default when omitted. It rechecks all applicable route and model-group policies against those settings before sending. Model-group max_reasoning_level enforces hard limits; the override is not an additional cap. Normal fallback applies if governance denies the resulting request or the destination cannot otherwise serve it. Metrics and span tags record the override outcome and incompatibility reason. When response headers have not already been committed, X-Ai-Gateway-Reasoning-Override reports applied or not_applied for the returned attempt, and X-Ai-Gateway-Reasoning-Override-Reason reports the reason when not applied.

rubric?: string

Destination rubric in a classified tier: when the decision model picks this destination. Up to 300 characters after leading and trailing spaces are trimmed, and different for each destination in the tier. Omission preserves a saved value; null clears it. Must be absent on the default destination.

slug?: string

Organization-unique routing rule slug. New references require route View. Omit to retain a saved target by its parent-local ID. Allowed only in configured tiers.

Type of routing target.

weight?: number

Relative weight in a weighted_affinity tier. Omission preserves a saved target weight; new targets and explicit null default to 1. Weights need not total 100. Must be omitted or null in configured tiers.

Generated using TypeDoc