Skip to content

Commit 82ec7cd

Browse files
committed
format: run cargo fmt
1 parent 2119f55 commit 82ec7cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

rustv1/examples/bedrock-agent-runtime/src/bin/invoke-agent.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ async fn main() -> Result<(), Box<bedrockagentruntime::Error>> {
1212
Ok(())
1313
}
1414

15-
async fn invoke_bedrock_agent(prompt: String, session_id: String) -> Result<String, bedrockagentruntime::Error> {
15+
async fn invoke_bedrock_agent(
16+
prompt: String,
17+
session_id: String,
18+
) -> Result<String, bedrockagentruntime::Error> {
1619
let sdk_config: SdkConfig = aws_config::defaults(BehaviorVersion::latest())
1720
.region(BEDROCK_AGENT_REGION)
1821
.load()
@@ -42,7 +45,7 @@ async fn invoke_bedrock_agent(prompt: String, session_id: String) -> Result<Stri
4245
}
4346
Err(e) => {
4447
eprintln!("UTF-8 decoding error for chunk: {}", e);
45-
}
48+
}
4649
}
4750
}
4851
}
@@ -54,5 +57,3 @@ async fn invoke_bedrock_agent(prompt: String, session_id: String) -> Result<Stri
5457

5558
Ok(full_agent_text_response)
5659
}
57-
58-

0 commit comments

Comments
 (0)