AnsiAgentStyle class

ANSI-colored AgentStyle for terminals.

planning = cyan, executing = green, command = yellow, prompt = magenta, blocked = red, stats = gray. Pure string manipulation (no dart:io), so it remains browser-safe; the host decides whether to use it.

Inheritance

Constructors

AnsiAgentStyle()
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).
override
command(String text) String
A command that is being executed (e.g. the $ apt-get install … echo).
override
executing(String text) String
Executor-phase prose: carrying out an approved/decided action.
override
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.
override
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.
override
prompt(String text) String
An interactive prompt asking the user to confirm or approve.
override
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.
override
rule(String text) String
The horizontal rule that frames the start and end of an agent interaction.
override
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.
override
toString() String
A string representation of this object.
inherited

Operators

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