Skip to content

Commit f30b6a7

Browse files
committed
chore: remove unused anyhow
1 parent 242cda6 commit f30b6a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rustv1/examples/bedrock-agent-runtime/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
anyhow = "1.0.98"
87
aws-config = "1.6.3"
98
aws-sdk-bedrockagentruntime = "1.98.0"
109
tokio = { version = "1.45.1", features = ["full"] }

rustv1/examples/bedrock-agent-runtime/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const BEDROCK_AGENT_ALIAS_ID: &str = "AVKP1ITZAA";
66

77
#[::tokio::main]
88
async fn main() -> Result<(), Box<bedrockagentruntime::Error>> {
9-
let result = invoke_bedrock_agent("a prompt".to_string(), "random session id".to_string()).await?;
9+
let result = invoke_bedrock_agent("I need help.".to_string(), "123".to_string()).await?;
1010
println!("{}", result);
1111
Ok(())
1212
}
@@ -20,7 +20,8 @@ async fn invoke_bedrock_agent(prompt: String, session_id: String) -> Result<Stri
2020
.agent_id(BEDROCK_AGENT_ID)
2121
.agent_alias_id(BEDROCK_AGENT_ALIAS_ID)
2222
.session_id(session_id)
23-
.input_text(prompt);
23+
.input_text(prompt)
24+
.enable_trace(false);
2425

2526
let response = command_builder.send().await?;
2627

0 commit comments

Comments
 (0)