mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-04-28 03:20:01 +00:00
- Add local web_search/web_fetch SSE handling and optional tool schemas - Extend HeuristicToolParser for JSON-style WebFetch/WebSearch text - Consolidate provider defaults, ids, and exception typing; stream contracts - Messaging: typed options, voice config injection, platform contract cleanup - Tests for web server tools, converters, parsers, contracts; ignore debug-*.log
29 lines
660 B
Python
29 lines
660 B
Python
"""SSE parsing and Anthropic stream assertions for smoke tests.
|
|
|
|
Canonical implementation lives in :mod:`core.anthropic.stream_contracts`; this
|
|
module re-exports it for smoke and historical import paths.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from core.anthropic.stream_contracts import (
|
|
SSEEvent,
|
|
assert_anthropic_stream_contract,
|
|
event_names,
|
|
has_tool_use,
|
|
parse_sse_lines,
|
|
parse_sse_text,
|
|
text_content,
|
|
thinking_content,
|
|
)
|
|
|
|
__all__ = [
|
|
"SSEEvent",
|
|
"assert_anthropic_stream_contract",
|
|
"event_names",
|
|
"has_tool_use",
|
|
"parse_sse_lines",
|
|
"parse_sse_text",
|
|
"text_content",
|
|
"thinking_content",
|
|
]
|