Class: Telnyx::Models::AI::InferenceEmbedding::ConversationFlow

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/inference_embedding.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

Conversation flow as returned by the API.

Parameters:



# File 'lib/telnyx/models/ai/inference_embedding.rb', line 334

Instance Attribute Details

#edgesArray<Telnyx::Models::AI::InferenceEmbedding::ConversationFlow::Edge>?

Directed transitions between nodes.



331
332
# File 'lib/telnyx/models/ai/inference_embedding.rb', line 331

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

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

All nodes in the flow.



318
319
# File 'lib/telnyx/models/ai/inference_embedding.rb', line 318

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

#start_node_idString

ID of the node where the conversation begins.

Returns:

  • (String)


325
# File 'lib/telnyx/models/ai/inference_embedding.rb', line 325

required :start_node_id, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/ai/inference_embedding.rb', line 661