Finished
class Finished<TContext, TOutput>(val output: TOutput?, val totalSteps: Int, val usage: Usage, val pendingApprovals: List<PendingApproval> = emptyList(), val messages: List<ModelMessage> = emptyList(), val experimentalContext: TContext? = null) : AgentEvent(source)
Generation finished. output is the typed agent output (was Any?); experimentalContext is the typed context after any prepareStep override (was Any?). messages is the final accumulated message list, for resuming after a tool-approval pause without re-walking the events.
Since
0.3.0-beta01
Constructors
Link copied to clipboard
constructor(output: TOutput?, totalSteps: Int, usage: Usage, pendingApprovals: List<PendingApproval> = emptyList(), messages: List<ModelMessage> = emptyList(), experimentalContext: TContext? = null)