ActionRecord class

Constructors

ActionRecord({String? args, int? createdAt, String? err, String? id, bool? ok, String? result, String? stepId, String? tool})
Returns a new ActionRecord instance.

Properties

args ↔ String?
Args is the JSON the tool was called with, recorded as TEXT exactly as sent — including whatever the AI drafted into it — so a run can be read back and reproduced. It is a string, not an object.
getter/setter pair
createdAt ↔ int?
CreatedAt is when the run was recorded, as Unix seconds. The ledger is read newest-first on this column.
getter/setter pair
err ↔ String?
Err is why the run failed, when it did. Empty on a successful run.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID identifies this one execution. The ledger is append-only, so an id is never reused and never updated.
getter/setter pair
ok ↔ bool?
OK is whether the tool ran to completion. It is the ledger's own verdict, not the tool's opinion of the outcome — a tool that succeeded at reporting bad news is ok.
getter/setter pair
result ↔ String?
Result is the tool's own answer, likewise recorded as JSON text. Present on a failed run too, where the tool answered but the answer was a refusal.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stepId ↔ String?
StepID is the checklist step the Business AI was acting on.
getter/setter pair
tool ↔ String?
Tool is the MCP tool that was dispatched, by name.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → ActionRecord?
Returns a new ActionRecord instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ActionRecord>
mapFromJson(dynamic json) → Map<String, ActionRecord>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ActionRecord>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.