Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Update advanced_search.py to change include_in_memory parameter to False in ActionResult and modify task description for concurrent processing of search queries.
Magnus Müller9021e83c15ab
diff --git a/examples/custom-functions/advanced_search.py b/examples/custom-functions/advanced_search.pyindex df4dd3c2a..9011d3463 100644--- a/examples/custom-functions/advanced_search.py+++ b/examples/custom-functions/advanced_search.py@@ -57,7 +57,7 @@ async def search_web(query: str):# to stringserp_data_str = json.dumps(serp_data)- return ActionResult(extracted_content=serp_data_str, include_in_memory=True)+ return ActionResult(extracted_content=serp_data_str, include_in_memory=False)names = [@@ -85,7 +85,7 @@ names = [async def main():- task = 'use search_web with "find email address of the following ETH professor:" for each of the following persons in a list of actions. Finally return the list with name and email if provided'+ task = 'use search_web with "find email address of the following ETH professor:" for each of the following persons in a list of actions. Finally return the list with name and email if provided - do always 5 at once'task += '\n' + '\n'.join(names)model = ChatOpenAI(model='gpt-4o')browser_profile = BrowserProfile()