Class: LangGraphRB::Runner::ExecutionFrame

Inherits:
Object
  • Object
show all
Defined in:
lib/langgraph_rb/runner.rb

Overview

Execution frame for tracking active node executions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node_name, state, step, from_node: nil) ⇒ ExecutionFrame

Returns a new instance of ExecutionFrame.



429
430
431
432
433
434
# File 'lib/langgraph_rb/runner.rb', line 429

def initialize(node_name, state, step, from_node: nil)
  @node_name = node_name.to_sym
  @state = state
  @step = step
  @from_node = from_node
end

Instance Attribute Details

#from_nodeObject (readonly)

Returns the value of attribute from_node.



427
428
429
# File 'lib/langgraph_rb/runner.rb', line 427

def from_node
  @from_node
end

#node_nameObject (readonly)

Returns the value of attribute node_name.



427
428
429
# File 'lib/langgraph_rb/runner.rb', line 427

def node_name
  @node_name
end

#stateObject (readonly)

Returns the value of attribute state.



427
428
429
# File 'lib/langgraph_rb/runner.rb', line 427

def state
  @state
end

#stepObject (readonly)

Returns the value of attribute step.



427
428
429
# File 'lib/langgraph_rb/runner.rb', line 427

def step
  @step
end

Instance Method Details

#to_sObject



436
437
438
# File 'lib/langgraph_rb/runner.rb', line 436

def to_s
  "#<ExecutionFrame node: #{@node_name}, step: #{@step}, from: #{@from_node}>"
end