Module Values.CreateAutomatedReasoningPolicyResponseSource

Creates an Automated Reasoning policy for Amazon Bedrock Guardrails. Automated Reasoning policies use mathematical techniques to detect hallucinations, suggest corrections, and highlight unstated assumptions in the responses of your GenAI application. To create a policy, you upload a source document that describes the rules that you're encoding. Automated Reasoning extracts important concepts from the source document that will become variables in the policy and infers policy rules.

Sourcetype nonrec t = {
  1. policyArn : AutomatedReasoningPolicyArn.t option;
    (*

    The Amazon Resource Name (ARN) of the Automated Reasoning policy that you created.

    *)
  2. version : AutomatedReasoningPolicyVersion.t option;
    (*

    The version number of the newly created Automated Reasoning policy. The initial version is always DRAFT.

    *)
  3. name : AutomatedReasoningPolicyName.t option;
    (*

    The name of the Automated Reasoning policy.

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

    The description of the Automated Reasoning policy.

    *)
  5. definitionHash : AutomatedReasoningPolicyHash.t option;
    (*

    The hash of the policy definition. This is used as a concurrency token for creating policy versions that you can use in your application.

    *)
  6. createdAt : Timestamp.t option;
    (*

    The timestamp when the policy was created.

    *)
  7. updatedAt : Timestamp.t option;
    (*

    The timestamp when the policy was last updated.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `ConflictException of ConflictException.t
  3. | `InternalServerException of InternalServerException.t
  4. | `ResourceNotFoundException of ResourceNotFoundException.t
  5. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  6. | `ThrottlingException of ThrottlingException.t
  7. | `TooManyTagsException of TooManyTagsException.t
  8. | `ValidationException of ValidationException.t
  9. | `Unknown_operation_error of string * string option
]
Sourceval make : ?policyArn:??? -> ?version:??? -> ?name:??? -> ?description:??? -> ?definitionHash:??? -> ?createdAt:??? -> ?updatedAt:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ThrottlingException of ThrottlingException.t | `TooManyTagsException of TooManyTagsException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ThrottlingException of ThrottlingException.t | `TooManyTagsException of TooManyTagsException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of AutomatedReasoningPolicyArn.t | `Timestamp of Timestamp.t ]) 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