Class: Telnyx::Models::AI::ChatCompletionRequest::Tool::Function::Function

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/chat_completion_request.rb,
sig/telnyx/models/ai/chat_completion_request.rbs

Overview

See Also:

  • Telnyx::Models::AI::ChatCompletionRequest::Tool::Function#function

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

#initializeObject



388
# File 'sig/telnyx/models/ai/chat_completion_request.rbs', line 388

def initialize: (

Instance Attribute Details

#descriptionString?

Parameters:

  • (String)

Returns:

  • (String, nil)


415
# File 'lib/telnyx/models/ai/chat_completion_request.rb', line 415

optional :description, String

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


410
# File 'lib/telnyx/models/ai/chat_completion_request.rb', line 410

required :name, String

#parametersHash{Symbol=>Object}?

Parameters:

  • (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object}, nil)


420
# File 'lib/telnyx/models/ai/chat_completion_request.rb', line 420

optional :parameters, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

Instance Method Details

#to_hash{

Returns:

  • ({)


394
# File 'sig/telnyx/models/ai/chat_completion_request.rbs', line 394

def to_hash: -> {