Skip to content

Commit 70c5e5f

Browse files
committed
clarify reference solution/gold patch terminology and validation strategy
1 parent 543a90a commit 70c5e5f

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/runloop_api_client/sdk/async_scenario_builder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,10 @@ def with_metadata(self, metadata: Dict[str, str]) -> Self:
343343
return self
344344

345345
def with_reference_output(self, output: str) -> Self:
346-
"""Set the reference output/solution for validation.
346+
"""Set the reference solution or gold patch for validation.
347+
After application, the scorer is expected to return a score of 1.0.
347348
348-
:param output: Reference output (e.g., git diff)
349+
:param output: Reference solution or gold patch (e.g., git diff)
349350
:type output: str
350351
:return: Self for method chaining
351352
:rtype: Self
@@ -376,7 +377,7 @@ def with_required_secrets(self, secrets: List[str]) -> Self:
376377
return self
377378

378379
def with_validation_type(self, validation_type: Literal["UNSPECIFIED", "FORWARD", "REVERSE", "EVALUATION"]) -> Self:
379-
"""Set the validation strategy.
380+
"""Set the validation strategy to specify how the reference solution or gold patch is applied to the scenario.
380381
381382
:param validation_type: Validation type
382383
:type validation_type: Literal["UNSPECIFIED", "FORWARD", "REVERSE", "EVALUATION"]

src/runloop_api_client/sdk/scenario_builder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,10 @@ def with_metadata(self, metadata: Dict[str, str]) -> Self:
343343
return self
344344

345345
def with_reference_output(self, output: str) -> Self:
346-
"""Set the reference output/solution for validation.
346+
"""Set the reference solution or gold patch for validation.
347+
After application, the scorer is expected to return a score of 1.0.
347348
348-
:param output: Reference output (e.g., git diff)
349+
:param output: Reference solution or gold patch (e.g., git diff)
349350
:type output: str
350351
:return: Self for method chaining
351352
:rtype: Self
@@ -376,7 +377,7 @@ def with_required_secrets(self, secrets: List[str]) -> Self:
376377
return self
377378

378379
def with_validation_type(self, validation_type: Literal["UNSPECIFIED", "FORWARD", "REVERSE", "EVALUATION"]) -> Self:
379-
"""Set the validation strategy.
380+
"""Set the validation strategy to specify how the reference solution or gold patch is applied to the scenario.
380381
381382
:param validation_type: Validation type
382383
:type validation_type: Literal["UNSPECIFIED", "FORWARD", "REVERSE", "EVALUATION"]

0 commit comments

Comments
 (0)