Values.ConverseStreamOutputSourceThe messages output stream
type nonrec t = {messageStart : MessageStartEvent.t option;Message start information.
*)contentBlockStart : ContentBlockStartEvent.t option;Start information for a content block.
*)contentBlockDelta : ContentBlockDeltaEvent.t option;The messages output content block delta.
*)contentBlockStop : ContentBlockStopEvent.t option;Stop information for a content block.
*)messageStop : MessageStopEvent.t option;Message stop information.
*)metadata : ConverseStreamMetadataEvent.t option;Metadata for the converse output stream.
*)internalServerException : InternalServerException.t option;An internal server error occurred. Retry your request.
*)modelStreamErrorException : ModelStreamErrorException.t option;A streaming error occurred. Retry your request.
*)validationException : ValidationException.t option;The input fails to satisfy the constraints specified by Amazon Bedrock. For troubleshooting this error, see ValidationError in the Amazon Bedrock User Guide.
*)throttlingException : ThrottlingException.t option;Your request was denied due to exceeding the account quotas for Amazon Bedrock. For troubleshooting this error, see ThrottlingException in the Amazon Bedrock User Guide.
*)}val make :
?messageStart:??? ->
?contentBlockStart:??? ->
?contentBlockDelta:??? ->
?contentBlockStop:??? ->
?messageStop:??? ->
?metadata:??? ->
?internalServerException:??? ->
?modelStreamErrorException:??? ->
?validationException:??? ->
?throttlingException:??? ->
?serviceUnavailableException:??? ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Structure of
(string
* [> `Enum of string
| `Integer of NonNegativeInteger.t
| `String of NonBlankString.t
| `Structure of
(string
* [> `Enum of string
| `Integer of TokenUsageInputTokensInteger.t
| `List of
[> `Structure of
(string
* [> `Enum of string
| `Integer of CacheDetailInputTokensInteger.t
| `String of String_.t
| `Structure of 'a list ])
list ]
list
| `Long of Long.t
| `String of String_.t
| `Structure of
(string
* [> `Blob of Blob.t
| `Enum of string
| `List of
[> `String of GuardrailOutputText.t
| `Structure of
(string * [> `String of String_.t ]) list ]
list
| `Map of
([> `String of String_.t ]
* [> `List of
[> `Structure of
(string
* [> `Structure of
(string
* [> `Enum of string
| `List of
[> `Enum of string
| `Structure of
(string
* [> `Boolean of
Boolean.t
| `Double of
GuardrailContextualGroundingFilterThresholdDouble.t
| `Enum of string
| `String of
String_.t
| `Structure of
(string
* [>
`List of
[>
`Structure of
(string
*
[>
`List of
[>
`Structure of
(string
*
[>
`Double of
GuardrailAutomatedReasoningTranslationConfidence.t
| `List of
[>
`Structure of
(string
*
[>
`String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list
| `String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list
| `String of
AutomatedReasoningRuleIdentifier.t ])
list ]
list
| `Structure of
(string
*
[>
`Double of
GuardrailAutomatedReasoningTranslationConfidence.t
| `Enum of
string
| `List of
[>
`Structure of
(string
*
[>
`String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list ])
list ])
list ])
list ]
list
| `Long of
GuardrailProcessingLatency.t
| `String of
GuardrailId.t
| `Structure of
(string
* [> `Integer of
GuardrailTopicPolicyUnitsProcessed.t
| `Structure of
(string
* [> `Integer of
TextCharactersGuarded.t ])
list ])
list ])
list ])
list ]
list
| `Structure of
(string
* [> `Structure of
(string
* [> `Enum of string
| `List of
[> `Enum of string
| `Structure of
(string
* [> `Boolean of Boolean.t
| `Double of
GuardrailContextualGroundingFilterThresholdDouble.t
| `Enum of string
| `String of String_.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string
*
[>
`List of
[>
`Structure of
(string
*
[>
`Double of
GuardrailAutomatedReasoningTranslationConfidence.t
| `List of
[>
`Structure of
(string
*
[>
`String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list
| `String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list
| `String of
AutomatedReasoningRuleIdentifier.t ])
list ]
list
| `Structure of
(string
* [> `Double of
GuardrailAutomatedReasoningTranslationConfidence.t
| `Enum of
string
| `List of
[> `Structure of
(string
*
[>
`String of
GuardrailAutomatedReasoningStatementLogicContent.t ])
list ]
list ])
list ])
list ])
list ]
list
| `Long of
GuardrailProcessingLatency.t
| `String of GuardrailId.t
| `Structure of
(string
* [> `Integer of
GuardrailTopicPolicyUnitsProcessed.t
| `Structure of
(string
* [> `Integer of
TextCharactersGuarded.t ])
list ])
list ])
list ])
list ])
list
| `String of ToolUseId.t
| `Structure of
(string
* [> `Blob of ImageSourceBytesBlob.t
| `String of String_.t
| `Structure of
(string
* [> `Integer of
DocumentCharLocationDocumentIndexInteger.t
| `String of String_.t ])
list ])
list ])
list ])
list ])
list ])
list ]