Skip to content

Commit 2a98da9

Browse files
feat(api): manual updates
1 parent 05879da commit 2a98da9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-e6a9dca1a93568e403ac72128d86f30c8c3f1336d4b67017d7e61b1836f10f47.yml
33
openapi_spec_hash: ef01e0649bb0e283df0aa81c369649df
4-
config_hash: abc9d1eb9779bb5629eaed7074c42809
4+
config_hash: 0f2a6f228fb92683466c107fce3bcd21

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ stagehand = Stagehand::Client.new(
3434
model_api_key: ENV["MODEL_API_KEY"] # This is the default and can be omitted
3535
)
3636

37-
response = stagehand.sessions.act("c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123", input: "click the first link on the page")
37+
response = stagehand.sessions.act("00000000-your-session-id-000000000000", input: "click the first link on the page")
3838

3939
puts(response.data)
4040
```
@@ -180,18 +180,18 @@ This library provides comprehensive [RBI](https://sorbet.org/docs/rbi) definitio
180180
You can provide typesafe request parameters like so:
181181

182182
```ruby
183-
stagehand.sessions.act("c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123", input: "click the first link on the page")
183+
stagehand.sessions.act("00000000-your-session-id-000000000000", input: "click the first link on the page")
184184
```
185185

186186
Or, equivalently:
187187

188188
```ruby
189189
# Hashes work, but are not typesafe:
190-
stagehand.sessions.act("c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123", input: "click the first link on the page")
190+
stagehand.sessions.act("00000000-your-session-id-000000000000", input: "click the first link on the page")
191191

192192
# You can also splat a full Params class:
193193
params = Stagehand::SessionActParams.new(input: "click the first link on the page")
194-
stagehand.sessions.act("c4dbf3a9-9a58-4b22-8a1c-9f20f9f9e123", **params)
194+
stagehand.sessions.act("00000000-your-session-id-000000000000", **params)
195195
```
196196

197197
### Enums

0 commit comments

Comments
 (0)