Class: Telnyx::Models::AI::ToolCreateResponse

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

Overview

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(id:, tool_definition:, type:, created_at: nil, display_name: nil, timeout_ms: nil) ⇒ Object

Parameters:

  • id (String)
  • tool_definition (Hash{Symbol=>Object})
  • type (String)
  • created_at (String) (defaults to: nil)
  • display_name (String) (defaults to: nil)
  • timeout_ms (Integer) (defaults to: nil)


# File 'lib/telnyx/models/ai/tool_create_response.rb', line 38

Instance Attribute Details

#created_atString?

Returns:

  • (String, nil)


26
# File 'lib/telnyx/models/ai/tool_create_response.rb', line 26

optional :created_at, String

#display_nameString?

Returns:

  • (String, nil)


31
# File 'lib/telnyx/models/ai/tool_create_response.rb', line 31

optional :display_name, String

#idString

Returns:

  • (String)


11
# File 'lib/telnyx/models/ai/tool_create_response.rb', line 11

required :id, String

#timeout_msInteger?

Returns:

  • (Integer, nil)


36
# File 'lib/telnyx/models/ai/tool_create_response.rb', line 36

optional :timeout_ms, Integer

#tool_definitionHash{Symbol=>Object}

Returns:

  • (Hash{Symbol=>Object})


16
# File 'lib/telnyx/models/ai/tool_create_response.rb', line 16

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

#typeString

Returns:

  • (String)


21
# File 'lib/telnyx/models/ai/tool_create_response.rb', line 21

required :type, String