class LittleGhost::RunResult
RunResult gives callers one final view of an Assembly invocation. It includes the response, usage, updated conversation, state, coordination steps, and any validated structured value.
Use output when the caller should accept either structured or textual agents. It returns the validated structured value when present and text otherwise.
Attributes
The final assistant Message, or nil when no message was produced.
The complete, updated conversation.
The application state at the end of the invocation.
Immutable Assembly::Step records for composite invocations.
The normalized reason the terminal model stream stopped.
The validated StructuredResult, or nil for a textual result.
Public Class Methods
Source
# File lib/little_ghost/run_result.rb, line 64
Creates the terminal value for one Assembly invocation.
Public Instance Methods
Source
# File lib/little_ghost/run_result.rb, line 108
Uses the structured value when present and otherwise text.
Source
# File lib/little_ghost/run_result.rb, line 104
Indicates whether the invocation produced a validated structured result.
Source
# File lib/little_ghost/run_result.rb, line 100
Reads the final message text, or an empty string when no message exists.
Source
# File lib/little_ghost/run_result.rb, line 112
Returns an Assembly::Trajectory for querying immutable coordination steps.