Class: Anthropic::Models::RawMessageDeltaEvent::Delta
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::RawMessageDeltaEvent::Delta
- Defined in:
- lib/anthropic/models/raw_message_delta_event.rb,
sig/anthropic/models/raw_message_delta_event.rbs
Overview
Instance Attribute Summary collapse
-
#container ⇒ Anthropic::Models::Container?
Information about the container used in this request.
-
#stop_details ⇒ Anthropic::Models::RefusalStopDetails?
Structured information about why model output stopped.
- #stop_reason ⇒ Symbol, ...
- #stop_sequence ⇒ String?
Instance Method Summary collapse
-
#initialize(container:, stop_details:, stop_reason:, stop_sequence:) ⇒ Delta
constructor
Some parameter documentations has been truncated, see Delta for more details.
- #to_hash ⇒ { container: Anthropic::Container?, stop_details: Anthropic::RefusalStopDetails?, stop_reason: Anthropic::Models::stop_reason?, stop_sequence: String? }
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(container:, stop_details:, stop_reason:, stop_sequence:) ⇒ Delta
Some parameter documentations has been truncated, see Anthropic::Models::RawMessageDeltaEvent::Delta for more details.
|
|
# File 'lib/anthropic/models/raw_message_delta_event.rb', line 74
|
Instance Attribute Details
#container ⇒ Anthropic::Models::Container?
Information about the container used in this request.
This will be non-null if a container tool (e.g. code execution) was used.
54 |
# File 'lib/anthropic/models/raw_message_delta_event.rb', line 54 required :container, -> { Anthropic::Container }, nil?: true |
#stop_details ⇒ Anthropic::Models::RefusalStopDetails?
Structured information about why model output stopped.
This is null when the stop_reason has no additional detail to report.
62 |
# File 'lib/anthropic/models/raw_message_delta_event.rb', line 62 required :stop_details, -> { Anthropic::RefusalStopDetails }, nil?: true |
#stop_reason ⇒ Symbol, ...
67 |
# File 'lib/anthropic/models/raw_message_delta_event.rb', line 67 required :stop_reason, enum: -> { Anthropic::StopReason }, nil?: true |
#stop_sequence ⇒ String?
72 |
# File 'lib/anthropic/models/raw_message_delta_event.rb', line 72 required :stop_sequence, String, nil?: true |
Instance Method Details
#to_hash ⇒ { container: Anthropic::Container?, stop_details: Anthropic::RefusalStopDetails?, stop_reason: Anthropic::Models::stop_reason?, stop_sequence: String? }
53 54 55 56 57 58 |
# File 'sig/anthropic/models/raw_message_delta_event.rbs', line 53
def to_hash: -> {
container: Anthropic::Container?,
stop_details: Anthropic::RefusalStopDetails?,
stop_reason: Anthropic::Models::stop_reason?,
stop_sequence: String?
}
|