Class: Telnyx::Models::AI::AssistantUpdateParams::ConversationFlow::Edge::Condition::Expression

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

Defined Under Namespace

Modules: Expression

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(expression:, type: :expression) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::AI::AssistantUpdateParams::ConversationFlow::Edge::Condition::Expression for more details.

Edge condition evaluated as a deterministic expression AST.

The expression is computed against runtime dynamic variables and must evaluate to a boolean. Prefer this over ‘LLMCondition` when the rule is a clean function of known variables — it’s cheaper and predictable.



# File 'lib/telnyx/models/ai/assistant_update_params.rb', line 780

Instance Attribute Details

#expressionObject, ...

A node in a deterministic expression AST. Exactly one variant is selected by the ‘type` discriminator. Terminal variants (`number_literal`, `string_literal`, `bool_literal`, `variable`) bottom out the recursion; `arithmetic`, `bool_op`, and `comparison` nest further sub-expressions.

Extracted into a single named schema so the recursive union is defined once (was previously inlined at every operand site).



772
773
# File 'lib/telnyx/models/ai/assistant_update_params.rb', line 772

required :expression,
union: -> { Telnyx::AI::AssistantUpdateParams::ConversationFlow::Edge::Condition::Expression::Expression }

#typeSymbol, :expression

Returns:

  • (Symbol, :expression)


778
# File 'lib/telnyx/models/ai/assistant_update_params.rb', line 778

required :type, const: :expression