free-claude-code/smoke/lib/sse.py
Alishahryar1 b926f60f64 feat: Anthropic web server tools, provider metadata, messaging hardening
- 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
2026-04-24 23:01:14 -07:00

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