Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
Normalize common LLM output errors
Dillon DuPonte261282182a0
diff --git a/libs/python/agent/agent/agent.py b/libs/python/agent/agent/agent.pyindex 78fc3f45e5..fb9a45d9d4 100644--- a/libs/python/agent/agent/agent.py+++ b/libs/python/agent/agent/agent.py@@ -29,6 +29,7 @@ from .callbacks import (TrajectorySaverCallback,BudgetManagerCallback,TelemetryCallback,+ OperatorValidatorCallback)from .computers import (AsyncComputerHandler,@@ -201,6 +202,9 @@ class ComputerAgent:# == Add built-in callbacks ==+ # Prepend operator validator callback+ self.callbacks.insert(0, OperatorValidatorCallback())+# Add telemetry callback if telemetry_enabled is setif self.telemetry_enabled:if isinstance(self.telemetry_enabled, bool):diff --git a/libs/python/agent/agent/callbacks/__init__.py b/libs/python/agent/agent/callbacks/__init__.pyindex ffe34551fc..35ab026339 100644--- a/libs/python/agent/agent/callbacks/__init__.py+++ b/libs/python/agent/agent/callbacks/__init__.py@@ -8,6 +8,7 @@ from .logging import LoggingCallbackfrom .trajectory_saver import TrajectorySaverCallbackfrom .budget_manager import BudgetManagerCallbackfrom .telemetry import TelemetryCallback+from .operator_validator import OperatorValidatorCallback__all__ = ["AsyncCallbackHandler",@@ -16,4 +17,5 @@ __all__ = ["TrajectorySaverCallback","BudgetManagerCallback","TelemetryCallback",+ "OperatorValidatorCallback",]