class LittleGhost::RunResult
RunResult gives callers one final view of an agent or workflow invocation. It includes the response, usage, updated conversation, state, 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.
The normalized reason the terminal model stream stopped.
The validated StructuredResult, or nil for a textual result.
Public Class Methods
# File lib/little_ghost/run_result.rb, line 68
Creates the terminal value for one agent or workflow 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.