Skip to content

TargetTrafficSplitEntryDict

Dictionary Type

TargetTrafficSplitEntryDict

Bases: TypedDict

Dictionary form of TargetTrafficSplitEntry.

Attributes

description instance-attribute
description: str | None

The description of this traffic split variant.

fallback instance-attribute
fallback: Fallback | FallbackDict | None

The fallback configuration for this variant. Supported only for inference targets.

metadata instance-attribute
metadata: Mapping[str, str] | None

Key-value metadata associated with this traffic split variant.

model instance-attribute
model: str | None

The model ID to send to the target for this variant. Supported only for inference targets. If you don't specify a model, the gateway sends the model from the original request.

name instance-attribute
name: Required[str]

The name of this traffic split variant.

target_name instance-attribute
target_name: Required[str]

The name of the target to route traffic to.

weight instance-attribute
weight: Required[int]

The percentage of traffic to route to this variant.