helpers/chat_media.py.dox.md
chat_media.py helper module.chat_media.py because this directory is intentionally flat.chat_media.py owns the runtime implementation.chat_media.py.dox.md owns durable notes about responsibilities, contracts, side effects, and verification for that implementation.ChatImage (no explicit base class)screenshot_dir(context_id: str, source: str) -> Pathartifact_dir(context_id: str, category: ImageCategory=..., source: str=...) -> Pathsave_image_bytes(context_id: str, payload: bytes, mime_type: str=..., category: ImageCategory=..., source: str=..., preferred_name: str=..., max_bytes: int | None=...) -> ChatImagesave_image_base64(context_id: str, data: str, mime_type: str=..., category: ImageCategory=..., source: str=..., preferred_name: str=..., max_bytes: int | None=...) -> ChatImagesave_image_file(context_id: str, path: str | Path, category: ImageCategory=..., source: str=..., preferred_name: str=..., max_bytes: int | None=...) -> ChatImagesave_image_data_url(context_id: str, data_url: str, category: ImageCategory=..., source: str=..., preferred_name: str=..., max_bytes: int | None=...) -> ChatImagematerialize_image_ref(context_id: str, url: str, source: str=..., preferred_name: str=..., max_bytes: int | None=...) -> stris_chat_scoped_path(context_id: str, path: str | Path) -> boolinfer_source(value: str=..., preferred_name: str=...) -> strcategory_for_source(source: str) -> ImageCategory_guess_image_mime(path: Path) -> str_is_data_image_url(value: str) -> bool_split_image_data_url(data_url: str) -> tuple[str, str]DEFAULT_MAX_IMAGE_BYTES.__future__, dataclasses, helpers, pathlib, time, typing, uuid.dataclass, artifact_dir, bytes, media_artifacts.normalize_mime, media_artifacts.guess_extension, media_artifacts.safe_filename, Path, time.strftime, path.parent.mkdir, path.write_bytes, ChatImage, media_artifacts.decode_base64_payload, save_image_bytes, image_path.read_bytes, _split_image_data_url, save_image_base64, str.strip, category_for_source, _is_data_image_url, images.resolve_ref.tests/test_browser_agent_regressions.pytests/test_host_browser_connector.pytests/test_tool_action_contracts.pytests/test_vision_load_image_refs.pyNo child DOX files.