Class WorkflowRunResult

java.lang.Object
com.agentforge4j.testkit.capture.WorkflowRunResult

public final class WorkflowRunResult extends Object
The outcome of one harnessed run: the run id, a defensive snapshot of the final WorkflowState, and the CaptureBundle of observed effects. This is the value the assertion layer projects its verbs over.
  • Constructor Details

    • WorkflowRunResult

      public WorkflowRunResult(String runId, WorkflowState finalState, CaptureBundle captures)
      Creates a run result.
      Parameters:
      runId - the run id; must not be blank
      finalState - a snapshot of the final state; must not be null
      captures - the captured effects; must not be null
  • Method Details

    • runId

      public String runId()
      Returns:
      the run id
    • finalState

      public WorkflowState finalState()
      Returns:
      a snapshot of the final run state
    • captures

      public CaptureBundle captures()
      Returns:
      the captured effects