Repository navigation
[skills] Sync ai-sdk with current docs - #315
Open
vercel-gh-bot-4[bot] wants to merge 1 commit into
Open
vercel-gh-bot-4[bot] wants to merge 1 commit into
vercel-gh-bot-4[bot] wants to merge 1 commit into
Conversation
<!-- vercel-plugin-drift-agent -->
This branch has not been deployed
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.
validaterule forstream\.write\((overlay.yaml): the stale message "In createUIMessageStream, use stream.writer.write() not stream.write()" points agents at astream.writerproperty that does not exist.createUIMessageStreampasses the writer toexecute({ writer }), and you write chunks withwriter.write(). Corrected message: "In createUIMessageStream, use writer.write() on the writer passed to execute({ writer }), not stream.write() — the stream itself is not writable". Source: https://ai-sdk.dev/docs/reference/ai-sdk-ui/create-ui-message-stream (no last_updated). Quote: "execute((options: { writer: UIMessageStreamWriterWithOutcome }) => Promise<void> | void): A function that receives a writer instance and can use it to write UI message chunks to the stream." The page's example also usesasync execute({ writer }) { ... writer.write({ type: 'start' });.Verification
run_plugin_checkspassed every step: build (0 updated, 7 unchanged), typecheck, validate (PASSED), test (1079 pass, 0 fail). The build regeneratedskills/ai-sdk/SKILL.mdfromoverlay.yaml.Test updates
None.
Not changed
upstream/SKILL.md(in sync with vercel/ai@5028fa4) still tells agents to search viahttps://ai-sdk.dev/api/search-docs?q=your_query. That endpoint returns 404 even with a real query. It comes from the upstream source, so the fix belongs in vercel/aiskills/use-ai-sdk.agent.generateText()/agent.streamText()rules say these were "renamed in AI SDK v6". The AI SDK 5Experimental_Agentexample in the 6.0 migration guide already usesagent.generate(), so I couldn't confirm the version. The recommended replacement is correct, so I left the rules alone.experimental_generateImagerule doesn't mention that AI SDK 7 removed the export in favor ofgenerateImage. Its recommendation still works, so I left it alone.metadata.docssdk.vercel.aiURLs redirect to ai-sdk.dev pages for the same product, so they are not drift.Opened automatically by the vercel-plugin drift agent. Review before merge.