Values.CreatePromptResponseSourceCreates a prompt in your prompt library that you can add to a flow. For more information, see Prompt management in Amazon Bedrock, Create a prompt using Prompt management and Prompt flows in Amazon Bedrock in the Amazon Bedrock User Guide.
type nonrec t = {name : PromptName.t option;The name of the prompt.
*)description : PromptDescription.t option;The description of the prompt.
*)customerEncryptionKeyArn : KmsKeyArn.t option;The Amazon Resource Name (ARN) of the KMS key that you encrypted the prompt with.
*)defaultVariant : PromptVariantName.t option;The name of the default variant for your prompt.
*)variants : PromptVariantList.t option;A list of objects, each containing details about a variant of the prompt.
*)id : PromptId.t option;The unique identifier of the prompt.
*)arn : PromptArn.t option;The Amazon Resource Name (ARN) of the prompt.
*)version : Version.t option;The version of the prompt. When you create a prompt, the version created is the DRAFT version.
*)createdAt : DateTimestamp.t option;The time at which the prompt was created.
*)updatedAt : DateTimestamp.t option;The time at which the prompt was last updated.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.t| `ConflictException of ConflictException.t| `InternalServerException of InternalServerException.t| `ServiceQuotaExceededException of ServiceQuotaExceededException.t| `ThrottlingException of ThrottlingException.t| `ValidationException of ValidationException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `AccessDeniedException of AccessDeniedException.t
| `ConflictException of ConflictException.t
| `InternalServerException of InternalServerException.t
| `ServiceQuotaExceededException of ServiceQuotaExceededException.t
| `ThrottlingException of ThrottlingException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `AccessDeniedException of AccessDeniedException.t
| `ConflictException of ConflictException.t
| `InternalServerException of InternalServerException.t
| `ServiceQuotaExceededException of ServiceQuotaExceededException.t
| `ThrottlingException of ThrottlingException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val 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 ]