claude-code-proxy / core /anthropic /server_tool_sse.py
Yash030's picture
Deploy claude-code-nvidia proxy to Hugging Face Spaces
0157ac7
"""SSE content_block ``type`` values for Anthropic web server tools (local handlers).
Shared by :mod:`api.web_tools` and stream contract tests to avoid drift.
"""
from __future__ import annotations
from typing import Final
SERVER_TOOL_USE: Final = "server_tool_use"
WEB_SEARCH_TOOL_RESULT: Final = "web_search_tool_result"
WEB_FETCH_TOOL_RESULT: Final = "web_fetch_tool_result"
WEB_SEARCH_TOOL_RESULT_ERROR: Final = "web_search_tool_result_error"
WEB_FETCH_TOOL_ERROR: Final = "web_fetch_tool_error"