mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-07-03 14:05:26 +02:00
f3a7528d49
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.
15 lines
504 B
Python
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"
|