Spaces:
Running
Running
Download src/browser_automation_agent/tools/constants.py from sitcod3/dracull-agent: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/spaces/sitcod3/dracull-agent/resolve/main/src/browser_automation_agent/tools/constants.py
- Command line
-
hf download hf://spaces/sitcod3/dracull-agent/src/browser_automation_agent/tools/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/sitcod3/dracull-agent/resolve/main/src/browser_automation_agent/tools/constants.py
531 Bytes
| """Shared Phase 2 tool-layer constants. | |
| The output caps mirror the existing 6000-character tool-result truncation in | |
| chat_agent (``chat_tools.TOOL_TEXT_CAP``), so observe/extract text and each | |
| per-call result content stay bounded (plan Chapter 7: "output size is capped"). | |
| """ | |
| MAX_OBSERVE_TEXT = 6000 | |
| MAX_EXTRACT_TEXT = 6000 | |
| MAX_OBSERVE_ELEMENTS = 200 | |
| # wait_for timeout_ms hard cap (plan Table 5). | |
| MAX_WAIT_FOR_MS = 15000 | |
| # Per-call result JSON cap — matches chat_tools.TOOL_TEXT_CAP. | |
| RESULT_TEXT_CAP = 6000 | |