Class: Telnyx::Models::AI::Assistants::ToolTestResponse::Data

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

Overview

See Also:

  • Telnyx::Models::AI::Assistants::ToolTestResponse#data

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_type:, request:, response:, status_code:, success:) ⇒ Object

Response model for webhook tool test results

Parameters:

  • content_type (String)
  • request (Hash{Symbol=>Object})
  • response (String)
  • status_code (Integer)
  • success (Boolean)


# File 'lib/telnyx/models/ai/assistants/tool_test_response.rb', line 47

Instance Attribute Details

#content_typeString

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/telnyx/models/ai/assistants/tool_test_response.rb', line 25

required :content_type, String

#requestHash{Symbol=>Object}

Parameters:

  • value (::Hash[Symbol, top])

Returns:

  • (Hash{Symbol=>Object})


30
# File 'lib/telnyx/models/ai/assistants/tool_test_response.rb', line 30

required :request, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]

#responseString

Parameters:

  • value (String)

Returns:

  • (String)


35
# File 'lib/telnyx/models/ai/assistants/tool_test_response.rb', line 35

required :response, String

#status_codeInteger

Parameters:

  • value (Integer)

Returns:

  • (Integer)


40
# File 'lib/telnyx/models/ai/assistants/tool_test_response.rb', line 40

required :status_code, Integer

#successBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


45
# File 'lib/telnyx/models/ai/assistants/tool_test_response.rb', line 45

required :success, Telnyx::Internal::Type::Boolean

Instance Method Details

#to_hash{

Returns:

  • ({)


47
# File 'sig/telnyx/models/ai/assistants/tool_test_response.rbs', line 47

def to_hash: -> {