Class: Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge
- Defined in:
- lib/telnyx/models/ai/assistants/update_assistant.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#condition ⇒ Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge::Condition::Llm, ...
Condition that gates the transition.
-
#id ⇒ String
Caller-supplied unique identifier for this edge within the flow.
-
#start_node_id ⇒ String
ID of the node this edge transitions away from.
-
#target ⇒ Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge::Target::Node, Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge::Target::Assistant
Destination of the transition.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: :default) ⇒ Object
constructor
Fallback edge condition: fires only when no other edge’s condition is true.
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.
|
|
# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 782
|
Instance Attribute Details
#condition ⇒ Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge::Condition::Llm, ...
Condition that gates the transition. Discriminated by ‘type`: `llm`, `expression`.
766 767 |
# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 766 required :condition, union: -> { Telnyx::AI::Assistants::UpdateAssistant::ConversationFlow::Edge::Condition } |
#id ⇒ String
Caller-supplied unique identifier for this edge within the flow.
759 |
# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 759 required :id, String |
#start_node_id ⇒ String
ID of the node this edge transitions away from.
773 |
# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 773 required :start_node_id, String |
#target ⇒ Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge::Target::Node, Telnyx::Models::AI::Assistants::UpdateAssistant::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).
780 |
# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 780 required :target, union: -> { Telnyx::AI::Assistants::UpdateAssistant::ConversationFlow::Edge::Target } |
Class Method Details
.variants ⇒ Array(Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge::Condition::Llm, Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge::Condition::Expression, Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge::Condition::Default)
|
|
# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 1033
|