Class: Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow

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

Overview

See Also:

Defined Under Namespace

Modules: Node Classes: Edge

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(nodes:, start_node_id:, edges: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow for more details.

Conversation flow as supplied by API clients (create / update).

A directed graph of ‘FlowNodeReq` connected by `FlowEdge`s. Validation enforces unique node/edge IDs, that `start_node_id` references a real node, and that every edge’s endpoints reference real nodes.

Parameters:



# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 302

Instance Attribute Details

#edgesArray<Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Edge>?

Directed transitions between nodes. May be empty for a single-node flow.



299
300
# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 299

optional :edges,
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::Assistants::UpdateAssistant::ConversationFlow::Edge] }

#nodesArray<Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Node::Prompt, Telnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Node::Tool>

All nodes in the flow. Must contain ‘start_node_id`. Each node is a prompt node (`type: prompt`) or a tool node (`type: tool`).



286
287
# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 286

required :nodes,
-> { Telnyx::Internal::Type::ArrayOf[union: Telnyx::AI::Assistants::UpdateAssistant::ConversationFlow::Node] }

#start_node_idString

ID of the node where the conversation begins.

Returns:

  • (String)


293
# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 293

required :start_node_id, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/ai/assistants/update_assistant.rb', line 639