Skip to content

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

test(anthropic): update mock to async get_final_message

xf gongfdd1d06b5148
diff --git a/tests/providers/test_anthropic.py b/tests/providers/test_anthropic.py
index 4f74b77..d1ac91f 100644
--- a/tests/providers/test_anthropic.py
+++ b/tests/providers/test_anthropic.py
@@ -337,7 +337,7 @@ class _MockAnthropicStream:
for ev in self._events:
yield ev
- def get_final_message(self):
+ async def get_final_message(self):
return self._final_message