Skip to content

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

Include TODO

Magnus Müllerc2f35df9a7cb
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index ce6a4121c..f63fa3336 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -439,6 +439,7 @@ class Agent(Generic[Context]):
"""Get next action from LLM based on current state"""
if self.model_name == 'deepseek-reasoner' or self.model_name.startswith('deepseek-r1'):
converted_input_messages = convert_input_messages(input_messages, self.model_name)
+ # TODO: add output schema to LLM - else it does not know what actions are available
output = self.llm.invoke(converted_input_messages)
output.content = self._remove_think_tags(str(output.content))
# TODO: currently invoke does not return reasoning_content, we should override invoke