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

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

Defined Under Namespace

Modules: Type Classes: Position

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(x:, y_:) ⇒ Object

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.

Parameters:

  • x (Float)

    Horizontal coordinate in the authoring canvas.

  • y_ (Float)

    Vertical coordinate in the authoring canvas.



# File 'lib/telnyx/models/ai/assistant_create_params.rb', line 684

Instance Attribute Details

#idString

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

Returns:

  • (String)


651
# File 'lib/telnyx/models/ai/assistant_create_params.rb', line 651

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)


662
# File 'lib/telnyx/models/ai/assistant_create_params.rb', line 662

required :message, String

#nameString?

Optional human-readable label, displayed in authoring UIs.

Returns:

  • (String, nil)


668
# File 'lib/telnyx/models/ai/assistant_create_params.rb', line 668

optional :name, String

#positionTelnyx::Models::AI::AssistantCreateParams::ConversationFlow::Node::Speak::Position?

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.



676
# File 'lib/telnyx/models/ai/assistant_create_params.rb', line 676

optional :position, -> { Telnyx::AI::AssistantCreateParams::ConversationFlow::Node::Speak::Position }

#typeSymbol, ...

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



682
# File 'lib/telnyx/models/ai/assistant_create_params.rb', line 682

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