Skip to content

Commit 40ffa77

Browse files
author
awstools
committed
feat(client-bedrock-runtime): This release includes support for Search Results.
1 parent f857066 commit 40ffa77

File tree

6 files changed

+433
-9
lines changed

6 files changed

+433
-9
lines changed

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

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ export interface ConverseCommandOutput extends ConverseResponse, __MetadataBeare
135135
* s3Location: "<S3Location>",
136136
* },
137137
* },
138+
* searchResult: { // SearchResultBlock
139+
* source: "STRING_VALUE", // required
140+
* title: "STRING_VALUE", // required
141+
* content: [ // SearchResultContentBlocks // required
142+
* { // SearchResultContentBlock
143+
* text: "STRING_VALUE", // required
144+
* },
145+
* ],
146+
* citations: {
147+
* enabled: true || false, // required
148+
* },
149+
* },
138150
* },
139151
* ],
140152
* status: "success" || "error",
@@ -173,6 +185,7 @@ export interface ConverseCommandOutput extends ConverseResponse, __MetadataBeare
173185
* citations: [ // Citations
174186
* { // Citation
175187
* title: "STRING_VALUE",
188+
* source: "STRING_VALUE",
176189
* sourceContent: [ // CitationSourceContentList
177190
* { // CitationSourceContent Union: only one key present
178191
* text: "STRING_VALUE",
@@ -198,10 +211,27 @@ export interface ConverseCommandOutput extends ConverseResponse, __MetadataBeare
198211
* start: Number("int"),
199212
* end: Number("int"),
200213
* },
214+
* searchResultLocation: { // SearchResultLocation
215+
* searchResultIndex: Number("int"),
216+
* start: Number("int"),
217+
* end: Number("int"),
218+
* },
201219
* },
202220
* },
203221
* ],
204222
* },
223+
* searchResult: {
224+
* source: "STRING_VALUE", // required
225+
* title: "STRING_VALUE", // required
226+
* content: [ // required
227+
* {
228+
* text: "STRING_VALUE", // required
229+
* },
230+
* ],
231+
* citations: {
232+
* enabled: true || false, // required
233+
* },
234+
* },
205235
* },
206236
* ],
207237
* },
@@ -384,6 +414,18 @@ export interface ConverseCommandOutput extends ConverseResponse, __MetadataBeare
384414
* // s3Location: "<S3Location>",
385415
* // },
386416
* // },
417+
* // searchResult: { // SearchResultBlock
418+
* // source: "STRING_VALUE", // required
419+
* // title: "STRING_VALUE", // required
420+
* // content: [ // SearchResultContentBlocks // required
421+
* // { // SearchResultContentBlock
422+
* // text: "STRING_VALUE", // required
423+
* // },
424+
* // ],
425+
* // citations: {
426+
* // enabled: true || false, // required
427+
* // },
428+
* // },
387429
* // },
388430
* // ],
389431
* // status: "success" || "error",
@@ -422,6 +464,7 @@ export interface ConverseCommandOutput extends ConverseResponse, __MetadataBeare
422464
* // citations: [ // Citations
423465
* // { // Citation
424466
* // title: "STRING_VALUE",
467+
* // source: "STRING_VALUE",
425468
* // sourceContent: [ // CitationSourceContentList
426469
* // { // CitationSourceContent Union: only one key present
427470
* // text: "STRING_VALUE",
@@ -447,10 +490,27 @@ export interface ConverseCommandOutput extends ConverseResponse, __MetadataBeare
447490
* // start: Number("int"),
448491
* // end: Number("int"),
449492
* // },
493+
* // searchResultLocation: { // SearchResultLocation
494+
* // searchResultIndex: Number("int"),
495+
* // start: Number("int"),
496+
* // end: Number("int"),
497+
* // },
450498
* // },
451499
* // },
452500
* // ],
453501
* // },
502+
* // searchResult: {
503+
* // source: "STRING_VALUE", // required
504+
* // title: "STRING_VALUE", // required
505+
* // content: [ // required
506+
* // {
507+
* // text: "STRING_VALUE", // required
508+
* // },
509+
* // ],
510+
* // citations: {
511+
* // enabled: true || false, // required
512+
* // },
513+
* // },
454514
* // },
455515
* // ],
456516
* // },

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,18 @@ export interface ConverseStreamCommandOutput extends ConverseStreamResponse, __M
135135
* s3Location: "<S3Location>",
136136
* },
137137
* },
138+
* searchResult: { // SearchResultBlock
139+
* source: "STRING_VALUE", // required
140+
* title: "STRING_VALUE", // required
141+
* content: [ // SearchResultContentBlocks // required
142+
* { // SearchResultContentBlock
143+
* text: "STRING_VALUE", // required
144+
* },
145+
* ],
146+
* citations: {
147+
* enabled: true || false, // required
148+
* },
149+
* },
138150
* },
139151
* ],
140152
* status: "success" || "error",
@@ -173,6 +185,7 @@ export interface ConverseStreamCommandOutput extends ConverseStreamResponse, __M
173185
* citations: [ // Citations
174186
* { // Citation
175187
* title: "STRING_VALUE",
188+
* source: "STRING_VALUE",
176189
* sourceContent: [ // CitationSourceContentList
177190
* { // CitationSourceContent Union: only one key present
178191
* text: "STRING_VALUE",
@@ -198,10 +211,27 @@ export interface ConverseStreamCommandOutput extends ConverseStreamResponse, __M
198211
* start: Number("int"),
199212
* end: Number("int"),
200213
* },
214+
* searchResultLocation: { // SearchResultLocation
215+
* searchResultIndex: Number("int"),
216+
* start: Number("int"),
217+
* end: Number("int"),
218+
* },
201219
* },
202220
* },
203221
* ],
204222
* },
223+
* searchResult: {
224+
* source: "STRING_VALUE", // required
225+
* title: "STRING_VALUE", // required
226+
* content: [ // required
227+
* {
228+
* text: "STRING_VALUE", // required
229+
* },
230+
* ],
231+
* citations: {
232+
* enabled: true || false, // required
233+
* },
234+
* },
205235
* },
206236
* ],
207237
* },
@@ -325,6 +355,7 @@ export interface ConverseStreamCommandOutput extends ConverseStreamResponse, __M
325355
* // },
326356
* // citation: { // CitationsDelta
327357
* // title: "STRING_VALUE",
358+
* // source: "STRING_VALUE",
328359
* // sourceContent: [ // CitationSourceContentListDelta
329360
* // { // CitationSourceContentDelta
330361
* // text: "STRING_VALUE",
@@ -350,6 +381,11 @@ export interface ConverseStreamCommandOutput extends ConverseStreamResponse, __M
350381
* // start: Number("int"),
351382
* // end: Number("int"),
352383
* // },
384+
* // searchResultLocation: { // SearchResultLocation
385+
* // searchResultIndex: Number("int"),
386+
* // start: Number("int"),
387+
* // end: Number("int"),
388+
* // },
353389
* // },
354390
* // },
355391
* // },

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@ export interface CountTokensCommandOutput extends CountTokensResponse, __Metadat
140140
* s3Location: "<S3Location>",
141141
* },
142142
* },
143+
* searchResult: { // SearchResultBlock
144+
* source: "STRING_VALUE", // required
145+
* title: "STRING_VALUE", // required
146+
* content: [ // SearchResultContentBlocks // required
147+
* { // SearchResultContentBlock
148+
* text: "STRING_VALUE", // required
149+
* },
150+
* ],
151+
* citations: {
152+
* enabled: true || false, // required
153+
* },
154+
* },
143155
* },
144156
* ],
145157
* status: "success" || "error",
@@ -178,6 +190,7 @@ export interface CountTokensCommandOutput extends CountTokensResponse, __Metadat
178190
* citations: [ // Citations
179191
* { // Citation
180192
* title: "STRING_VALUE",
193+
* source: "STRING_VALUE",
181194
* sourceContent: [ // CitationSourceContentList
182195
* { // CitationSourceContent Union: only one key present
183196
* text: "STRING_VALUE",
@@ -203,10 +216,27 @@ export interface CountTokensCommandOutput extends CountTokensResponse, __Metadat
203216
* start: Number("int"),
204217
* end: Number("int"),
205218
* },
219+
* searchResultLocation: { // SearchResultLocation
220+
* searchResultIndex: Number("int"),
221+
* start: Number("int"),
222+
* end: Number("int"),
223+
* },
206224
* },
207225
* },
208226
* ],
209227
* },
228+
* searchResult: {
229+
* source: "STRING_VALUE", // required
230+
* title: "STRING_VALUE", // required
231+
* content: [ // required
232+
* {
233+
* text: "STRING_VALUE", // required
234+
* },
235+
* ],
236+
* citations: {
237+
* enabled: true || false, // required
238+
* },
239+
* },
210240
* },
211241
* ],
212242
* },

0 commit comments

Comments
 (0)