Skip to content

Commit 818f1f8

Browse files
Benny ChenBenny Chen
authored andcommitted
fix tests
1 parent 40b9fae commit 818f1f8

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

eval_protocol/benchmarks/test_livebench_data_analysis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ def _read_jsonl_table_from_text(text: str, header_cols: List[str]):
287287
return 0
288288

289289
# Compare
290+
assert llm_df is not None, "LLM dataframe is None"
291+
assert gt_df is not None, "GT dataframe is None"
290292
try:
291293
gt_df.columns = [str(s).strip() for s in gt_df.columns]
292294
if "index" in gt_df.columns:

eval_protocol/mcp/mcpgym.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def format_observation(self, obs: Any, env: Any) -> Dict[str, Any]:
563563
else:
564564
return {"observation": serialized_obs}
565565

566-
def run(self, transport: str = "streamable-http", **kwargs):
566+
def run(self, transport: Literal["stdio", "sse", "streamable-http"] = "streamable-http", **kwargs):
567567
"""Run the unified MCP-Gym server with high concurrency settings."""
568568
if transport == "streamable-http":
569569
# Run with custom high-concurrency uvicorn config

eval_protocol/mcp/simulation_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def reset_environment(self, env, seed): ...
3030
from abc import ABC, abstractmethod
3131
from collections.abc import AsyncIterator
3232
from contextlib import asynccontextmanager
33-
from typing import Any, Callable, Dict, List, Optional, Tuple
33+
from typing import Any, Awaitable, Callable, Dict, List, Optional, Tuple, Iterable
34+
from pydantic import AnyUrl
3435

3536
import uvicorn
3637
from mcp.server.lowlevel import Server

eval_protocol/mcp_agent/orchestration/local_docker_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ async def list_tools_on_instance(self, instance: ManagedInstanceInfo) -> types.L
650650
)
651651
target_base_url = instance.mcp_endpoint_url.rstrip("/")
652652
try:
653-
async with streamablehttp_client(url=target_base_url) as (
653+
async with streamablehttp_client(base_url=target_base_url) as ( # type: ignore
654654
read_s,
655655
write_s,
656656
_, # get_session_id_func usually not needed for a single call

0 commit comments

Comments
 (0)