Skip to content

Commit 47918bc

Browse files
fix: normalize root run_eval fixture and add agent-specific stream rationale
Apply STREAM constant to the root conftest.py for a uniform interface, and document why streaming is disabled in autogen/mcp_agent and agentic_rag. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6ab9609 commit 47918bc

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

agents/autogen/mcp_agent/tests/behavioral/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def eval_config() -> dict[str, Any]:
5858

5959

6060
FIXTURES_DIR = Path(__file__).parent / "fixtures"
61+
# AutoGen MCP exposes tool_invocations only in non-streaming JSON responses.
6162
STREAM = False
6263

6364

agents/langgraph/agentic_rag/tests/behavioral/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def _find_repo_root() -> Path:
5050

5151

5252
FIXTURES_DIR = Path(__file__).parent / "fixtures"
53+
# Agentic RAG does not expose tool_calls in streaming; MLflow traces are the only source.
5354
STREAM = False
5455

5556

tests/behavioral/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ async def http_client() -> AsyncGenerator[httpx.AsyncClient, None]:
115115
yield client
116116

117117

118+
STREAM = False
119+
120+
118121
@pytest.fixture
119122
def run_eval(
120123
agent_url: str, http_client: httpx.AsyncClient
@@ -133,7 +136,6 @@ async def _run(
133136
timeout_seconds: float = 30.0,
134137
max_tokens_budget: int | None = None,
135138
model: str | None = None,
136-
stream: bool = False,
137139
) -> TaskResult:
138140
config = TaskConfig(
139141
agent_url=agent_url,
@@ -142,7 +144,7 @@ async def _run(
142144
timeout_seconds=timeout_seconds,
143145
max_tokens_budget=max_tokens_budget,
144146
model=model,
145-
stream=stream,
147+
stream=STREAM,
146148
)
147149
return await run_task(config, client=http_client)
148150

0 commit comments

Comments
 (0)