4cd2d4af2b
Test Browser Use CLI Install / uv pip install (macos-latest) (push) Waiting to run
Test Browser Use CLI Install / uv pip install (windows-latest) (push) Waiting to run
Test Browser Use CLI Install / uv pip install (ubuntu-latest) (push) Failing after 1s
Test Browser Use CLI Install / uvx browser-use from local wheel (push) Failing after 1s
Test Browser Use CLI Install / uvx browser-use[cli] from PyPI (push) Failing after 1s
package / pip-install-on-macos-latest-py-3.11 (push) Has been skipped
package / pip-install-on-macos-latest-py-3.13 (push) Has been skipped
package / pip-install-on-ubuntu-latest-py-3.11 (push) Has been skipped
package / pip-install-on-windows-latest-py-3.13 (push) Has been skipped
cloud_evals / trigger_cloud_eval_image_build (push) Failing after 1s
docker / build_publish_image (push) Failing after 1s
Test Browser Use CLI Install / browser-use skill sync (push) Failing after 1s
lint / code-style (push) Failing after 0s
lint / type-checker (push) Failing after 1s
package / pip-build (push) Failing after 1s
lint / syntax-errors (push) Failing after 3s
package / pip-install-on-ubuntu-latest-py-3.13 (push) Has been skipped
package / pip-install-on-windows-latest-py-3.11 (push) Has been skipped
test / ${{ matrix.test_filename }} (push) Has been skipped
test / evaluate-tasks (push) Has been skipped
test / setup-chromium (push) Failing after 2s
test / find_tests (push) Failing after 2s
37 lines
763 B
Python
37 lines
763 B
Python
import asyncio
|
|
|
|
from browser_use import Agent, Browser, ChatBrowserUse, Tools
|
|
|
|
|
|
async def main():
|
|
browser = Browser(cdp_url='http://localhost:9222')
|
|
|
|
llm = ChatBrowserUse(model='bu-2-0')
|
|
|
|
tools = Tools()
|
|
|
|
task = """
|
|
Design me a mid-range water-cooled ITX computer
|
|
Keep the total budget under $2000
|
|
|
|
Go to https://pcpartpicker.com/
|
|
Make sure the build is complete and has no incompatibilities.
|
|
Provide the full list of parts with prices and a link to the completed build.
|
|
"""
|
|
|
|
agent = Agent(
|
|
task=task,
|
|
browser=browser,
|
|
tools=tools,
|
|
llm=llm,
|
|
)
|
|
|
|
history = await agent.run(max_steps=100000)
|
|
return history
|
|
|
|
|
|
if __name__ == '__main__':
|
|
history = asyncio.run(main())
|
|
final_result = history.final_result()
|
|
print(final_result)
|