Skip to content

Commit 5649fea

Browse files
committed
rename add_scorer methods in docstrings
1 parent 3e0910d commit 5649fea

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/runloop_api_client/sdk/async_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ class AsyncScenarioOps:
780780
... runloop.scenario.builder("my-scenario")
781781
... .from_blueprint(blueprint)
782782
... .with_problem_statement("Fix the bug")
783-
... .add_test_scorer("tests", test_command="pytest")
783+
... .add_test_command_scorer("tests", test_command="pytest")
784784
... )
785785
>>> scenario = await builder.push()
786786
"""

src/runloop_api_client/sdk/async_scenario_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AsyncScenarioBuilder:
3636
... .from_blueprint(blueprint)
3737
... .with_working_directory("/app")
3838
... .with_problem_statement("Fix the bug in main.py")
39-
... .add_test_scorer("tests", test_command="pytest")
39+
... .add_test_command_scorer("tests", test_command="pytest")
4040
... )
4141
>>> scenario = await builder.push()
4242
"""
@@ -398,7 +398,7 @@ def _build_params(self) -> ScenarioCreateParams:
398398
if not self._scorers:
399399
raise ValueError(
400400
"At least one scorer is required. "
401-
"Call add_test_scorer(), add_bash_scorer(), or another scorer method first."
401+
"Call add_test_command_scorer(), add_bash_script_scorer(), or another scorer method first."
402402
)
403403

404404
# Normalize weights to sum to 1.0

src/runloop_api_client/sdk/scenario_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ScenarioBuilder:
3636
... .from_blueprint(blueprint)
3737
... .with_working_directory("/app")
3838
... .with_problem_statement("Fix the bug in main.py")
39-
... .add_test_scorer("tests", test_command="pytest")
39+
... .add_test_command_scorer("tests", test_command="pytest")
4040
... )
4141
>>> scenario = builder.push()
4242
"""
@@ -398,7 +398,7 @@ def _build_params(self) -> ScenarioCreateParams:
398398
if not self._scorers:
399399
raise ValueError(
400400
"At least one scorer is required. "
401-
"Call add_test_scorer(), add_bash_scorer(), or another scorer method first."
401+
"Call add_test_command_scorer(), add_bash_script_scorer(), or another scorer method first."
402402
)
403403

404404
# Normalize weights to sum to 1.0

src/runloop_api_client/sdk/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ class ScenarioOps:
801801
... runloop.scenario.builder("my-scenario")
802802
... .from_blueprint(blueprint)
803803
... .with_problem_statement("Fix the bug")
804-
... .add_test_scorer("tests", test_command="pytest")
804+
... .add_test_command_scorer("tests", test_command="pytest")
805805
... )
806806
>>> scenario = builder.push()
807807
"""

0 commit comments

Comments
 (0)