Skip to content

CreatePromptRouterRequest

Source code in docs_src/capo_bedrock/types/create_prompt_router_request.py
class CreatePromptRouterRequest(TypedDict, closed=True):
    client_request_token: NotRequired[
        "capo_bedrock.types.idempotency_token.IdempotencyToken"
    ]
    """<p>A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK automatically generates one for you.</p>"""
    prompt_router_name: "capo_bedrock.types.prompt_router_name.PromptRouterName"
    """<p>The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.</p>"""
    models: "capo_bedrock.types.prompt_router_target_models.PromptRouterTargetModels"
    """<p>A list of foundation models that the prompt router can route requests to. At least one model must be specified.</p>"""
    description: NotRequired[
        "capo_bedrock.types.prompt_router_description.PromptRouterDescription"
    ]
    """<p>An optional description of the prompt router to help identify its purpose.</p>"""
    routing_criteria: "capo_bedrock.types.routing_criteria.RoutingCriteria"
    """<p>The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.</p>"""
    fallback_model: (
        "capo_bedrock.types.prompt_router_target_model.PromptRouterTargetModel"
    )
    """<p>The default model to use when the routing criteria is not met.</p>"""
    tags: NotRequired["capo_bedrock.types.tag_list.TagList"]
    """<p>An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.</p>"""

client_request_token instance-attribute

client_request_token: NotRequired[IdempotencyToken]

A unique, case-sensitive identifier that you provide to ensure idempotency of your requests. If not specified, the Amazon Web Services SDK automatically generates one for you.

description instance-attribute

description: NotRequired[PromptRouterDescription]

An optional description of the prompt router to help identify its purpose.

fallback_model instance-attribute

fallback_model: PromptRouterTargetModel

The default model to use when the routing criteria is not met.

models instance-attribute

A list of foundation models that the prompt router can route requests to. At least one model must be specified.

prompt_router_name instance-attribute

prompt_router_name: PromptRouterName

The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.

routing_criteria instance-attribute

routing_criteria: RoutingCriteria

The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.

tags instance-attribute

tags: NotRequired[TagList]

An array of key-value pairs to apply to this resource as tags. You can use tags to categorize and manage your Amazon Web Services resources.