Skip to content

Commit c63da47

Browse files
Update SDK models
1 parent d7169f2 commit c63da47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1038
-136
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[workspace]
22
resolver = "2"
33
exclude = [
4-
"tests/no-default-features",
54
"tests/telemetry",
6-
"tests/webassembly"
5+
"tests/webassembly",
6+
"tests/no-default-features"
77
]
88
members = [
99
"sdk/accessanalyzer",

aws-models/bedrock-runtime.json

Lines changed: 166 additions & 31 deletions
Large diffs are not rendered by default.

sdk/bedrockruntime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
22
[package]
33
name = "aws-sdk-bedrockruntime"
4-
version = "1.110.0"
4+
version = "1.111.0"
55
authors = ["AWS Rust SDK Team <[email protected]>", "Russell Cohen <[email protected]>"]
66
description = "AWS SDK for Amazon Bedrock Runtime"
77
edition = "2021"

sdk/bedrockruntime/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ your project, add the following to your **Cargo.toml** file:
1414
```toml
1515
[dependencies]
1616
aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
17-
aws-sdk-bedrockruntime = "1.110.0"
17+
aws-sdk-bedrockruntime = "1.111.0"
1818
tokio = { version = "1", features = ["full"] }
1919
```
2020

sdk/bedrockruntime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
//! ```toml
3434
//! [dependencies]
3535
//! aws-config = { version = "1.1.7", features = ["behavior-version-latest"] }
36-
//! aws-sdk-bedrockruntime = "1.110.0"
36+
//! aws-sdk-bedrockruntime = "1.111.0"
3737
//! tokio = { version = "1", features = ["full"] }
3838
//! ```
3939
//!

sdk/bedrockruntime/src/protocol_serde.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@ pub(crate) mod shape_reasoning_content_block;
239239

240240
pub(crate) mod shape_specific_tool_choice;
241241

242+
pub(crate) mod shape_system_tool;
243+
242244
pub(crate) mod shape_tool_result_block;
243245

244246
pub(crate) mod shape_tool_specification;
@@ -319,6 +321,10 @@ pub(crate) mod shape_reasoning_content_block_delta;
319321

320322
pub(crate) mod shape_s3_location;
321323

324+
pub(crate) mod shape_tool_result_block_start;
325+
326+
pub(crate) mod shape_tool_result_blocks_delta;
327+
322328
pub(crate) mod shape_tool_use_block_delta;
323329

324330
pub(crate) mod shape_tool_use_block_start;
@@ -349,8 +355,12 @@ pub(crate) mod shape_guardrail_automated_reasoning_translation_ambiguous_finding
349355

350356
pub(crate) mod shape_guardrail_automated_reasoning_valid_finding;
351357

358+
pub(crate) mod shape_tool_result_block_delta;
359+
352360
pub(crate) mod shape_tool_result_content_blocks;
353361

362+
pub(crate) mod shape_web_location;
363+
354364
pub(crate) mod shape_citation_source_content_delta;
355365

356366
pub(crate) mod shape_document_content_blocks;

sdk/bedrockruntime/src/protocol_serde/shape_citation_location.rs

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,30 @@ pub fn ser_citation_location(
44
input: &crate::types::CitationLocation,
55
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
66
match input {
7-
crate::types::CitationLocation::DocumentChar(inner) => {
7+
crate::types::CitationLocation::Web(inner) => {
88
#[allow(unused_mut)]
9-
let mut object_1 = object_7.key("documentChar").start_object();
10-
crate::protocol_serde::shape_document_char_location::ser_document_char_location(&mut object_1, inner)?;
9+
let mut object_1 = object_7.key("web").start_object();
10+
crate::protocol_serde::shape_web_location::ser_web_location(&mut object_1, inner)?;
1111
object_1.finish();
1212
}
13-
crate::types::CitationLocation::DocumentPage(inner) => {
13+
crate::types::CitationLocation::DocumentChar(inner) => {
1414
#[allow(unused_mut)]
15-
let mut object_2 = object_7.key("documentPage").start_object();
16-
crate::protocol_serde::shape_document_page_location::ser_document_page_location(&mut object_2, inner)?;
15+
let mut object_2 = object_7.key("documentChar").start_object();
16+
crate::protocol_serde::shape_document_char_location::ser_document_char_location(&mut object_2, inner)?;
1717
object_2.finish();
1818
}
19-
crate::types::CitationLocation::DocumentChunk(inner) => {
19+
crate::types::CitationLocation::DocumentPage(inner) => {
2020
#[allow(unused_mut)]
21-
let mut object_3 = object_7.key("documentChunk").start_object();
22-
crate::protocol_serde::shape_document_chunk_location::ser_document_chunk_location(&mut object_3, inner)?;
21+
let mut object_3 = object_7.key("documentPage").start_object();
22+
crate::protocol_serde::shape_document_page_location::ser_document_page_location(&mut object_3, inner)?;
2323
object_3.finish();
2424
}
25+
crate::types::CitationLocation::DocumentChunk(inner) => {
26+
#[allow(unused_mut)]
27+
let mut object_4 = object_7.key("documentChunk").start_object();
28+
crate::protocol_serde::shape_document_chunk_location::ser_document_chunk_location(&mut object_4, inner)?;
29+
object_4.finish();
30+
}
2531
crate::types::CitationLocation::Unknown => {
2632
return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
2733
"CitationLocation",
@@ -61,6 +67,10 @@ where
6167
));
6268
}
6369
variant = match key.as_ref() {
70+
"web" => Some(crate::types::CitationLocation::Web(
71+
crate::protocol_serde::shape_web_location::de_web_location(tokens)?
72+
.ok_or_else(|| ::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'web' cannot be null"))?,
73+
)),
6474
"documentChar" => Some(crate::types::CitationLocation::DocumentChar(
6575
crate::protocol_serde::shape_document_char_location::de_document_char_location(tokens)?.ok_or_else(|| {
6676
::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'documentChar' cannot be null")

sdk/bedrockruntime/src/protocol_serde/shape_content_block_delta.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ where
4040
::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'toolUse' cannot be null")
4141
})?,
4242
)),
43+
"toolResult" => Some(crate::types::ContentBlockDelta::ToolResult(
44+
crate::protocol_serde::shape_tool_result_blocks_delta::de_tool_result_blocks_delta(tokens)?.ok_or_else(|| {
45+
::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'toolResult' cannot be null")
46+
})?,
47+
)),
4348
"reasoningContent" => Some(crate::types::ContentBlockDelta::ReasoningContent(
4449
crate::protocol_serde::shape_reasoning_content_block_delta::de_reasoning_content_block_delta(tokens)?.ok_or_else(
4550
|| ::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'reasoningContent' cannot be null"),

sdk/bedrockruntime/src/protocol_serde/shape_content_block_start.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ where
3434
::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'toolUse' cannot be null")
3535
})?,
3636
)),
37+
"toolResult" => Some(crate::types::ContentBlockStart::ToolResult(
38+
crate::protocol_serde::shape_tool_result_block_start::de_tool_result_block_start(tokens)?.ok_or_else(|| {
39+
::aws_smithy_json::deserialize::error::DeserializeError::custom("value for 'toolResult' cannot be null")
40+
})?,
41+
)),
3742
_ => {
3843
::aws_smithy_json::deserialize::token::skip_value(tokens)?;
3944
Some(crate::types::ContentBlockStart::Unknown)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2+
pub fn ser_system_tool(
3+
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4+
input: &crate::types::SystemTool,
5+
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6+
{
7+
object.key("name").string(input.name.as_str());
8+
}
9+
Ok(())
10+
}

0 commit comments

Comments
 (0)