AiPlanStep class

A single executable step in an AI plan.

Steps with toolName call a registered AiTool. Steps without toolName record their arguments directly into run state under id.

Constructors

AiPlanStep({required String id, required String type, required String description, String? toolName, Map<String, dynamic> arguments = const {}})
const

Properties

arguments Map<String, dynamic>
Structured arguments passed to the tool or recorded into state.
final
description String
Human-readable step description for traces and debugging.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Stable step id used as the key in AiRun.state.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toolName String?
Optional tool name to invoke for this step.
final
type String
Application-defined step type, such as tool, record, or review.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Serializes the step into a persistence-friendly map.
toString() String
A string representation of this object.
inherited

Operators

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