Values.ContentBlockSourceA block of content for a message that you pass to, or receive from, a model with the Converse or ConverseStream API operations.
type nonrec t = {text : String_.t option;Text to include in the message.
*)image : ImageBlock.t option;Image to include in the message. This field is only supported by Anthropic Claude 3 models.
*)document : DocumentBlock.t option;A document to include in the message.
*)video : VideoBlock.t option;Video to include in the message.
*)audio : AudioBlock.t option;An audio content block containing audio data in the conversation.
*)toolUse : ToolUseBlock.t option;Information about a tool use request from a model.
*)toolResult : ToolResultBlock.t option;The result for a tool request that a model makes.
*)guardContent : GuardrailConverseContentBlock.t option;Contains the content to assess with the guardrail. If you don't specify guardContent in a call to the Converse API, the guardrail (if passed in the Converse API) assesses the entire message. For more information, see Use a guardrail with the Converse API in the Amazon Bedrock User Guide.
*)cachePoint : CachePointBlock.t option;CachePoint to include in the message.
*)reasoningContent : ReasoningContentBlock.t option;Contains content regarding the reasoning that is carried out by the model. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.
*)citationsContent : CitationsContentBlock.t option;A content block that contains both generated text and associated citation information, providing traceability between the response and source documents.
*)searchResult : SearchResultBlock.t option;Search result to include in the message.
*)}val to_value :
t ->
[> `Structure of
(string
* [> `String of String_.t
| `Structure of
(string
* [> `Blob of Blob.t
| `Enum of string
| `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string * [> `String of String_.t ]) list ]
list
| `String of String_.t
| `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string * [> `String of String_.t ]) list ]
list
| `String of DocumentBlockNameString.t
| `Structure of
(string
* [> `Blob of ImageSourceBytesBlob.t
| `Boolean of Boolean.t
| `Integer of
DocumentCharLocationDocumentIndexInteger.t
| `List of
[> `Structure of
(string * [> `String of String_.t ])
list ]
list
| `String of String_.t
| `Structure of
(string * [> `String of S3Uri.t ]) list ])
list ])
list ])
list ]
list
| `String of DocumentBlockNameString.t
| `Structure of
(string
* [> `Blob of ImageSourceBytesBlob.t
| `Boolean of Boolean.t
| `Enum of string
| `List of
[> `Enum of string
| `Structure of (string * [> `String of String_.t ]) list ]
list
| `String of String_.t
| `Structure of
(string
* [> `Blob of GuardrailConverseImageSourceBytesBlob.t
| `String of S3Uri.t ])
list ])
list ])
list ])
list ]