mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
refactor: add capabilities to sandbox tool binding logs
This commit is contained in:
@@ -243,7 +243,7 @@ class FunctionToolExecutor(BaseFunctionToolExecutor[AstrAgentContext]):
|
||||
tools = provider.get_tools(ctx)
|
||||
result = {tool.name: tool for tool in tools}
|
||||
logger.info(
|
||||
"[Computer] Subagent handoff: runtime=%s, tools=%d, session=%s",
|
||||
"[Computer] sandbox_tool_binding target=subagent runtime=%s tools=%d session=%s",
|
||||
runtime,
|
||||
len(result),
|
||||
session_id,
|
||||
|
||||
@@ -113,7 +113,7 @@ class TestDiscoverBayCredentials:
|
||||
assert result == "sk-bay-mismatch"
|
||||
mock_logger.warning.assert_called_once()
|
||||
warning_msg = mock_logger.warning.call_args[0][0]
|
||||
assert "endpoint mismatch" in warning_msg
|
||||
assert "bay_credentials_mismatch" in warning_msg
|
||||
|
||||
def test_endpoint_match_no_warning(
|
||||
self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
||||
|
||||
Reference in New Issue
Block a user