Model target or reference to another routing rule.

Hierarchy

  • AiGatewayRoutingRuleTarget

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 or pattern. Omitted when the caller cannot view its provider.

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. Omitted for dynamic resolution and when the caller cannot view its provider.

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 resource slug.

Type of routing target.

weight?: number

Effective relative weight. Returned only for targets in weighted_affinity tiers.

Generated using TypeDoc