Class: Telnyx::Models::Calls::ActionStartAIAssistantParams::MessageHistory::User

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/calls/action_start_ai_assistant_params.rb

Instance Attribute Summary collapse

Method Summary

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

The contents of the user message.

Returns:

  • (String)


173
# File 'lib/telnyx/models/calls/action_start_ai_assistant_params.rb', line 173

required :content, String

#metadataHash{Symbol=>Object}?

Metadata to add to the message

Returns:

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


185
# File 'lib/telnyx/models/calls/action_start_ai_assistant_params.rb', line 185

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

#roleSymbol, :user

The role of the messages author, in this case ‘user`.

Returns:

  • (Symbol, :user)


179
# File 'lib/telnyx/models/calls/action_start_ai_assistant_params.rb', line 179

required :role, const: :user