Class: Cadenya::Models::Objectives::SetToolCallContentRequestContentBlockText

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/objectives/set_tool_call_content_request_content_block_text.rb,
sig/cadenya/models/objectives/set_tool_call_content_request_content_block_text.rbs

Defined Under Namespace

Modules: Type

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(text:, type:) ⇒ Object



# File 'lib/cadenya/models/objectives/set_tool_call_content_request_content_block_text.rb', line 17

Instance Attribute Details

#textCadenya::Models::Objectives::SetToolCallContentRequestTextBlock

Parameters:

  • value (Cadenya::Objectives::SetToolCallContentRequestTextBlock)

Returns:



10
# File 'lib/cadenya/models/objectives/set_tool_call_content_request_content_block_text.rb', line 10

required :text, -> { Cadenya::Objectives::SetToolCallContentRequestTextBlock }

#typeSymbol, Cadenya::Models::Objectives::SetToolCallContentRequestContentBlockText::Type

Parameters:

  • value (Cadenya::Models::Objectives::SetToolCallContentRequestContentBlockText::type_)

Returns:



15
# File 'lib/cadenya/models/objectives/set_tool_call_content_request_content_block_text.rb', line 15

required :type, enum: -> { Cadenya::Objectives::SetToolCallContentRequestContentBlockText::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


20
# File 'sig/cadenya/models/objectives/set_tool_call_content_request_content_block_text.rbs', line 20

def to_hash: -> {