InvokeInferenceRouterInput
¶
Source code in docs_src/capo_sagemaker_inference_router_runtime/types/invoke_inference_router_input.py
accept
instance-attribute
¶
accept: NotRequired[str]
The MIME type that you want for the inference response. The router passes it to the destination.
body
instance-attribute
¶
body: InferenceRouterBodyBlob
The input data for the inference, in the format that your model expects. The body can't be empty.
content_type
instance-attribute
¶
content_type: NotRequired[str]
The MIME type of the input data in the request body. The router passes it to the destination.
custom_attributes
instance-attribute
¶
custom_attributes: NotRequired[CustomAttributesHeader]
Provides additional information about the inference request. The value is an opaque string that the router passes, unchanged, to the model container of the destination that serves the request. The value can contain up to 1,024 visible US-ASCII characters.
inference_id
instance-attribute
¶
inference_id: NotRequired[str]
An identifier for the inference request. The router passes it to the destination.
inference_router_name
instance-attribute
¶
inference_router_name: str
The name of the inference router to invoke.
prefix_aware_id
instance-attribute
¶
prefix_aware_id: NotRequired[str]
An optional, stable identifier that serves as a routing hint for prefix-aware routing. The router passes it to the destination that serves the request. Within that destination, requests with the same prefix and the same identifier go to the same instance. If requests from different applications might have the same prompt prefix, set a different identifier for each application to differentiate their routing decisions.
Applies only to destination endpoints configured with a RoutingStrategy of PREFIX_AWARE.