Module Values.CreatePromptRouterRequestSource

Creates a prompt router that manages the routing of requests between multiple foundation models based on the routing criteria.

Sourcetype nonrec t = {
  1. 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.

    *)
  2. promptRouterName : PromptRouterName.t;
    (*

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

    *)
  3. models : PromptRouterTargetModels.t;
    (*

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

    *)
  4. description : PromptRouterDescription.t option;
    (*

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

    *)
  5. routingCriteria : RoutingCriteria.t;
    (*

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

    *)
  6. fallbackModel : PromptRouterTargetModel.t;
    (*

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

    *)
  7. tags : TagList.t option;
    (*

    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.

    *)
}
Sourceval context_ : string
Sourceval make : ?clientRequestToken:??? -> ?description:??? -> ?tags:??? -> promptRouterName:PromptRouterName.t -> models:PromptRouterTargetModels.t -> routingCriteria:RoutingCriteria.t -> fallbackModel:PromptRouterTargetModel.t -> unit -> t
Sourceval 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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t