Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Clarify purpose of model_rebuild() in ExtendedOutputModel for eval service

Magnus Müller37cdaa0fee55
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index fdbccc7ae..de0973b68 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -82,8 +82,8 @@ class Controller(Generic[Context]):
class ExtendedOutputModel(BaseModel): # type: ignore
success: bool = True
data: output_model # type: ignore
-
- # Rebuild the model to resolve any forward references
+
+ # This is for the eval service if we create the basemodel dynamically
ExtendedOutputModel.model_rebuild()
@self.registry.action(