Files
free-claude-code/core/anthropic/server_tool_sse.py
Alishahryar1 f3a7528d49 Major refactor: API, providers, messaging, and Anthropic protocol
Consolidates the incremental refactor work into a single change set: modular web tools (api/web_tools), native Anthropic request building and SSE block policy, OpenAI conversion and error handling, provider transports and rate limiting, messaging handler and tree queue, safe logging, smoke tests, and broad test coverage.
2026-04-26 03:01:14 -07:00

15 lines
504 B
Python

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