Repository navigation
ThinkHarness: answer turns on AI SDK 6 - #3359
Merged
Merged
Conversation
…, which AI SDK 6 has too
|
| Name | Type |
|---|---|
| agents | Minor |
| @cloudflare/agent-think | Patch |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
Contributor
|
✅ agents import sizes: no significant changes ( |
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.
ThinkHarness streamed each model call's reply through the standalone
toUIMessageStreamandresult.stream, which only AI SDK 7 has. On AI SDK 6, whichagentssupports as a peer, every turn failed with "toUIMessageStream is not a function" and left only the user's message. It now uses the result's owntoUIMessageStream()method, which 6 and 7 both have.H7 (#3331) found this: its new harness-actions tests fail in the
think (ai@6)job. The existing harness-backed Think tests never noticed, because they only checked events or swallowed the turn's error.prefix-changed.test.tsnow also checks that the turn answered. Against an AI SDK 6 install, it fails before the fix and passes after, and H7's harness-actions tests pass too.Validated: harness-think 142/142 on AI SDK 7, plus prefix-changed on both majors. The change is one call. Cost: none.