Class: Telnyx::Models::AI::Assistants::RuleInput
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::Assistants::RuleInput
- Defined in:
- lib/telnyx/models/ai/assistants/rule_input.rb
Instance Attribute Summary collapse
- #match ⇒ Array<Telnyx::Models::AI::Assistants::Clause>?
-
#serve ⇒ Telnyx::Models::AI::Assistants::Serve
What a rule serves when matched.
Instance Method Summary collapse
-
#initialize(serve:, match: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see RuleInput for more details.
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).
|
|
# File 'lib/telnyx/models/ai/assistants/rule_input.rb', line 25
|
Instance Attribute Details
#match ⇒ Array<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] } |
#serve ⇒ Telnyx::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
18 |
# File 'lib/telnyx/models/ai/assistants/rule_input.rb', line 18 required :serve, -> { Telnyx::AI::Assistants::Serve } |