Class: Anthropic::Models::Beta::BetaRawContentBlockStartEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_raw_content_block_start_event.rb

Defined Under Namespace

Modules: ContentBlock

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(content_block:, index:, type: :content_block_start) ⇒ void



# File 'lib/anthropic/models/beta/beta_raw_content_block_start_event.rb', line 23


Instance Attribute Details

#content_blockAnthropic::Models::Beta::BetaTextBlock, ...

Response model for a file uploaded to the container.



11
# File 'lib/anthropic/models/beta/beta_raw_content_block_start_event.rb', line 11

required :content_block, union: -> { Anthropic::Beta::BetaRawContentBlockStartEvent::ContentBlock }

#indexInteger

Returns:

  • (Integer)


16
# File 'lib/anthropic/models/beta/beta_raw_content_block_start_event.rb', line 16

required :index, Integer

#typeSymbol, :content_block_start

Returns:

  • (Symbol, :content_block_start)


21
# File 'lib/anthropic/models/beta/beta_raw_content_block_start_event.rb', line 21

required :type, const: :content_block_start