class LittleGhost::Workflow::Invocation
Holds one lazy Assembly call inside a workflow composition. Read result for the child’s RunResult or output for its text or structured value. Either accessor runs the child once and reuses the result on later reads. Return this object from perform to select its result as the answer. Agent progress streams live independently of result access or selection.
Public Instance Methods
Source
# File lib/little_ghost/workflow.rb, line 131 def output = result.output
Returns the completed child’s text or structured value through RunResult#output. Runs the child when necessary, with the same progress behavior as result.
Source
# File lib/little_ghost/workflow.rb, line 117 def result unless consumed? each do |event| @owner.send(:emit_workflow_event, event) if event.type.to_s.start_with?("assembly_") end end raise ProtocolError, "workflow invocation has no completed result" unless @result @owner.send(:record_workflow_steps, @steps) @result end