Class: Aws::BedrockRuntime::Types::ConverseResponse

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#additional_model_response_fieldsHash, ...

Additional fields in the response that are unique to the model.

Returns:

  • (Hash, Array, String, Numeric, Boolean)


1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1119

class ConverseResponse < Struct.new(
  :output,
  :stop_reason,
  :usage,
  :metrics,
  :additional_model_response_fields,
  :trace,
  :performance_config,
  :service_tier)
  SENSITIVE = []
  include Aws::Structure
end

#metricsTypes::ConverseMetrics

Metrics for the call to Converse.



1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1119

class ConverseResponse < Struct.new(
  :output,
  :stop_reason,
  :usage,
  :metrics,
  :additional_model_response_fields,
  :trace,
  :performance_config,
  :service_tier)
  SENSITIVE = []
  include Aws::Structure
end

#outputTypes::ConverseOutput

The result from the call to Converse.



1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1119

class ConverseResponse < Struct.new(
  :output,
  :stop_reason,
  :usage,
  :metrics,
  :additional_model_response_fields,
  :trace,
  :performance_config,
  :service_tier)
  SENSITIVE = []
  include Aws::Structure
end

#performance_configTypes::PerformanceConfiguration

Model performance settings for the request.



1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1119

class ConverseResponse < Struct.new(
  :output,
  :stop_reason,
  :usage,
  :metrics,
  :additional_model_response_fields,
  :trace,
  :performance_config,
  :service_tier)
  SENSITIVE = []
  include Aws::Structure
end

#service_tierTypes::ServiceTier

Specifies the processing tier configuration used for serving the request.

Returns:



1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1119

class ConverseResponse < Struct.new(
  :output,
  :stop_reason,
  :usage,
  :metrics,
  :additional_model_response_fields,
  :trace,
  :performance_config,
  :service_tier)
  SENSITIVE = []
  include Aws::Structure
end

#stop_reasonString

The reason why the model stopped generating output.

Returns:

  • (String)


1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1119

class ConverseResponse < Struct.new(
  :output,
  :stop_reason,
  :usage,
  :metrics,
  :additional_model_response_fields,
  :trace,
  :performance_config,
  :service_tier)
  SENSITIVE = []
  include Aws::Structure
end

#traceTypes::ConverseTrace

A trace object that contains information about the Guardrail behavior.



1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1119

class ConverseResponse < Struct.new(
  :output,
  :stop_reason,
  :usage,
  :metrics,
  :additional_model_response_fields,
  :trace,
  :performance_config,
  :service_tier)
  SENSITIVE = []
  include Aws::Structure
end

#usageTypes::TokenUsage

The total number of tokens used in the call to Converse. The total includes the tokens input to the model and the tokens generated by the model.

Returns:



1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 1119

class ConverseResponse < Struct.new(
  :output,
  :stop_reason,
  :usage,
  :metrics,
  :additional_model_response_fields,
  :trace,
  :performance_config,
  :service_tier)
  SENSITIVE = []
  include Aws::Structure
end