Skip to content

Commit 9af5b0c

Browse files
committed
small fix
1 parent 28932e4 commit 9af5b0c

4 files changed

Lines changed: 5 additions & 8 deletions

File tree

eval_protocol/mcp/client/connection.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,12 @@ async def get_initial_state(self, session: MCPSession) -> Any:
214214
# Use shorter timeout for playback mode, longer timeout for high-concurrency initialization
215215
# (50+ concurrent sessions need more time for initial state setup)
216216
timeout = 3.0 if hasattr(session, "_is_playback_mode") and session._is_playback_mode else 15.0
217-
218217
async with httpx.AsyncClient(timeout=timeout) as client:
219218
initial_state_response = await client.get(
220219
f"{base_url}/control/initial_state",
221220
headers=headers,
222221
timeout=timeout,
223222
)
224-
225223
if initial_state_response.status_code == 200:
226224
initial_observation = initial_state_response.json()
227225
logger.info(
@@ -234,7 +232,8 @@ async def get_initial_state(self, session: MCPSession) -> Any:
234232
except httpx.TimeoutException:
235233
logger.warning(f"Control plane initial state endpoint timed out after {timeout}s")
236234
except Exception as e:
237-
logger.warning(f"Failed to query control plane initial state endpoint: {e}")
235+
logger.warning(f"Failed to query initial state endpoint: {e}")
236+
238237
except Exception as e:
239238
logger.warning(f"Failed to query control plane initial state endpoint: {e}")
240239

eval_protocol/mcp/execution/manager.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
import os
1212
import threading
1313
import time
14-
from concurrent.futures import ThreadPoolExecutor, as_completed
15-
from dataclasses import asdict, dataclass
16-
from datetime import datetime
14+
from dataclasses import asdict
1715
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Union
1816

1917
from openai.types import CompletionUsage
@@ -260,6 +258,7 @@ async def _execute_rollout(
260258
{"role": "system", "content": system_prompt},
261259
{"role": "user", "content": user_prompt},
262260
]
261+
263262
logger.info(f"🎯 Starting rollout {rollout_idx} in thread {threading.current_thread().name}")
264263

265264
# Run rollout loop for this specific environment

eval_protocol/mcp/mcpgym.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import logging
2121
import os
2222
import threading
23-
import time
2423
from abc import ABC, abstractmethod
2524
from concurrent.futures import ThreadPoolExecutor
2625
from datetime import date, datetime

tests/pytest/test_tau_bench_airline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def tau_bench_airline_to_evaluation_row(data: List[Dict[str, Any]]) -> List[Eval
5858

5959
rows.append(eval_row)
6060

61-
return rows[0:3]
61+
return rows
6262

6363

6464
@evaluation_test(

0 commit comments

Comments
 (0)