Build and run agents you can see, understand and trust.
Python agentchatbotlarge-language-modelsllmllm-agentmcpmulti-agentmulti-modalreact-agentrealtime-agentvoice-agentvoice-assistant
fix(workspace): point the bubblewrap offload test at the workspace:// reference (#3151)
sxh265c025105cb
diff --git a/src/agentscope/workspace/_base.py b/src/agentscope/workspace/_base.pyindex db64755d1..2f782ceba 100644--- a/src/agentscope/workspace/_base.py+++ b/src/agentscope/workspace/_base.py@@ -1018,8 +1018,8 @@ class WorkspaceBase:``${workdir}/sessions/<session_id>/context.jsonl`` (onemessage per JSONL line). Inline base64:class:`DataBlock` payloads are extracted into ``data/`` and- rewritten as ``file://`` URL blocks before serialisation so- the JSONL line size stays bounded.+ rewritten as portable ``workspace://`` URL blocks before+ serialisation so the JSONL line size stays bounded.Args:session_id (`str`):diff --git a/tests/workspace_bubblewrap_test.py b/tests/workspace_bubblewrap_test.pyindex 523d0410d..71bf54703 100644--- a/tests/workspace_bubblewrap_test.py+++ b/tests/workspace_bubblewrap_test.py@@ -920,7 +920,7 @@ class TestBubblewrapWorkspace(IsolatedAsyncioTestCase):)async with aiofiles.open(host_path, "r") as f:content = await f.read()- self.assertIn("file:///workspace/data/", content)+ self.assertIn("workspace:///data/", content)self.assertTrue(os.path.isdir(os.path.join(self._shared_workdir.name, "data")),)