Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tasks/task_10_workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@ def grade(transcript: list, workspace_path: str) -> dict:
if item.get("type") == "toolCall":
tool_name = item.get("name", "")
params = item.get("params", {})
if tool_name in ["read_file", "readFile"]:
if tool_name.lower() in ["read_file", "readfile", "read"]:
# Support multiple param formats across different agents:
# - files: ["config.json"] (Cursor, Windsurf)
# - path/file_path: "config.json" (OpenClaw, Claude Code)
files = params.get("files", [])
if any("config.json" in str(f) for f in files):
path_val = str(params.get("path", params.get("file_path", "")))
if any("config.json" in str(f) for f in files) or "config.json" in path_val:
read_config = True
break

Expand Down