DaiChaoXiong
8ed56c3952
feat(providers): rewrite Anthropic and OpenAI providers
...
- Anthropic Messages API (2023-06-01) SSE streaming: text/thinking/tool_use
blocks, cache usage, stop-reason mapping, errors encoded as events
- OpenAI Responses API + Chat Completions (switchable), tool_calls delta
accumulation, include_usage, reasoning_content -> thinking
- ProviderConfig with base_url/api_key/context_window/timeout; known-model
context-window table with three-layer resolution
- background current-thread runtime bridges sync agent loop to async I/O
- mock-transport replay tests (chunks straddle SSE boundaries) + full agent
integration test
2026-08-09 20:59:49 +08:00
DaiChaoXiong
112342c42e
feat(core): agent message setters, thinking support, reducer arg-slot fix
...
- Agent::set_system_prompt / replace_messages (dynamic prompts + compaction)
- ProviderEventReducer::thinking_delta with per-block tracking
- fix: interleaved text/tool-call streams no longer misroute partial args
(args aligned per content slot; regression tests added)
2026-08-09 20:59:39 +08:00
DaiChaoXiong
7f00886150
feat(transport): add incremental streaming body reader and custom ports
...
- Transport::stream_request returns a ChunkStream for true SSE streaming
(head read incrementally, body drained chunk by chunk)
- transparent incremental chunked-transfer decoding (ChunkedDecoder)
- HttpRequest.port for non-standard base_url ports (Host header + TLS connect)
- per-read timeouts on the streaming path
2026-08-09 20:59:33 +08:00
DaiChaoXiong
32b630e440
chore: remove focus-cli and obsolete provider sources
...
focus-cli is deleted entirely (the TUI will be a new crate later); the old
Anthropic/OpenAI/Zai provider sources and the core mock module are removed as
part of the rewrite.
2026-08-09 20:59:29 +08:00
DaiChaoXiong
5364ca004c
ADD: 注释
2026-07-17 11:19:22 +08:00
DaiChaoXiong
a7ddba035a
INIT
2026-07-16 17:59:16 +08:00