Class: Aws::BedrockAgentCoreControl::Types::InferenceConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb

Overview

The configuration parameters that control how the foundation model behaves during evaluation, including response generation settings.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#max_tokensInteger

The maximum number of tokens to generate in the model response during evaluation.

Returns:

  • (Integer)


5448
5449
5450
5451
5452
5453
5454
5455
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 5448

class InferenceConfiguration < Struct.new(
  :max_tokens,
  :temperature,
  :top_p,
  :stop_sequences)
  SENSITIVE = []
  include Aws::Structure
end

#stop_sequencesArray<String>

The list of sequences that will cause the model to stop generating tokens when encountered.

Returns:

  • (Array<String>)


5448
5449
5450
5451
5452
5453
5454
5455
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 5448

class InferenceConfiguration < Struct.new(
  :max_tokens,
  :temperature,
  :top_p,
  :stop_sequences)
  SENSITIVE = []
  include Aws::Structure
end

#temperatureFloat

The temperature value that controls randomness in the model's responses. Lower values produce more deterministic outputs.

Returns:

  • (Float)


5448
5449
5450
5451
5452
5453
5454
5455
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 5448

class InferenceConfiguration < Struct.new(
  :max_tokens,
  :temperature,
  :top_p,
  :stop_sequences)
  SENSITIVE = []
  include Aws::Structure
end

#top_pFloat

The top-p sampling parameter that controls the diversity of the model's responses by limiting the cumulative probability of token choices.

Returns:

  • (Float)


5448
5449
5450
5451
5452
5453
5454
5455
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/types.rb', line 5448

class InferenceConfiguration < Struct.new(
  :max_tokens,
  :temperature,
  :top_p,
  :stop_sequences)
  SENSITIVE = []
  include Aws::Structure
end