Skip to content

Conversation

@iTrooz
Copy link
Contributor

@iTrooz iTrooz commented Jan 25, 2026

Follow-up on #761

This PR has a lot of diffs, but simply refactors code by creating two new functions _streamSSEReply() and _sendPlaintextReply(), which are helpers for the _reply() method. No logic is changed

@changeset-bot
Copy link

changeset-bot bot commented Jan 25, 2026

🦋 Changeset detected

Latest commit: d7de839

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@cloudflare/ai-chat Patch
agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/agents@797

commit: d7de839

iTrooz and others added 3 commits January 28, 2026 23:08
Separated the logic for handling SSE replies and plaintext replies into two distinct functions in the AIChatAgent class. This improves code organization and readability. Also adjusted parameter ordering for consistency.
@threepointone threepointone merged commit 77be4f8 into cloudflare:main Jan 28, 2026
4 of 6 checks passed
@github-actions github-actions bot mentioned this pull request Jan 28, 2026
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