feat: add reliable streaming with checkpoints, native Responses SSE, … - #77
Merged
Merged
Conversation
…and typed output - Introduce application-owned checkpoint lifecycle (CheckpointSink, AgentCheckpoint, CheckpointBoundary) with awaited persistence at request/response/tool-batch/terminal boundaries, including partial streaming snapshots and cancellation/provider-failure records - Add fallible async ContextPolicy with explicit failure behavior and history processor integration that preserves native tool-call pairs without silent truncation - Replace buffered Responses streaming fallback with true incremental SSE (responses_stream.rs), adding native terminal metadata, ordered native replay, and strict terminal-status handling - Add TypedAgentStream and run_stream_typed recovering validator-transformed Output after terminal checkpoint success - Unify both streaming constructors under a worker supervisor that observes cancellation and receiver closure across the full run lifetime; committed terminal checkpoints win over later detach/cancel - Harden OpenAI Chat SSE: byte-buffered UTF-8 parsing, single terminal event, deterministic part closing, tool-call validation before dispatch, and premature-EOF errors - Run configured schema parsing, async output validators, and dynamic prompts in streaming; validation exhaustion fails closed instead of signaling valid output - Honor streaming parallel-tool settings with bounded, ordered results and retries; correct explicit output-tool mixed-call Early/Exhaustive decisions in both execution paths - Redact sensitive Debug output for thinking deltas, model responses, and native terminal metadata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…and typed output