Values.CreatePromptRouterRequestSourceCreates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.
type nonrec t = {clientRequestToken : IdempotencyToken.t option;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.
*)promptRouterName : PromptRouterName.t;The name of the prompt router. The name must be unique within your Amazon Web Services account in the current region.
*)models : PromptRouterTargetModels.t;A list of foundation models that the prompt router can route requests to. At least one model must be specified.
*)description : PromptRouterDescription.t option;An optional description of the prompt router to help identify its purpose.
*)routingCriteria : RoutingCriteria.t;The criteria, which is the response quality difference, used to determine how incoming requests are routed to different models.
*)fallbackModel : PromptRouterTargetModel.t;The default model to use when the routing criteria is not met.
*)}val make :
?clientRequestToken:??? ->
?description:??? ->
?tags:??? ->
promptRouterName:PromptRouterName.t ->
models:PromptRouterTargetModels.t ->
routingCriteria:RoutingCriteria.t ->
fallbackModel:PromptRouterTargetModel.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string * [> `String of PromptRouterTargetModelArn.t ])
list ]
list
| `String of IdempotencyToken.t
| `Structure of
(string
* [> `Double of RoutingCriteriaResponseQualityDifferenceDouble.t
| `String of PromptRouterTargetModelArn.t ])
list ])
list ]