Class: Anthropic::Models::Beta::BetaAdvisorResultBlock
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::BetaAdvisorResultBlock
- Defined in:
- lib/anthropic/models/beta/beta_advisor_result_block.rb,
sig/anthropic/models/beta/beta_advisor_result_block.rbs
Instance Attribute Summary collapse
-
#stop_reason ⇒ String?
The advisor sub-inference's stop reason (same values as the top-level message
stop_reason). - #text ⇒ String
- #type ⇒ Symbol, :advisor_result
Instance Method Summary collapse
-
#initialize ⇒ BetaAdvisorResultBlock
constructor
A new instance of BetaAdvisorResultBlock.
- #to_hash ⇒ { stop_reason: String?, text: String, type: :advisor_result }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ BetaAdvisorResultBlock
Returns a new instance of BetaAdvisorResultBlock.
16 17 18 19 20 |
# File 'sig/anthropic/models/beta/beta_advisor_result_block.rbs', line 16
def initialize: (
stop_reason: String?,
text: String,
?type: :advisor_result
) -> void
|
Instance Attribute Details
#stop_reason ⇒ String?
The advisor sub-inference's stop reason (same values as the top-level message
stop_reason). max_tokens indicates the advisor's output was truncated at the
tool's max_tokens value or the advisor model's policy cap.
13 |
# File 'lib/anthropic/models/beta/beta_advisor_result_block.rb', line 13 required :stop_reason, String, nil?: true |
#text ⇒ String
18 |
# File 'lib/anthropic/models/beta/beta_advisor_result_block.rb', line 18 required :text, String |
#type ⇒ Symbol, :advisor_result
23 |
# File 'lib/anthropic/models/beta/beta_advisor_result_block.rb', line 23 required :type, const: :advisor_result |
Instance Method Details
#to_hash ⇒ { stop_reason: String?, text: String, type: :advisor_result }
22 23 24 25 26 |
# File 'sig/anthropic/models/beta/beta_advisor_result_block.rbs', line 22
def to_hash: -> {
stop_reason: String?,
text: String,
type: :advisor_result
}
|