Widgets/Chat/agent_run_view library

Classes

AgentApprovalNeeded
The loop waits until the user approves or denies this call.
AgentBudget
What a run may still spend after a step.
AgentCallView
One tool call as the widgets show it.
AgentDone
The run ended.
AgentEvent
One event of the family's agent loop; OxidANT emits these and an app maps its bridge types onto them.
AgentFailed
The run broke off with an error.
AgentFailureLine
The error that broke the run off.
AgentFinishLine
How the run ended.
AgentPiece
A piece of the model's text.
AgentRunView
A run of an AgentSession: it folds the events and sends the user's approvals, denials and stop back.
AgentSession
One running agent loop: its events, and the answers that go back to it.
AgentStep
A new step begins; index counts from zero.
AgentStepList
The steps of a run with their text and tool calls, a Stop button while it runs and how it ended.
AgentStepTile
One step: its number and remaining budget, the model's text, then its tool calls.
AgentStepView
One step: its remaining budget, the model's text and its tool calls.
AgentToolCall
The model calls a tool; needsApproval marks an act tool, which waits for AgentApprovalNeeded.
AgentToolCallCard
A tool call: its name, read or act badge, arguments, Approve and Deny while it waits, then its result or error.
AgentToolErrorLine
The error of one failed tool.
AgentToolResult
What a tool returned, or why it failed.
AgentToolResultView
A tool's result, indented when it is JSON.
AgentTranscript
A run folded from its events; plain Dart, so the fold is testable without a widget.

Enums

AgentCallStatus
Where one tool call stands.
AgentFinish
Why an agent run ended, as the loop reports it.

Functions

prettyJson(String source) → String
Indents valid JSON; anything else is shown as it came.