Skip to content

docs: update TypeScript SDK model provider class names and import paths#682

Draft
pgrayy wants to merge 1 commit intostrands-agents:mainfrom
pgrayy:agent-tasks/model-subpath-exports
Draft

docs: update TypeScript SDK model provider class names and import paths#682
pgrayy wants to merge 1 commit intostrands-agents:mainfrom
pgrayy:agent-tasks/model-subpath-exports

Conversation

@pgrayy
Copy link
Copy Markdown
Member

@pgrayy pgrayy commented Mar 18, 2026

Description

Update documentation to reflect the TypeScript SDK model provider reorganization (strands-agents/sdk-typescript#694).

Class renames:

  • BedrockModel -> ConverseModel
  • OpenAIModel -> ChatModel
  • AnthropicModel -> MessagesModel
  • GeminiModel -> GenAIModel

Import path changes:

  • @strands-agents/sdk/bedrock -> @strands-agents/sdk/models/bedrock
  • @strands-agents/sdk/openai -> @strands-agents/sdk/models/openai
  • @strands-agents/sdk/anthropic -> @strands-agents/sdk/models/anthropic
  • @strands-agents/sdk/gemini -> @strands-agents/sdk/models/google

The new class names describe the API each provider wraps, not the company. The subpath already communicates the provider. For example, ConverseModel from @strands-agents/sdk/models/bedrock wraps the Bedrock Converse API.

Only TypeScript code, snippets, API links, and tests are updated. All Python references are unchanged. Anthropic does not have TypeScript examples in the docs yet, so no Anthropic files are touched.

Related Issues

N/A

Type of Change

  • Content update/revision

Checklist

  • I have read the CONTRIBUTING document
  • My changes follow the project's documentation style
  • I have tested the documentation locally using npm run dev
  • Links in the documentation are valid and working

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions
Copy link
Copy Markdown
Contributor

Documentation Preview Failed

The documentation deployment encountered an error. Please check the deployment logs for more details.

@pgrayy pgrayy force-pushed the agent-tasks/model-subpath-exports branch from 3b3dc77 to a825f49 Compare March 20, 2026 23:02
@github-actions
Copy link
Copy Markdown
Contributor

Documentation Preview Failed

The documentation deployment encountered an error. Please check the deployment logs for more details.

Update documentation to reflect SDK model provider reorganization:
- BedrockModel -> BedrockConverseModel
- OpenAIModel -> OpenAIChatModel
- GeminiModel -> GoogleGenAIModel
- Import paths: @strands-agents/sdk/<name> -> @strands-agents/sdk/models/<name>
- gemini subpath -> google subpath
- Update all TypeScript code snippets, examples, API links, and tests
@pgrayy pgrayy force-pushed the agent-tasks/model-subpath-exports branch from a825f49 to 98578ee Compare March 20, 2026 23:11
@github-actions
Copy link
Copy Markdown
Contributor

Documentation Preview Failed

The documentation deployment encountered an error. Please check the deployment logs for more details.

@pgrayy pgrayy marked this pull request as draft March 23, 2026 12:44
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