class LittleGhost::Workflow::Invocation
Hold one lazy Assembly call inside a workflow composition. Workflow implementations normally use only its output method or return the object as the final invocation.
Public Instance Methods
Source
# File lib/little_ghost/workflow.rb, line 106 def output @intermediate = true unless consumed? each do |event| @owner.send(:emit_workflow_event, event) if event.type.to_s.start_with?("assembly_") end @owner.send(:record_workflow_steps, @steps) end result&.output end
Consumes this invocation when necessary and returns RunResult#output.
A structured agent returns its validated value; an ordinary agent returns response text. Intermediate usage is recorded for the workflow total.