class LittleGhost::Workflow::Invocation
Hold one lazy agent 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 102 def output @intermediate = true each {} unless consumed? 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.