Open
Conversation
Contributor
Author
|
🧪 Testing To try out this version of the SDK, run: Expires at: Fri, 27 Mar 2026 23:05:01 GMT |
There was a problem hiding this comment.
No issues found across 7 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant User as Client Application
participant SDK as Stagehand Python SDK
participant API as Stagehand API (Backend)
participant Bedrock as AWS Bedrock (Provider)
Note over User,Bedrock: Session Execution Flow with Bedrock Support
User->>SDK: execute(agent_config={"provider": "bedrock", ...})
SDK->>SDK: CHANGED: Validate ModelConfigParam
Note right of SDK: Enum now accepts "bedrock" <br/>alongside openai, anthropic, etc.
SDK->>API: POST /session/execute
Note right of SDK: Includes agentConfig with bedrock provider
API->>API: Resolve Provider routing
alt provider == "bedrock"
API->>Bedrock: NEW: Forward inference request
Bedrock-->>API: Model response
else other providers
API->>API: Route to OpenAI/Anthropic/Google/etc.
end
API-->>SDK: Session result
SDK-->>User: Agent execution output
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.
Automated Release PR
3.7.0 (2026-02-25)
Full Changelog: v3.6.0...v3.7.0
Features
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions
Summary by cubic
Adds AWS Bedrock provider support to model and agent configs and the OpenAPI spec. You can now set provider=bedrock in both ModelConfigParam and AgentConfig.
Written for commit ce9363c. Summary will update on new commits. Review in cubic