Class AiGatewayRoutingRuleTargetRequest

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

Hierarchy

  • AiGatewayRoutingRuleTargetRequest

Constructors

Properties

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 or foreign ID is rejected.

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 requires an explicit provider and does 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. Omitted or null clears an override on full replacement. 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.

slug?: string

Organization-unique routing rule slug. Allowed only in configured tiers.

Type of routing target.

weight?: number

Relative weight in a weighted_affinity tier. Omitted or null defaults to 1. Weights need not total 100. Must be omitted or null in configured tiers.

Generated using TypeDoc