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

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

Defined Under Namespace

Modules: Condition, Target

Instance Attribute Summary collapse

Class Method 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(type: :default) ⇒ Object

Fallback edge condition: fires only when no other edge’s condition is true.

Evaluated after every conditioned (‘llm` / `expression`) edge regardless of declaration order, so it routes the flow whenever none of the node’s other outgoing edges match. Valid only on edges leaving a ‘tool` or `speak` node, where the deterministic step auto-advances and must always have somewhere to go. A tool/speak node with any outgoing edge is required to carry exactly one `default` edge so it never dead-ends; a tool/speak node with no outgoing edges is a valid terminal step. Carries no parameters.

Parameters:

  • type (Symbol, :default) (defaults to: :default)


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

Instance Attribute Details

#conditionTelnyx::Models::AI::AssistantUpdateParams::ConversationFlow::Edge::Condition::Llm, ...

Condition that gates the transition. Discriminated by ‘type`: `llm`, `expression`.



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

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

#idString

Caller-supplied unique identifier for this edge within the flow.

Returns:

  • (String)


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

required :id, String

#start_node_idString

ID of the node this edge transitions away from.

Returns:

  • (String)


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

required :start_node_id, String

#targetTelnyx::Models::AI::AssistantUpdateParams::ConversationFlow::Edge::Target::Node, Telnyx::Models::AI::AssistantUpdateParams::ConversationFlow::Edge::Target::Assistant

Destination of the transition. Discriminated by ‘type`: `node` (jump to another node in this flow) or `assistant` (hand off to a different assistant).



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

required :target, union: -> { Telnyx::AI::AssistantUpdateParams::ConversationFlow::Edge::Target }