InvokeModelRequest

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The desired MIME type of the inference body in the response. The default value is application/json.

Link copied to clipboard

The prompt and inference parameters in the format specified in the contentType in the header. You must provide the body in JSON format. To see the format and content of the request and response bodies for different models, refer to Inference parameters. For more information, see Run inference in the Bedrock User Guide.

Link copied to clipboard

The MIME type of the input data in the request. You must specify application/json.

Link copied to clipboard

The unique identifier of the guardrail that you want to use. If you don't provide a value, no guardrail is applied to the invocation.

Link copied to clipboard

The version number for the guardrail. The value can also be DRAFT.

Link copied to clipboard

The unique identifier of the model to invoke to run inference.

Link copied to clipboard

Model performance settings for the request.

Link copied to clipboard
val trace: Trace?

Specifies whether to enable or disable the Bedrock trace. If enabled, you can see the full Bedrock trace.

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String