Class: Anthropic::Models::Beta::BetaTextBlock
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ void
22
|
# File 'sig/anthropic/models/beta/beta_text_block.rbs', line 22
def initialize: (
|
Instance Attribute Details
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited.
Citing a PDF results in page_location, plain text results in char_location,
and content document results in content_block_location.
15
16
17
|
# File 'lib/anthropic/models/beta/beta_text_block.rb', line 15
required :citations,
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaTextCitation] },
nil?: true
|
#text ⇒ String
22
|
# File 'lib/anthropic/models/beta/beta_text_block.rb', line 22
required :text, String
|
#type ⇒ Symbol, :text
35
|
# File 'lib/anthropic/models/beta/beta_text_block.rb', line 35
required :type, const: :text
|
Instance Method Details
#parsed ⇒ top
18
|
# File 'sig/anthropic/models/beta/beta_text_block.rbs', line 18
attr_accessor parsed: top
|
#parsed= ⇒ void
18
|
# File 'sig/anthropic/models/beta/beta_text_block.rbs', line 18
attr_accessor parsed: top
|
#to_hash ⇒ {
28
|
# File 'sig/anthropic/models/beta/beta_text_block.rbs', line 28
def to_hash: -> {
|