File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
rustv1/examples/bedrock-agent-runtime Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ edition = "2021"
66[dependencies ]
77aws-config = " 1.6.3"
88aws-sdk-bedrockagentruntime = " 1.98.0"
9+ aws-smithy-runtime-api = " 1.8.1"
910aws-smithy-types = " 1.3.2"
1011mockall = " 0.13.1"
1112tokio = { version = " 1.45.1" , features = [" full" ] }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -133,4 +133,18 @@ mod test {
133133
134134 assert_eq ! ( "test completion" , response) ;
135135 }
136+
137+ // #[tokio::test]
138+ // async fn test_process_agent_response_stream_error() {
139+ // let mut mock = MockEventReceiverImpl::default();
140+ // mock.expect_recv().times(1).returning(|| {
141+ // Err(aws_sdk_bedrockagentruntime::error::SdkError::TimeoutError(
142+ // aws_smithy_runtime_api::client::result::TimeoutError::builder().build(),
143+ // ))
144+ // });
145+ //
146+ // let response = process_agent_response_stream(mock).await.unwrap();
147+ //
148+ // assert_eq!("test completion", response);
149+ // }
136150}
You can’t perform that action at this time.
0 commit comments