Skip to content

Commit 1d7b1c1

Browse files
author
awstools
committed
feat(client-bedrock-runtime): This release adds Reasoning Content support to Converse and ConverseStream APIs
1 parent 9192742 commit 1d7b1c1

File tree

5 files changed

+435
-6
lines changed

5 files changed

+435
-6
lines changed

clients/client-bedrock-runtime/src/commands/ConverseCommand.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ export interface ConverseCommandOutput extends ConverseResponse, __MetadataBeare
146146
* },
147147
* },
148148
* },
149+
* reasoningContent: { // ReasoningContentBlock Union: only one key present
150+
* reasoningText: { // ReasoningTextBlock
151+
* text: "STRING_VALUE", // required
152+
* signature: "STRING_VALUE",
153+
* },
154+
* redactedContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
155+
* },
149156
* },
150157
* ],
151158
* },
@@ -302,6 +309,13 @@ export interface ConverseCommandOutput extends ConverseResponse, __MetadataBeare
302309
* // },
303310
* // },
304311
* // },
312+
* // reasoningContent: { // ReasoningContentBlock Union: only one key present
313+
* // reasoningText: { // ReasoningTextBlock
314+
* // text: "STRING_VALUE", // required
315+
* // signature: "STRING_VALUE",
316+
* // },
317+
* // redactedContent: new Uint8Array(),
318+
* // },
305319
* // },
306320
* // ],
307321
* // },

clients/client-bedrock-runtime/src/commands/ConverseStreamCommand.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@ export interface ConverseStreamCommandOutput extends ConverseStreamResponse, __M
152152
* },
153153
* },
154154
* },
155+
* reasoningContent: { // ReasoningContentBlock Union: only one key present
156+
* reasoningText: { // ReasoningTextBlock
157+
* text: "STRING_VALUE", // required
158+
* signature: "STRING_VALUE",
159+
* },
160+
* redactedContent: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
161+
* },
155162
* },
156163
* ],
157164
* },
@@ -247,6 +254,11 @@ export interface ConverseStreamCommandOutput extends ConverseStreamResponse, __M
247254
* // toolUse: { // ToolUseBlockDelta
248255
* // input: "STRING_VALUE", // required
249256
* // },
257+
* // reasoningContent: { // ReasoningContentBlockDelta Union: only one key present
258+
* // text: "STRING_VALUE",
259+
* // redactedContent: new Uint8Array(),
260+
* // signature: "STRING_VALUE",
261+
* // },
250262
* // },
251263
* // contentBlockIndex: Number("int"), // required
252264
* // },

0 commit comments

Comments
 (0)