Builder

class Builder

Properties

Link copied to clipboard

Additional inference parameters that the model supports, beyond the base set of inference parameters that Converse and ConverseStream support in the inferenceConfig field. For more information, see Model parameters.

Link copied to clipboard

Additional model parameters field paths to return in the response. Converse and ConverseStream return the requested fields as a JSON Pointer object in the additionalModelResponseFields field. The following is example JSON for additionalModelResponseFieldPaths.

Link copied to clipboard

Configuration information for a guardrail that you want to use in the request. If you include guardContent blocks in the content field in the messages field, the guardrail operates only on those messages. If you include no guardContent blocks, the guardrail operates on all messages in the request body and in any included prompt resource.

Link copied to clipboard

Inference parameters to pass to the model. Converse and ConverseStream support a base set of inference parameters. If you need to pass additional parameters that the model supports, use the additionalModelRequestFields request field.

Link copied to clipboard

The messages that you want to send to the model.

Link copied to clipboard

Specifies the model or throughput with which to run inference, or the prompt resource to use in inference. The value depends on the resource that you use:

Link copied to clipboard

Model performance settings for the request.

Link copied to clipboard

Contains a map of variables in a prompt from Prompt management to objects containing the values to fill in for them when running model invocation. This field is ignored if you don't specify a prompt resource in the modelId field.

Link copied to clipboard

Key-value pairs that you can use to filter invocation logs.

Link copied to clipboard

A prompt that provides instructions or context to the model about the task it should perform, or the persona it should adopt during the conversation.

Link copied to clipboard

Configuration information for the tools that the model can use when generating a response.

Functions