You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
# Changelog
2
2
3
+
## 0.5.0 (2025-12-23)
4
+
5
+
Full Changelog: [v0.4.0...v0.5.0](https://github.com/browserbase/stagehand-ruby/compare/v0.4.0...v0.5.0)
6
+
7
+
### Features
8
+
9
+
*[STG-1053][server] Use fastify-zod-openapi + zod v4 for openapi generation ([926a819](https://github.com/browserbase/stagehand-ruby/commit/926a819a4bbe2b260d3dbd46b860c444f60857bf))
We provide support for streaming responses using Server-Sent Events (SSE).
45
+
46
+
```ruby
47
+
stream = stagehand.sessions.act_streaming(
48
+
"00000000-your-session-id-000000000000",
49
+
input:"click the first link on the page"
50
+
)
51
+
52
+
stream.each do |session|
53
+
puts(session.data)
54
+
end
55
+
```
56
+
42
57
### Handling errors
43
58
44
59
When the library is unable to connect to the API, or if the API returns a non-success status code (i.e., 4xx or 5xx response), a subclass of `Stagehand::Errors::APIError` will be thrown:
# @param model_name [String] Model name string without prefix (e.g., 'gpt-5-nano', 'claude-4.5-opus')
36
42
#
37
43
# @param api_key [String] API key for the model provider
38
44
#
39
45
# @param base_url [String] Base URL for the model provider
46
+
#
47
+
# @param provider [Symbol, Stagehand::Models::ModelConfig::ModelConfigObject::Provider] AI provider for the model (or provide a baseURL endpoint instead)
48
+
49
+
# AI provider for the model (or provide a baseURL endpoint instead)
# Some parameter documentations has been truncated, see
93
99
# {Stagehand::Models::SessionExecuteParams::AgentConfig} for more details.
94
100
#
95
101
# @param cua [Boolean] Enable Computer Use Agent mode
96
102
#
97
103
# @param model [String, Stagehand::Models::ModelConfig::ModelConfigObject] Model name string with provider prefix (e.g., 'openai/gpt-5-nano', 'anthropic/cl
98
104
#
105
+
# @param provider [Symbol, Stagehand::Models::SessionExecuteParams::AgentConfig::Provider] AI provider for the agent (legacy, use model: openai/gpt-5-nano instead)
106
+
#
99
107
# @param system_prompt [String] Custom system prompt for the agent
108
+
109
+
# AI provider for the agent (legacy, use model: openai/gpt-5-nano instead)
0 commit comments