after update the code i am facing this issue urgent help required
C:\Users\hp\AppData\Local\Programs\Python\Python313\Lib\site-packages\browser_use\agent\message_manager\views.py:59: LangChainBetaWarning: The function load is in beta. It is actively being worked on, so the API may change.
value['message'] = load(value['message'])
INFO [agent] 🚀 Starting task: go to google.com and type 'OpenAI' click search and give me the first url
INFO [src.agent.custom_agent]
📍 Step 1
INFO [src.agent.custom_agent] 🤷 Eval: Unknown - The previous goal was to start on a blank page, which is the case here. No actions have been taken yet.
INFO [src.agent.custom_agent] 🧠 New Memory:
INFO [src.agent.custom_agent] 🤔 Thought: The task is to navigate to google.com, type 'OpenAI' in the search bar, click the search button, and then extract the first URL from the results. The first step is to go to google.com.
INFO [src.agent.custom_agent] 🎯 Next Goal: Navigate to google.com
INFO [src.agent.custom_agent] 🛠️ Action 1/1: {"go_to_url":{"url":"https://www.google.com"}}
INFO [src.agent.custom_agent] 🧠 All Memory:
INFO [controller] 🔗 Navigated to https://www.google.com INFO [src.agent.custom_agent] 📍 Step 2 INFO [src.agent.custom_agent] ✅ Eval: Success - Successfully navigated to google.com. INFO [src.agent.custom_agent] 🧠 New Memory: INFO [src.agent.custom_agent] 🤔 Thought: Now I need to type 'OpenAI' into the search bar, click the search button, and extract the first URL. I can type 'OpenAI' into the textarea with index 5. INFO [src.agent.custom_agent] 🎯 Next Goal: Type 'OpenAI' into the google search bar. INFO [src.agent.custom_agent] 🛠️ Action 1/1: {"input_text":{"index":5,"text":"OpenAI"}} INFO [src.agent.custom_agent] 🧠 All Memory:
INFO [controller] ⌨️ Input OpenAI into index 5 INFO [src.agent.custom_agent] 📍 Step 3 ERROR [agent] ❌ Result failed 1/3 times: Invalid model output format. Please follow the correct schema. Details: 1 validation error for CustomAgentOutput action Field required [type=missing, input_value={'current_state': {'evalu...ment': {'index': 20}}]}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.10/v/missing INFO [src.agent.custom_agent] 📍 Step 3 ERROR [agent] ❌ Result failed 2/3 times: Invalid model output format. Please follow the correct schema. Details: 1 validation error for CustomAgentOutput action Field required [type=missing, input_value={'current_state': {'evalu...ment': {'index': 20}}]}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.10/v/missing INFO [src.agent.custom_agent] 📍 Step 3 ERROR [agent] ❌ Result failed 3/3 times: Invalid model output format. Please follow the correct schema. Details: 1 validation error for CustomAgentOutput action Field required [type=missing, input_value={'current_state': {'evalu...ment': {'index': 10}}]}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.10/v/missing ERROR [src.agent.custom_agent] ❌ Stopping due to 3 consecutive failures INFO [agent] Created GIF at agent_history.gif
which model you used?
Model: gemini-2.0-flash Task Description: go to google.com and type 'OpenAI' click search and give me the first url
fixed it, update code and try again.
i am too facing the same problem
update code and try again its fixed after update
check this pull https://github.com/browser-use/web-ui/pull/452
Solved thank you🙏🏼
NP