You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive Response API streaming support and fix conversation continuity
## Summary
- Added full streaming support for Response API with 40+ event types in ResponseStreamEvent
- Fixed conversation state management by adding `id` field to InputMessage for response tracking
- Implemented ResponseStreamProvider demo showing real-time streaming with conversation history
- Updated README with comprehensive streaming documentation and examples
## Changes
- **Response API Streaming**:
- Added ResponseStreamEvent enum with all streaming event types
- Implemented stream event parsing for text deltas, function calls, tool usage, etc.
- Added support for reasoning summaries, web search, file search events
- **Conversation State Fix**:
- Added `id` field to InputMessage to support response IDs in conversation history
- Fixed 400 error when sending follow-up messages with previous assistant responses
- Simplified assistant message handling in conversation arrays
- **Demo Implementation**:
- Created ResponseStreamProvider with full streaming capabilities
- Added ResponseStreamDemoView showing real-time UI updates
- Implemented message accumulation and conversation state management
- **Documentation**:
- Added comprehensive streaming section to README
- Documented all new Response API types and structures
- Included multiple code examples for various streaming scenarios
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments