Class: Telnyx::Models::AI::ConversationAddMessageParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/telnyx/models/ai/conversation_add_message_params.rb

Overview

Defined Under Namespace

Modules: Metadata, ToolChoice

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Method Summary

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Telnyx::Internal::Type::BaseModel

Instance Attribute Details

#contentString?

Returns:

  • (String, nil)


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

optional :content, String

#conversation_idString

The ID of the conversation

Returns:

  • (String)


15
# File 'lib/telnyx/models/ai/conversation_add_message_params.rb', line 15

required :conversation_id, String

#metadataHash{Symbol=>String, Integer, Boolean, Array<String, Integer, Boolean>}?

Returns:

  • (Hash{Symbol=>String, Integer, Boolean, Array<String, Integer, Boolean>}, nil)


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

optional :metadata,
-> { Telnyx::Internal::Type::HashOf[union: Telnyx::AI::ConversationAddMessageParams::Metadata] }

#nameString?

Returns:

  • (String, nil)


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

optional :name, String

#roleString

Returns:

  • (String)


20
# File 'lib/telnyx/models/ai/conversation_add_message_params.rb', line 20

required :role, String

#sent_atTime?

Returns:

  • (Time, nil)


41
# File 'lib/telnyx/models/ai/conversation_add_message_params.rb', line 41

optional :sent_at, Time

#tool_call_idString?

Returns:

  • (String, nil)


46
# File 'lib/telnyx/models/ai/conversation_add_message_params.rb', line 46

optional :tool_call_id, String

#tool_callsArray<Hash{Symbol=>Object}>?

Returns:

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


51
52
# File 'lib/telnyx/models/ai/conversation_add_message_params.rb', line 51

optional :tool_calls,
Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]]

#tool_choiceString, ...

Returns:

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


57
# File 'lib/telnyx/models/ai/conversation_add_message_params.rb', line 57

optional :tool_choice, union: -> { Telnyx::AI::ConversationAddMessageParams::ToolChoice }