Class: Anthropic::Models::RawMessageDeltaEvent::Delta

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/raw_message_delta_event.rb,
sig/anthropic/models/raw_message_delta_event.rbs

Overview

See Also:

  • Anthropic::Models::RawMessageDeltaEvent#delta

Instance Attribute Summary collapse

Instance Method Summary collapse

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:) ⇒ void

Some parameter documentations has been truncated, see Anthropic::Models::RawMessageDeltaEvent::Delta for more details.

Parameters:



# File 'lib/anthropic/models/raw_message_delta_event.rb', line 71

Instance Attribute Details

#containerAnthropic::Models::Container?

Information about the container used in the request (for the code execution tool)

Parameters:

Returns:



53
# File 'lib/anthropic/models/raw_message_delta_event.rb', line 53

required :container, -> { Anthropic::Container }, nil?: true

#stop_detailsAnthropic::Models::RefusalStopDetails?

Structured information about a refusal.

Parameters:

Returns:



59
# File 'lib/anthropic/models/raw_message_delta_event.rb', line 59

required :stop_details, -> { Anthropic::RefusalStopDetails }, nil?: true

#stop_reasonSymbol, ...

Parameters:

  • value (Anthropic::Models::stop_reason, nil)

Returns:



64
# File 'lib/anthropic/models/raw_message_delta_event.rb', line 64

required :stop_reason, enum: -> { Anthropic::StopReason }, nil?: true

#stop_sequenceString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


69
# File 'lib/anthropic/models/raw_message_delta_event.rb', line 69

required :stop_sequence, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


53
# File 'sig/anthropic/models/raw_message_delta_event.rbs', line 53

def to_hash: -> {