Skip to content

Commit 226a6b7

Browse files
committed
update script scorer docstrings
1 parent a145431 commit 226a6b7

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/runloop_api_client/sdk/async_scenario_builder.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def add_bash_script_scorer(
211211
bash_script: str,
212212
weight: float = 1.0,
213213
) -> Self:
214-
"""Add a bash script scorer.
214+
"""Add a standalone bash script scorer.
215215
216216
The script should output "score=X.X" where X.X is a float between 0.0 and 1.0, inclusive.
217217
@@ -239,7 +239,10 @@ def add_python_script_scorer(
239239
python_version_constraint: Optional[str] = None,
240240
requirements_contents: Optional[str] = None,
241241
) -> Self:
242-
"""Add a Python script scorer.
242+
"""Add a standalone Python script scorer.
243+
244+
The script is run in an isolated uv environment, and the dependencies are declared in the
245+
`uv script header <https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies>`__.
243246
244247
The script should print the score in the range [0.0, 1.0] to stdout.
245248

src/runloop_api_client/sdk/scenario_builder.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def add_bash_script_scorer(
211211
bash_script: str,
212212
weight: float = 1.0,
213213
) -> Self:
214-
"""Add a bash script scorer.
214+
"""Add a standalone bash script scorer.
215215
216216
The script should output "score=X.X" where X.X is a float between 0.0 and 1.0, inclusive.
217217
@@ -239,7 +239,10 @@ def add_python_script_scorer(
239239
python_version_constraint: Optional[str] = None,
240240
requirements_contents: Optional[str] = None,
241241
) -> Self:
242-
"""Add a Python script scorer.
242+
"""Add a standalone Python script scorer.
243+
244+
The script is run in an isolated uv environment, and the dependencies are declared in the
245+
`uv script header <https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies>`__.
243246
244247
The script should print the score in the range [0.0, 1.0] to stdout.
245248

0 commit comments

Comments
 (0)