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

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

Overview

See Also:

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

Returns:

  • (String)


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

required :content_type, String

#requestHash{Symbol=>Object}

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

Returns:

  • (String)


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

required :response, String

#status_codeInteger

Returns:

  • (Integer)


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

required :status_code, Integer

#successBoolean

Returns:

  • (Boolean)


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

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