Skip to content

Commit a4767e8

Browse files
fix: remove unnecessary load_golden re-export and fix FIXTURES_DIR naming
Remove load_golden from harness __init__.py — consumers import from harness.fixtures directly and the package-level re-export was misleading. Rename _FIXTURES_DIR to FIXTURES_DIR in test_tool_usage.py for consistency with all other agents and the docs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e40f76d commit a4767e8

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

agents/langgraph/react_agent/tests/behavioral/test_tool_usage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929

3030
pytestmark = pytest.mark.langgraph_react
3131

32-
_FIXTURES_DIR = Path(__file__).parent / "fixtures"
32+
FIXTURES_DIR = Path(__file__).parent / "fixtures"
3333

3434

3535
def _load_golden(category: str | None = None) -> list[dict[str, Any]]:
3636
"""Load golden queries, optionally filtering by category."""
37-
return _load_golden_from(_FIXTURES_DIR, category)
37+
return _load_golden_from(FIXTURES_DIR, category)
3838

3939

4040
def _factual_queries() -> list[dict[str, Any]]:

evals/harness/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Agentic eval framework — core harness package."""
22

3-
from harness.fixtures import load_golden
43
from harness.runner import TaskConfig, TaskResult, run_task
54

6-
__all__ = ["TaskResult", "TaskConfig", "run_task", "load_golden"]
5+
__all__ = ["TaskResult", "TaskConfig", "run_task"]

0 commit comments

Comments
 (0)