AiAction class

The command the assistant decided to run.

The model never emits a raw shell string — it fills in this constrained shape, which the CLI then renders and (with permission) executes. Keeping the surface this narrow is what makes auto mode defensible: the assistant can only reach commands that already exist, with arguments the parser validates.

Constructors

AiAction({required String command, required String reason, String? operation, bool dryRun = false})
Creates an action.
const
AiAction.fromJson(Map<String, dynamic> json)
Builds an action from the model's tool arguments.
factory

Properties

command String
Which sub-command to run: run, validate, or doctor.
final
commandLine String
How the command would be typed by hand.
no setter
dryRun bool
Whether to pass --dry-run.
final
hashCode int
The hash code for this object.
no setterinherited
operation String?
Operation key for runandroid or android.build. Null runs all.
final
reason String
One sentence explaining the choice, shown to the user before executing.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toArguments() List<String>
The argument vector to hand back to the CLI runner.
toString() String
A string representation of this object.
override

Operators

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