"""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