Module Values.InvokeModelWithBidirectionalStreamResponseSource

Invoke the specified Amazon Bedrock model to run inference using the bidirectional stream. The response is returned in a stream that remains open for 8 minutes. A single session can contain multiple prompts and responses from the model. The prompts to the model are provided as audio files and the model's responses are spoken back to the user and transcribed. It is possible for users to interrupt the model's response with a new prompt, which will halt the response speech. The model will retain contextual awareness of the conversation while pivoting to respond to the new prompt.

Sourcetype nonrec t = {
  1. body : InvokeModelWithBidirectionalStreamOutput.t option;
    (*

    Streaming response from the model in the format specified by the BidirectionalOutputPayloadPart header.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `ModelErrorException of ModelErrorException.t
  4. | `ModelNotReadyException of ModelNotReadyException.t
  5. | `ModelStreamErrorException of ModelStreamErrorException.t
  6. | `ModelTimeoutException of ModelTimeoutException.t
  7. | `ResourceNotFoundException of ResourceNotFoundException.t
  8. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  9. | `ServiceUnavailableException of ServiceUnavailableException.t
  10. | `ThrottlingException of ThrottlingException.t
  11. | `ValidationException of ValidationException.t
  12. | `Unknown_operation_error of string * string option
]
Sourceval make : ?body:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ModelErrorException of ModelErrorException.t | `ModelNotReadyException of ModelNotReadyException.t | `ModelStreamErrorException of ModelStreamErrorException.t | `ModelTimeoutException of ModelTimeoutException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ServiceUnavailableException of ServiceUnavailableException.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 | `ModelErrorException of ModelErrorException.t | `ModelNotReadyException of ModelNotReadyException.t | `ModelStreamErrorException of ModelStreamErrorException.t | `ModelTimeoutException of ModelTimeoutException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ServiceUnavailableException of ServiceUnavailableException.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 of_header_and_body : ('a * InvokeModelWithBidirectionalStreamOutput.t) -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Structure of (string * [> `Blob of PartBody.t | `Integer of StatusCode.t | `String of NonBlankString.t ]) 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