Skip to content

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

feat: make use of the `tool_calling_method` param on Agent constructor

Ivens Joris2d837379f8ab
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index e3bdcc0ef..94d9e6325 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -219,6 +219,8 @@ class Agent:
return 'function_calling'
else:
return None
+ else:
+ return tool_calling_method
def add_new_task(self, new_task: str) -> None:
self.message_manager.add_new_task(new_task)