Outcome class

Anthropic: the final state of the environment at the end of a trial.

IMPORTANT: this is intentionally separate from a Transcript. The transcript is "what the agent did/said"; the outcome is "what state the environment is in afterwards". Graders should default to inspecting the outcome (Anthropic Step 5: "grade what the agent produced, not the path it took").

Constructors

Outcome({required Map<String, dynamic> environmentState, WorkspaceDiff? workspaceDiff})
const
Outcome.fromJson(Map<String, dynamic> json)
factory

Properties

environmentState Map<String, dynamic>
Application-defined environment state. Schema is decided by the application's outcome extractor.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
workspaceDiff WorkspaceDiff?
Optional structural diff of a workspace. Many graders need this.
final

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.
inherited

Operators

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