Skip to content

Commit 390c2f6

Browse files
authored
feat: Reify SSE state machine (#1428)
* feat: harden SSE state machine * feat: flatten GenericEventSource * Unbox retry strategy * doc comments
1 parent 43fc9fa commit 390c2f6

File tree

3 files changed

+258
-189
lines changed

3 files changed

+258
-189
lines changed

rig/rig-core/examples/anthropic_streaming.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rig::{
88
async fn main() -> Result<(), anyhow::Error> {
99
// Create streaming agent with a single context prompt
1010
let agent = anthropic::Client::from_env()
11-
.agent(anthropic::completion::CLAUDE_3_5_SONNET)
11+
.agent(anthropic::completion::CLAUDE_4_SONNET)
1212
.preamble("Be precise and concise.")
1313
.temperature(0.5)
1414
.build();

rig/rig-core/examples/anthropic_streaming_with_tools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async fn main() -> Result<(), anyhow::Error> {
8989
tracing_subscriber::fmt().init();
9090
// Create agent with a single context prompt and two tools
9191
let calculator_agent = providers::anthropic::Client::from_env()
92-
.agent(providers::anthropic::completion::CLAUDE_3_5_SONNET)
92+
.agent(providers::anthropic::completion::CLAUDE_4_SONNET)
9393
.preamble(
9494
"You are a calculator here to help the user perform arithmetic
9595
operations. Use the tools provided to answer the user's question.

0 commit comments

Comments
 (0)