Class: Telnyx::Models::AI::InferenceEmbedding::ConversationFlow::Node::Speak

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

Defined Under Namespace

Modules: Type

Instance Attribute 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(id:, message:, name: nil, position: nil, type: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::AI::InferenceEmbedding::ConversationFlow::Node::Speak for more details.

A standalone scripted-message step in a flow, as returned by the API.

Parameters:

  • id (String)

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

  • message (String)

    Message delivered to the user verbatim when the flow reaches this node. No LLM t

  • name (String) (defaults to: nil)

    Optional human-readable label, displayed in authoring UIs.

  • position (Telnyx::Models::AI::NodePosition) (defaults to: nil)

    Optional canvas coordinates used by authoring UIs to lay out the graph. Ignored

  • type (Symbol, Telnyx::Models::AI::InferenceEmbedding::ConversationFlow::Node::Speak::Type) (defaults to: nil)

    Node kind discriminator. Always ‘speak` for a speak node.



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

Instance Attribute Details

#idString

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

Returns:

  • (String)


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

required :id, String

#messageString

Message delivered to the user verbatim when the flow reaches this node. No LLM turn — the text is spoken/sent exactly as written. ‘{variable}` placeholders are interpolated from the conversation’s dynamic variables; an unresolved placeholder renders as an empty string. After delivering, the flow routes via the node’s outgoing ‘llm` / `expression` edges (commonly a single unconditional edge).

Returns:

  • (String)


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

required :message, String

#nameString?

Optional human-readable label, displayed in authoring UIs.

Returns:

  • (String, nil)


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

optional :name, String

#positionTelnyx::Models::AI::NodePosition?

Optional canvas coordinates used by authoring UIs to lay out the graph. Ignored by the runtime; round-trips so frontends can persist graph layout across reloads.



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

optional :position, -> { Telnyx::AI::NodePosition }

#typeSymbol, ...

Node kind discriminator. Always ‘speak` for a speak node.



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

optional :type, enum: -> { Telnyx::AI::InferenceEmbedding::ConversationFlow::Node::Speak::Type }