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

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/assistants/update_assistant.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/assistants/update_assistant.rb', line 585

Instance Attribute Details

#idString

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

Returns:

  • (String)


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

required :id, String

#nameString?

Optional human-readable label, displayed in authoring UIs.

Returns:

  • (String, nil)


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

optional :name, String

#positionTelnyx::Models::AI::Assistants::UpdateAssistant::ConversationFlow::Node::Tool::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.



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

optional :position, -> { Telnyx::AI::Assistants::UpdateAssistant::ConversationFlow::Node::Tool::Position }

#shared_tool_idString

ID of the single shared (org-level) tool this node executes. When the flow reaches this node the tool runs as a deliberate step (no LLM turn); its outgoing ‘tool_result` edges then route on the outcome. Arguments are filled from the conversation’s dynamic variables by name — a dynamic variable whose name matches one of the tool’s parameters supplies that argument. Cross-validated against the org’s shared tools on write.

Returns:

  • (String)


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

required :shared_tool_id, String

#typeSymbol, ...

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



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

optional :type, enum: -> { Telnyx::AI::Assistants::UpdateAssistant::ConversationFlow::Node::Tool::Type }