Class: Telnyx::Models::AI::Assistants::RuleInput

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

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(serve:, match: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::AI::Assistants::RuleInput for more details.

A targeting rule: match clauses (AND) gate serve.

An empty match is a catch-all (always fires).

Parameters:



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

Instance Attribute Details

#matchArray<Telnyx::Models::AI::Assistants::Clause>?



23
# File 'lib/telnyx/models/ai/assistants/rule_input.rb', line 23

optional :match, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::Assistants::Clause] }

#serveTelnyx::Models::AI::Assistants::Serve

What a rule serves when matched.

Exactly one of:

  • version_id — serve a specific version
  • rollout — weighted random across versions; weights must sum to less than 100, with the leftover routing to the main version

Parameters:

  • value (Telnyx::AI::Assistants::Serve)

Returns:



18
# File 'lib/telnyx/models/ai/assistants/rule_input.rb', line 18

required :serve, -> { Telnyx::AI::Assistants::Serve }

Instance Method Details

#to_hash{

Returns:

  • ({)


25
# File 'sig/telnyx/models/ai/assistants/rule_input.rbs', line 25

def to_hash: -> {