Class: Anthropic::Models::RawContentBlockStartEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::RawContentBlockStartEvent
- Defined in:
- lib/anthropic/models/raw_content_block_start_event.rb,
sig/anthropic/models/raw_content_block_start_event.rbs
Defined Under Namespace
Modules: ContentBlock
Constant Summary collapse
- Anthropic =
Instance Attribute Summary collapse
- #content_block ⇒ Anthropic::Models::TextBlock, ...
- #index ⇒ Integer
- #type ⇒ Symbol, :content_block_start
Instance Method Summary collapse
-
#initialize(content_block:, index:, type: :content_block_start) ⇒ RawContentBlockStartEvent
constructor
A new instance of RawContentBlockStartEvent.
- #to_hash ⇒ { content_block: Anthropic::Models::RawContentBlockStartEvent::content_block, index: Integer, type: :content_block_start }
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) ⇒ RawContentBlockStartEvent
Returns a new instance of RawContentBlockStartEvent.
|
|
# File 'lib/anthropic/models/raw_content_block_start_event.rb', line 21
|
Instance Attribute Details
#content_block ⇒ Anthropic::Models::TextBlock, ...
9 |
# File 'lib/anthropic/models/raw_content_block_start_event.rb', line 9 required :content_block, union: -> { Anthropic::RawContentBlockStartEvent::ContentBlock } |
#index ⇒ Integer
14 |
# File 'lib/anthropic/models/raw_content_block_start_event.rb', line 14 required :index, Integer |
#type ⇒ Symbol, :content_block_start
19 |
# File 'lib/anthropic/models/raw_content_block_start_event.rb', line 19 required :type, const: :content_block_start |
Instance Method Details
#to_hash ⇒ { content_block: Anthropic::Models::RawContentBlockStartEvent::content_block, index: Integer, type: :content_block_start }
23 24 25 26 27 |
# File 'sig/anthropic/models/raw_content_block_start_event.rbs', line 23
def to_hash: -> {
content_block: Anthropic::Models::RawContentBlockStartEvent::content_block,
index: Integer,
type: :content_block_start
}
|