Module Values.ConverseStreamOutputSource

The messages output stream

Sourcetype nonrec t = {
  1. messageStart : MessageStartEvent.t option;
    (*

    Message start information.

    *)
  2. contentBlockStart : ContentBlockStartEvent.t option;
    (*

    Start information for a content block.

    *)
  3. contentBlockDelta : ContentBlockDeltaEvent.t option;
    (*

    The messages output content block delta.

    *)
  4. contentBlockStop : ContentBlockStopEvent.t option;
    (*

    Stop information for a content block.

    *)
  5. messageStop : MessageStopEvent.t option;
    (*

    Message stop information.

    *)
  6. metadata : ConverseStreamMetadataEvent.t option;
    (*

    Metadata for the converse output stream.

    *)
  7. internalServerException : InternalServerException.t option;
    (*

    An internal server error occurred. Retry your request.

    *)
  8. modelStreamErrorException : ModelStreamErrorException.t option;
    (*

    A streaming error occurred. Retry your request.

    *)
  9. 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.

    *)
  10. 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.

    *)
  11. serviceUnavailableException : ServiceUnavailableException.t option;
    (*

    The service isn't currently available. For troubleshooting this error, see ServiceUnavailable in the Amazon Bedrock User Guide

    *)
}
Sourceval make : ?messageStart:??? -> ?contentBlockStart:??? -> ?contentBlockDelta:??? -> ?contentBlockStop:??? -> ?messageStop:??? -> ?metadata:??? -> ?internalServerException:??? -> ?modelStreamErrorException:??? -> ?validationException:??? -> ?throttlingException:??? -> ?serviceUnavailableException:??? -> unit -> t
Sourceval 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 ]
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