Class: Telnyx::Models::AI::FlowEdge
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::FlowEdge
- Defined in:
- lib/telnyx/models/ai/flow_edge.rb,
sig/telnyx/models/ai/flow_edge.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#condition ⇒ Telnyx::Models::AI::FlowEdge::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::FlowEdge::Target::Node, Telnyx::Models::AI::FlowEdge::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.
- #to_hash ⇒ {
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/flow_edge.rb', line 33
|
Instance Attribute Details
#condition ⇒ Telnyx::Models::AI::FlowEdge::Condition::Llm, ...
Condition that gates the transition. Discriminated by type: llm,
expression.
18 |
# File 'lib/telnyx/models/ai/flow_edge.rb', line 18 required :condition, union: -> { Telnyx::AI::FlowEdge::Condition } |
#id ⇒ String
Caller-supplied unique identifier for this edge within the flow.
11 |
# File 'lib/telnyx/models/ai/flow_edge.rb', line 11 required :id, String |
#start_node_id ⇒ String
ID of the node this edge transitions away from.
24 |
# File 'lib/telnyx/models/ai/flow_edge.rb', line 24 required :start_node_id, String |
#target ⇒ Telnyx::Models::AI::FlowEdge::Target::Node, Telnyx::Models::AI::FlowEdge::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).
31 |
# File 'lib/telnyx/models/ai/flow_edge.rb', line 31 required :target, union: -> { Telnyx::AI::FlowEdge::Target } |
Class Method Details
.variants ⇒ Array(Telnyx::Models::AI::FlowEdge::Condition::Llm, Telnyx::Models::AI::FlowEdge::Condition::Expression, Telnyx::Models::AI::FlowEdge::Condition::Default)
|
|
# File 'lib/telnyx/models/ai/flow_edge.rb', line 159
|
Instance Method Details
#to_hash ⇒ {
28 |
# File 'sig/telnyx/models/ai/flow_edge.rbs', line 28
def to_hash: -> {
|