Class: LangGraphRB::MultiSend
- Inherits:
-
Object
- Object
- LangGraphRB::MultiSend
- Defined in:
- lib/langgraph_rb/command.rb
Overview
MultiSend creates multiple parallel execution branches
Instance Attribute Summary collapse
-
#sends ⇒ Object
readonly
Returns the value of attribute sends.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*sends) ⇒ MultiSend
constructor
A new instance of MultiSend.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(*sends) ⇒ MultiSend
Returns a new instance of MultiSend.
57 58 59 |
# File 'lib/langgraph_rb/command.rb', line 57 def initialize(*sends) @sends = sends.flatten end |
Instance Attribute Details
#sends ⇒ Object (readonly)
Returns the value of attribute sends.
55 56 57 |
# File 'lib/langgraph_rb/command.rb', line 55 def sends @sends end |
Class Method Details
Instance Method Details
#inspect ⇒ Object
75 76 77 |
# File 'lib/langgraph_rb/command.rb', line 75 def inspect to_s end |
#to_s ⇒ Object
71 72 73 |
# File 'lib/langgraph_rb/command.rb', line 71 def to_s "#<MultiSend #{@sends.map(&:to_s).join(', ')}>" end |