Conversation
| // Configuration example | ||
| async function configExample() { | ||
| // --8<-- [start:config_example] | ||
| const model = new VercelModel(openai('gpt-4o'), { |
There was a problem hiding this comment.
Issue: This snippet uses openai without including the import statement. Users copying this code won't have the necessary import.
Suggestion: Add the imports inside the snippet markers:
// --8<-- [start:config_example]
import { Agent } from '@strands-agents/sdk'
import { VercelModel } from '@strands-agents/sdk/vercel'
import { openai } from '@ai-sdk/openai'
const model = new VercelModel(openai('gpt-4o'), {
// ...| // Streaming example | ||
| async function streamingExample() { | ||
| // --8<-- [start:streaming] | ||
| const agent = new Agent({ |
There was a problem hiding this comment.
Issue: Same as above - this snippet uses openai without including the import statement.
Suggestion: Include imports inside the snippet so users can copy the complete example.
|
Assessment: Comment Well-structured documentation for the Vercel AI SDK model provider integration. The content follows the project's documentation patterns and provides comprehensive coverage of installation, usage, configuration, and troubleshooting. Review Summary
Nice work on the documentation - clear, well-organized, and comprehensive! 👍 |
Documentation Preview ReadyYour documentation preview has been successfully deployed! Preview URL: https://d3ehv1nix5p99z.cloudfront.net/pr-cms-689/docs/user-guide/quickstart/overview/ Updated at: 2026-03-20T15:27:49.515Z |
Description
Adds a new
VercelModeladapter that enables using any Vercel AI SDK Language Model v3 compatible provider with Strands Agents. This opens up the full ecosystem of Vercel AI SDK providers - Amazon Bedrock (@ai-sdk/amazon-bedrock), OpenAI (@ai-sdk/openai), Google (@ai-sdk/google), Anthropic (@ai-sdk/anthropic), and many more - as model backends for Strands agents.The adapter translates between the Strands SDK message format and the Vercel
LanguageModelV3interface, supporting streaming responses, tool use, reasoning content, and multi-modal inputs (images, documents, video).Usage:
@ai-sdk/provideris added as an optional peer dependency since it crosses the API boundary (users passLanguageModelV3instances to the constructor).Related Issues
strands-agents/sdk-typescript#702
strands-agents/sdk-typescript#214
strands-agents/sdk-typescript#540
Type of Change
Checklist
npm run devBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.