Skip to content

Commit 52138c9

Browse files
feat: Add bedrock to provider enum in Zod schemas and OpenAPI spec
1 parent cfbc347 commit 52138c9

7 files changed

Lines changed: 16 additions & 5 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 8
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-87b4d9e349de9d33d5d89439f7ac9507133700a9f072fdf0d756471961768d2c.yml
3-
openapi_spec_hash: 0f6ae6d10a0227a3482914728cf901ba
4-
config_hash: 7baf2daccae5913216bb74c52d63eaff
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-a4e672f457dd99336f4b2a113fd7c7c6c9db0941b38d57cff6e3641549a6c4ed.yml
3+
openapi_spec_hash: eae9c8561e420db8e4d238c1e59617fb
4+
config_hash: 2a565ad6662259a2e90fa5f1f5095525

lib/stagehand/models/model_config.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ module Provider
4646
ANTHROPIC = :anthropic
4747
GOOGLE = :google
4848
MICROSOFT = :microsoft
49+
BEDROCK = :bedrock
4950

5051
# @!method self.values
5152
# @return [Array<Symbol>]

lib/stagehand/models/session_execute_params.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ module Provider
164164
ANTHROPIC = :anthropic
165165
GOOGLE = :google
166166
MICROSOFT = :microsoft
167+
BEDROCK = :bedrock
167168

168169
# @!method self.values
169170
# @return [Array<Symbol>]

rbi/stagehand/models/model_config.rbi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ module Stagehand
8080
GOOGLE = T.let(:google, Stagehand::ModelConfig::Provider::TaggedSymbol)
8181
MICROSOFT =
8282
T.let(:microsoft, Stagehand::ModelConfig::Provider::TaggedSymbol)
83+
BEDROCK =
84+
T.let(:bedrock, Stagehand::ModelConfig::Provider::TaggedSymbol)
8385

8486
sig do
8587
override.returns(

rbi/stagehand/models/session_execute_params.rbi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,11 @@ module Stagehand
334334
:microsoft,
335335
Stagehand::SessionExecuteParams::AgentConfig::Provider::TaggedSymbol
336336
)
337+
BEDROCK =
338+
T.let(
339+
:bedrock,
340+
Stagehand::SessionExecuteParams::AgentConfig::Provider::TaggedSymbol
341+
)
337342

338343
sig do
339344
override.returns(

sig/stagehand/models/model_config.rbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module Stagehand
3939
provider: Stagehand::Models::ModelConfig::provider
4040
}
4141

42-
type provider = :openai | :anthropic | :google | :microsoft
42+
type provider = :openai | :anthropic | :google | :microsoft | :bedrock
4343

4444
module Provider
4545
extend Stagehand::Internal::Type::Enum
@@ -48,6 +48,7 @@ module Stagehand
4848
ANTHROPIC: :anthropic
4949
GOOGLE: :google
5050
MICROSOFT: :microsoft
51+
BEDROCK: :bedrock
5152

5253
def self?.values: -> ::Array[Stagehand::Models::ModelConfig::provider]
5354
end

sig/stagehand/models/session_execute_params.rbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ module Stagehand
137137
def self?.variants: -> ::Array[Stagehand::Models::SessionExecuteParams::AgentConfig::model]
138138
end
139139

140-
type provider = :openai | :anthropic | :google | :microsoft
140+
type provider = :openai | :anthropic | :google | :microsoft | :bedrock
141141

142142
module Provider
143143
extend Stagehand::Internal::Type::Enum
@@ -146,6 +146,7 @@ module Stagehand
146146
ANTHROPIC: :anthropic
147147
GOOGLE: :google
148148
MICROSOFT: :microsoft
149+
BEDROCK: :bedrock
149150

150151
def self?.values: -> ::Array[Stagehand::Models::SessionExecuteParams::AgentConfig::provider]
151152
end

0 commit comments

Comments
 (0)