Skip to content

refactor(stream): unify indexed tool-call accumulation across adapters#437

Merged
GCWing merged 1 commit intoGCWing:mainfrom
wsp1911:main
Apr 17, 2026
Merged

refactor(stream): unify indexed tool-call accumulation across adapters#437
GCWing merged 1 commit intoGCWing:mainfrom
wsp1911:main

Conversation

@wsp1911
Copy link
Copy Markdown
Collaborator

@wsp1911 wsp1911 commented Apr 17, 2026

  • preserve provider tool-call indices in unified stream types and route interleaved tool deltas by index
  • move tool-call buffering/finalization into the shared accumulator and remove OpenAI-specific orphan/prelude filtering
  • update stream processor and response aggregators to consume accumulator outcomes for early detection and param streaming
  • ignore empty tool argument deltas and keep fallback handling for snapshot/tail-fill edge cases
  • add OpenAI stream regression fixtures for interleaved args, missing tool type, and trailing empty finish chunks
  • document that changes to stream processor or ai-adapters must run stream integration tests

- preserve provider tool-call indices in unified stream types and route interleaved tool deltas by index
- move tool-call buffering/finalization into the shared accumulator and remove OpenAI-specific orphan/prelude filtering
- update stream processor and response aggregators to consume accumulator outcomes for early detection and param streaming
- ignore empty tool argument deltas and keep fallback handling for snapshot/tail-fill edge cases
- add OpenAI stream regression fixtures for interleaved args, missing tool type, and trailing empty finish chunks
- document that changes to stream processor or ai-adapters must run stream integration tests
@GCWing GCWing merged commit 0bd35d7 into GCWing:main Apr 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants