Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

style: ruff format (post-fix)

xf gong6d0aa683818c
diff --git a/cubepi/mcp/_adapter.py b/cubepi/mcp/_adapter.py
index fc11ee7..ad42926 100644
--- a/cubepi/mcp/_adapter.py
+++ b/cubepi/mcp/_adapter.py
@@ -83,7 +83,11 @@ def make_mcp_agent_tool(
# not incremental), but we accept them for signature compatibility
# with cubepi's agent loop.
del tool_call_id, on_update
- args_dict = args.model_dump(exclude_none=True) if hasattr(args, "model_dump") else dict(args)
+ args_dict = (
+ args.model_dump(exclude_none=True)
+ if hasattr(args, "model_dump")
+ else dict(args)
+ )
result = await call_remote(name, args_dict)
content_blocks: list[Content] = []
for c in result.get("content", []):
diff --git a/tests/middleware/test_after_model_response.py b/tests/middleware/test_after_model_response.py
index e295e7f..1792482 100644
--- a/tests/middleware/test_after_model_response.py
+++ b/tests/middleware/test_after_model_response.py
@@ -311,10 +311,12 @@ async def test_turn_action_inject_messages_persist(tmp_path) -> None:
cp = MemoryCheckpointer()
provider = FauxProvider()
- provider.set_responses([
- faux_assistant_message("first"),
- faux_assistant_message("second"),
- ])
+ provider.set_responses(
+ [
+ faux_assistant_message("first"),
+ faux_assistant_message("second"),
+ ]
+ )
agent = Agent(
provider=provider,
model=Model(id="test", provider="faux"),