ReferenceSolution class
Anthropic Step 2: a known working solution that passes all graders. Useful for proving a task is solvable and that graders are configured correctly.
Constructors
-
ReferenceSolution({Map<
String, dynamic> ? expectedOutcome, Transcript? sampleTranscript, required ReferenceSolutionSource source}) -
const
-
ReferenceSolution.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
expectedOutcome
→ Map<
String, dynamic> ? -
Expected environment state. Schema mirrors Outcome.environmentState.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleTranscript → Transcript?
-
Optional sample transcript captured from a known-good run.
final
- source → ReferenceSolutionSource
-
Provenance of this reference solution.
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