Class: LangGraphRB::Interrupt
- Inherits:
-
Object
- Object
- LangGraphRB::Interrupt
- Defined in:
- lib/langgraph_rb/command.rb
Overview
Interrupt execution and wait for human input
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message: "Human input required", data: {}) ⇒ Interrupt
constructor
A new instance of Interrupt.
- #inspect ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(message: "Human input required", data: {}) ⇒ Interrupt
Returns a new instance of Interrupt.
84 85 86 87 |
# File 'lib/langgraph_rb/command.rb', line 84 def initialize(message: "Human input required", data: {}) @message = @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
82 83 84 |
# File 'lib/langgraph_rb/command.rb', line 82 def data @data end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
82 83 84 |
# File 'lib/langgraph_rb/command.rb', line 82 def @message end |
Instance Method Details
#inspect ⇒ Object
93 94 95 |
# File 'lib/langgraph_rb/command.rb', line 93 def inspect to_s end |
#to_s ⇒ Object
89 90 91 |
# File 'lib/langgraph_rb/command.rb', line 89 def to_s "#<Interrupt: #{@message}>" end |