AgentStyle class

Maps the agent's output categories to display styling.

The base class is a no-op (returns text unchanged), so the agent core stays presentation-agnostic and browser-safe. The native CLI injects AnsiAgentStyle when colors are enabled; a web client can supply its own.

Implementers

Constructors

AgentStyle()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

blocked(String text) String
A blocked/refused notice (e.g. a command_shield denial).
command(String text) String
A command that is being executed (e.g. the $ apt-get install … echo).
executing(String text) String
Executor-phase prose: carrying out an approved/decided action.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
planning(String text) String
Planner-phase prose: investigation, reasoning, plan presentation.
planRule(String text) String
The separator rule shown just before a plan — a distinct char and color from rule — that sets the plan apart from the preceding investigation.
prompt(String text) String
An interactive prompt asking the user to confirm or approve.
proposedCommand(String text) String
A command being proposed for confirmation (the Run: <cmd> line) — a distinct color from an executing command so the two read differently.
rule(String text) String
The horizontal rule that frames the start and end of an agent interaction.
stats(String text) String
The token-usage statistics line shown at the end of an interaction (tokens used, generation speed, request count, duration) — secondary information, rendered muted so it doesn't compete with the agent's prose.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited