Skip to content

Commit e138ecf

Browse files
committed
update schema
1 parent 5b40a7d commit e138ecf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

weave/flow/code_scorer.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ class CodeScorer(Scorer):
3131
default=None,
3232
description="Pip requirements to install in the sandbox",
3333
)
34+
use_pip: bool = Field(
35+
default=False,
36+
description="Use pip instead of uv for dependency resolution",
37+
)
38+
secrets: list[str] | dict[str, str] | None = Field(
39+
default=None,
40+
description=(
41+
"Secrets to inject as environment variables in the sandbox. "
42+
"Pass a list of secret names (injected as-is), "
43+
'the string "*" in a list to inject all entity secrets, '
44+
"or a dict mapping secret names to env var names."
45+
),
46+
)
3447

3548
@model_validator(mode="after")
3649
def validate_environment(self) -> CodeScorer:

0 commit comments

Comments
 (0)