BedrockConverseParams

class BedrockConverseParams(temperature: Double? = null, maxTokens: Int? = null, numberOfChoices: Int? = null, speculation: String? = null, schema: LLMParams.Schema? = null, toolChoice: LLMParams.ToolChoice? = null, user: String? = null, additionalProperties: Map<String, JsonElement>? = null, val topP: Double? = null, val stopSequences: List<String>? = null, val performanceConfig: PerformanceConfiguration? = null, val promptVariables: Map<String, PromptVariableValues>? = null, val requestMetadata: Map<String, String>? = null) : LLMParams(source)

Bedrock Converse API parameters layered on top of LLMParams.

AWS docs

Constructors

Link copied to clipboard
constructor(temperature: Double? = null, maxTokens: Int? = null, numberOfChoices: Int? = null, speculation: String? = null, schema: LLMParams.Schema? = null, toolChoice: LLMParams.ToolChoice? = null, user: String? = null, additionalProperties: Map<String, JsonElement>? = null, topP: Double? = null, stopSequences: List<String>? = null, performanceConfig: PerformanceConfiguration? = null, promptVariables: Map<String, PromptVariableValues>? = null, requestMetadata: Map<String, String>? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val performanceConfig: PerformanceConfiguration?

Model performance settings for the request, such as latency.

Link copied to clipboard
val promptVariables: Map<String, PromptVariableValues>?

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. See Converse API docs for limitations.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Custom text sequences that cause the model to stop generating. If matched, response will have stop_reason of "stop_sequence".

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val topP: Double?

Nucleus sampling in (0.0, 1.0]; use instead of temperature. Cuts off token sampling at a cumulative probability threshold.

Link copied to clipboard
val user: String?

Functions

Link copied to clipboard
operator fun component1(): Double?
Link copied to clipboard
operator fun component10(): Map<String, JsonElement>?
Link copied to clipboard
operator fun component2(): Int?
Link copied to clipboard
operator fun component3(): Int?
Link copied to clipboard
operator fun component4(): String?
Link copied to clipboard
operator fun component5(): LLMParams.Schema?
Link copied to clipboard
Link copied to clipboard
operator fun component7(): String?
Link copied to clipboard
fun copy(temperature: Double? = this.temperature, maxTokens: Int? = this.maxTokens, numberOfChoices: Int? = this.numberOfChoices, speculation: String? = this.speculation, schema: LLMParams.Schema? = this.schema, toolChoice: LLMParams.ToolChoice? = this.toolChoice, user: String? = this.user, additionalProperties: Map<String, JsonElement>? = this.additionalProperties, topP: Double? = this.topP, stopSequences: List<String>? = this.stopSequences): BedrockConverseParams

Creates a copy of this instance with the ability to modify any of its properties.

open fun copy(temperature: Double?, maxTokens: Int?, numberOfChoices: Int?, speculation: String?, schema: LLMParams.Schema?, toolChoice: LLMParams.ToolChoice?, user: String?, additionalProperties: Map<String, JsonElement>?): LLMParams
Link copied to clipboard
fun default(default: LLMParams): LLMParams
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
Link copied to clipboard