Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /jhoetter_hof-engine /hof /browser /tools.py
| """Built-in ``hof_builtin_browse_web`` registration.""" | |
| from __future__ import annotations | |
| from typing import Any | |
| from hof.browser.constants import HOF_BUILTIN_BROWSE_WEB | |
| from hof.functions import function | |
| def hof_builtin_browse_web( | |
| task: str, | |
| sensitive_keys: list[str] | None = None, | |
| ) -> dict[str, Any]: | |
| """Executed via the agent stream runner, not this body. | |
| The stream layer calls :func:`hof.browser.runner.run_browser_cloud_task_sync` so the UI | |
| can receive ``web_session_*`` NDJSON events before the tool finishes. | |
| """ | |
| return { | |
| "error": "hof_builtin_browse_web must be executed by the agent stream", | |
| "hint": "This tool is only available through the assistant agent.", | |
| } | |
Xet Storage Details
- Size:
- 1.2 kB
- Xet hash:
- 918b51205a6d2749e4153a72eae0ace9e36e3e41314e07a5f489e71b1eef6c5c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.