Skip to content

feat(wecom): add streaming message support with StreamReplier interface#16

Merged
liut merged 1 commit intomainfrom
feat/wecom-streaming-messages
Apr 3, 2026
Merged

feat(wecom): add streaming message support with StreamReplier interface#16
liut merged 1 commit intomainfrom
feat/wecom-streaming-messages

Conversation

@liut
Copy link
Copy Markdown
Owner

@liut liut commented Apr 3, 2026

  • Add StreamReplier interface for channels supporting streaming (StartStream, AppendStream, FinishStream)
  • Implement streaming methods in WSChannel with full accumulated content updates
  • Reply now delegates to StartStream + FinishStream (DRY)
  • Extract replyCtx helper to eliminate type assertion duplication
  • generateReqID now uses prefix format (prefix_id)
  • Add handleStreamingReply with tool call loop support
  • Use settings.Current.MaxLoopIterations for loop limit
  • Extract buildChatMessagesAndTools to eliminate code duplication

- Add StreamReplier interface for channels supporting streaming (StartStream, AppendStream, FinishStream)
- Implement streaming methods in WSChannel with full accumulated content updates
- Reply now delegates to StartStream + FinishStream (DRY)
- Extract replyCtx helper to eliminate type assertion duplication
- generateReqID now uses prefix format (prefix_id)
- Add handleStreamingReply with tool call loop support
- Use settings.Current.MaxLoopIterations for loop limit
- Extract buildChatMessagesAndTools to eliminate code duplication
@liut liut merged commit c949016 into main Apr 3, 2026
2 checks passed
@liut liut deleted the feat/wecom-streaming-messages branch April 3, 2026 06:08
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.

1 participant