Skip to content

Commit 5da842f

Browse files
committed
include log from copilot in the artifacts
1 parent a7035b5 commit 5da842f

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/bcbench/agent/copilot/copilot_agent.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,11 @@ def run_copilot_agent(
1818
entry: DatasetEntry,
1919
model: str,
2020
repo_path: Path,
21+
output_dir: Path,
2122
include_project_paths: bool = False,
22-
output_dir: Path | None = None,
2323
) -> dict[str, float | int] | None:
2424
"""Run GitHub Copilot CLI agent on a single dataset entry.
2525
26-
Args:
27-
entry_id: ID of the entry to run
28-
repo_path: Path to the repository
29-
output_dir: Optional directory to save output files (unused, kept for API compatibility)
30-
3126
Returns:
3227
Dictionary containing metrics extracted from the CLI output, or None if collection fails
3328
"""
@@ -51,8 +46,8 @@ def run_copilot_agent(
5146
"--disable-builtin-mcps",
5247
f"--model={model}",
5348
"--no-custom-instructions",
54-
"--log-level",
55-
"debug",
49+
"--log-level=debug",
50+
f"--log-dir={output_dir}",
5651
"-p",
5752
prompt.replace("\r", "").replace("\n", " "),
5853
],

0 commit comments

Comments
 (0)