Module Values.GetPromptResponseSource

Retrieves information about the working draft (DRAFT version) of a prompt or a version of it, depending on whether you include the promptVersion field or not. For more information, see View information about prompts using Prompt management and View information about a version of your prompt in the Amazon Bedrock User Guide.

Sourcetype nonrec t = {
  1. name : PromptName.t option;
    (*

    The name of the prompt.

    *)
  2. description : PromptDescription.t option;
    (*

    The descriptino of the prompt.

    *)
  3. customerEncryptionKeyArn : KmsKeyArn.t option;
    (*

    The Amazon Resource Name (ARN) of the KMS key that the prompt is encrypted with.

    *)
  4. defaultVariant : PromptVariantName.t option;
    (*

    The name of the default variant for the prompt. This value must match the name field in the relevant PromptVariant object.

    *)
  5. variants : PromptVariantList.t option;
    (*

    A list of objects, each containing details about a variant of the prompt.

    *)
  6. id : PromptId.t option;
    (*

    The unique identifier of the prompt.

    *)
  7. arn : PromptArn.t option;
    (*

    The Amazon Resource Name (ARN) of the prompt or the prompt version (if you specified a version in the request).

    *)
  8. version : Version.t option;
    (*

    The version of the prompt.

    *)
  9. createdAt : DateTimestamp.t option;
    (*

    The time at which the prompt was created.

    *)
  10. updatedAt : DateTimestamp.t option;
    (*

    The time at which the prompt was last updated.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `ResourceNotFoundException of ResourceNotFoundException.t
  4. | `ThrottlingException of ThrottlingException.t
  5. | `ValidationException of ValidationException.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?name:??? -> ?description:??? -> ?customerEncryptionKeyArn:??? -> ?defaultVariant:??? -> ?variants:??? -> ?id:??? -> ?arn:??? -> ?version:??? -> ?createdAt:??? -> ?updatedAt:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.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 * [> `List of [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of PromptMetadataKey.t ]) list ] list | `String of PromptVariantName.t | `Structure of (string * [> `Structure of (string * [> `Float of Temperature.t | `Integer of MaximumLength.t | `List of [> `String of String_.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `Enum of string ]) list ]) list ] list | `String of PromptInputVariableName.t | `Structure of (string * [> `Enum of string ]) list ]) list ] list | `String of TextPrompt.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `String of ToolName.t | `Structure of (string * [> `Structure of 'a list ]) list ]) list ]) list ] list | `Structure of (string * [> `Structure of (string * [> `String of ToolName.t ]) list ]) list ]) list ]) list ]) list ]) list ] list | `String of PromptName.t | `Timestamp of DateTimestamp.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