Class: SwarmSDK::Workflow::Executor::ExecutionState

Inherits:
Struct
  • Object
show all
Defined in:
lib/swarm_sdk/workflow/executor.rb

Overview

Execution state container

Holds mutable state during workflow execution to avoid instance variable pollution.

Instance Attribute Summary collapse

Instance Attribute Details

#current_inputObject

Returns the value of attribute current_input

Returns:

  • (Object)

    the current value of current_input



17
18
19
# File 'lib/swarm_sdk/workflow/executor.rb', line 17

def current_input
  @current_input
end

#execution_indexObject

Returns the value of attribute execution_index

Returns:

  • (Object)

    the current value of execution_index



17
18
19
# File 'lib/swarm_sdk/workflow/executor.rb', line 17

def execution_index
  @execution_index
end

#last_resultObject

Returns the value of attribute last_result

Returns:

  • (Object)

    the current value of last_result



17
18
19
# File 'lib/swarm_sdk/workflow/executor.rb', line 17

def last_result
  @last_result
end

#logsObject

Returns the value of attribute logs

Returns:

  • (Object)

    the current value of logs



17
18
19
# File 'lib/swarm_sdk/workflow/executor.rb', line 17

def logs
  @logs
end

#resultsObject

Returns the value of attribute results

Returns:

  • (Object)

    the current value of results



17
18
19
# File 'lib/swarm_sdk/workflow/executor.rb', line 17

def results
  @results
end