Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Added telemetry fallback

Dillon DuPont78d031c5162f
diff --git a/libs/python/agent/agent/callbacks/telemetry.py b/libs/python/agent/agent/callbacks/telemetry.py
index b74f2893ed..ac8855a200 100644
--- a/libs/python/agent/agent/callbacks/telemetry.py
+++ b/libs/python/agent/agent/callbacks/telemetry.py
@@ -60,7 +60,7 @@ class TelemetryCallback(AsyncCallbackHandler):
"""Record agent type/model and session initialization."""
agent_info = {
"session_id": self.session_id,
- "agent_type": self.agent.agent_loop.__name__,
+ "agent_type": self.agent.agent_loop.__name__ if hasattr(self.agent, 'agent_loop') else 'unknown',
"model": getattr(self.agent, 'model', 'unknown'),
**SYSTEM_INFO
}