@aws-sdk/client-bedrock-agent 3.686.0 → 3.691.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +516 -49
  3. package/dist-es/BedrockAgent.js +2 -0
  4. package/dist-es/commands/CreatePromptCommand.js +1 -1
  5. package/dist-es/commands/CreatePromptVersionCommand.js +1 -1
  6. package/dist-es/commands/GetAgentVersionCommand.js +1 -1
  7. package/dist-es/commands/GetPromptCommand.js +1 -1
  8. package/dist-es/commands/UpdatePromptCommand.js +1 -1
  9. package/dist-es/commands/ValidateFlowDefinitionCommand.js +23 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/index.js +1 -0
  12. package/dist-es/models/models_0.js +239 -41
  13. package/dist-es/models/models_1.js +69 -0
  14. package/dist-es/protocols/Aws_restJson1.js +141 -5
  15. package/dist-types/BedrockAgent.d.ts +7 -0
  16. package/dist-types/BedrockAgentClient.d.ts +3 -2
  17. package/dist-types/commands/CreateFlowCommand.d.ts +102 -2
  18. package/dist-types/commands/CreateFlowVersionCommand.d.ts +51 -1
  19. package/dist-types/commands/CreatePromptCommand.d.ts +97 -3
  20. package/dist-types/commands/CreatePromptVersionCommand.d.ts +49 -2
  21. package/dist-types/commands/DeleteAgentVersionCommand.d.ts +1 -1
  22. package/dist-types/commands/DeletePromptCommand.d.ts +1 -1
  23. package/dist-types/commands/GetAgentVersionCommand.d.ts +1 -1
  24. package/dist-types/commands/GetFlowCommand.d.ts +137 -1
  25. package/dist-types/commands/GetFlowVersionCommand.d.ts +51 -1
  26. package/dist-types/commands/GetPromptCommand.d.ts +49 -2
  27. package/dist-types/commands/ListAgentKnowledgeBasesCommand.d.ts +1 -1
  28. package/dist-types/commands/ListAgentVersionsCommand.d.ts +1 -1
  29. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +1 -1
  30. package/dist-types/commands/ListPromptsCommand.d.ts +1 -1
  31. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  32. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  33. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateAgentKnowledgeBaseCommand.d.ts +1 -1
  35. package/dist-types/commands/UpdateFlowCommand.d.ts +102 -2
  36. package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +1 -1
  37. package/dist-types/commands/UpdatePromptCommand.d.ts +97 -3
  38. package/dist-types/commands/ValidateFlowDefinitionCommand.d.ts +335 -0
  39. package/dist-types/commands/index.d.ts +1 -0
  40. package/dist-types/models/index.d.ts +1 -0
  41. package/dist-types/models/models_0.d.ts +2286 -1582
  42. package/dist-types/models/models_1.d.ts +974 -0
  43. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  44. package/dist-types/ts3.4/BedrockAgent.d.ts +17 -0
  45. package/dist-types/ts3.4/BedrockAgentClient.d.ts +8 -2
  46. package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/CreatePromptVersionCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/DeleteAgentVersionCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/GetAgentVersionCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/GetPromptCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/ListAgentKnowledgeBasesCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/ListAgentVersionsCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/ListPromptsCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/UpdateAgentKnowledgeBaseCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/UpdateKnowledgeBaseCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/ValidateFlowDefinitionCommand.d.ts +51 -0
  63. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  64. package/dist-types/ts3.4/models/index.d.ts +1 -0
  65. package/dist-types/ts3.4/models/models_0.d.ts +1395 -495
  66. package/dist-types/ts3.4/models/models_1.d.ts +287 -0
  67. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  68. package/package.json +7 -7
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
4
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { UpdateAgentKnowledgeBaseRequest, UpdateAgentKnowledgeBaseResponse } from "../models/models_0";
4
+ import { UpdateAgentKnowledgeBaseRequest, UpdateAgentKnowledgeBaseResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -50,6 +50,10 @@ declare const UpdateFlowCommand_base: {
50
50
  * knowledgeBase: { // KnowledgeBaseFlowNodeConfiguration
51
51
  * knowledgeBaseId: "STRING_VALUE", // required
52
52
  * modelId: "STRING_VALUE",
53
+ * guardrailConfiguration: { // GuardrailConfiguration
54
+ * guardrailIdentifier: "STRING_VALUE",
55
+ * guardrailVersion: "STRING_VALUE",
56
+ * },
53
57
  * },
54
58
  * condition: { // ConditionFlowNodeConfiguration
55
59
  * conditions: [ // FlowConditions // required
@@ -69,7 +73,7 @@ declare const UpdateFlowCommand_base: {
69
73
  * promptArn: "STRING_VALUE", // required
70
74
  * },
71
75
  * inline: { // PromptFlowNodeInlineConfiguration
72
- * templateType: "TEXT", // required
76
+ * templateType: "TEXT" || "CHAT", // required
73
77
  * templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
74
78
  * text: { // TextPromptTemplateConfiguration
75
79
  * text: "STRING_VALUE", // required
@@ -79,6 +83,48 @@ declare const UpdateFlowCommand_base: {
79
83
  * },
80
84
  * ],
81
85
  * },
86
+ * chat: { // ChatPromptTemplateConfiguration
87
+ * messages: [ // Messages // required
88
+ * { // Message
89
+ * role: "user" || "assistant", // required
90
+ * content: [ // ContentBlocks // required
91
+ * { // ContentBlock Union: only one key present
92
+ * text: "STRING_VALUE",
93
+ * },
94
+ * ],
95
+ * },
96
+ * ],
97
+ * system: [ // SystemContentBlocks
98
+ * { // SystemContentBlock Union: only one key present
99
+ * text: "STRING_VALUE",
100
+ * },
101
+ * ],
102
+ * inputVariables: [
103
+ * {
104
+ * name: "STRING_VALUE",
105
+ * },
106
+ * ],
107
+ * toolConfiguration: { // ToolConfiguration
108
+ * tools: [ // Tools // required
109
+ * { // Tool Union: only one key present
110
+ * toolSpec: { // ToolSpecification
111
+ * name: "STRING_VALUE", // required
112
+ * description: "STRING_VALUE",
113
+ * inputSchema: { // ToolInputSchema Union: only one key present
114
+ * json: "DOCUMENT_VALUE",
115
+ * },
116
+ * },
117
+ * },
118
+ * ],
119
+ * toolChoice: { // ToolChoice Union: only one key present
120
+ * auto: {},
121
+ * any: {},
122
+ * tool: { // SpecificToolChoice
123
+ * name: "STRING_VALUE", // required
124
+ * },
125
+ * },
126
+ * },
127
+ * },
82
128
  * },
83
129
  * modelId: "STRING_VALUE", // required
84
130
  * inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
@@ -94,6 +140,10 @@ declare const UpdateFlowCommand_base: {
94
140
  * additionalModelRequestFields: "DOCUMENT_VALUE",
95
141
  * },
96
142
  * },
143
+ * guardrailConfiguration: {
144
+ * guardrailIdentifier: "STRING_VALUE",
145
+ * guardrailVersion: "STRING_VALUE",
146
+ * },
97
147
  * },
98
148
  * lambdaFunction: { // LambdaFunctionFlowNodeConfiguration
99
149
  * lambdaArn: "STRING_VALUE", // required
@@ -177,6 +227,10 @@ declare const UpdateFlowCommand_base: {
177
227
  * // knowledgeBase: { // KnowledgeBaseFlowNodeConfiguration
178
228
  * // knowledgeBaseId: "STRING_VALUE", // required
179
229
  * // modelId: "STRING_VALUE",
230
+ * // guardrailConfiguration: { // GuardrailConfiguration
231
+ * // guardrailIdentifier: "STRING_VALUE",
232
+ * // guardrailVersion: "STRING_VALUE",
233
+ * // },
180
234
  * // },
181
235
  * // condition: { // ConditionFlowNodeConfiguration
182
236
  * // conditions: [ // FlowConditions // required
@@ -196,7 +250,7 @@ declare const UpdateFlowCommand_base: {
196
250
  * // promptArn: "STRING_VALUE", // required
197
251
  * // },
198
252
  * // inline: { // PromptFlowNodeInlineConfiguration
199
- * // templateType: "TEXT", // required
253
+ * // templateType: "TEXT" || "CHAT", // required
200
254
  * // templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
201
255
  * // text: { // TextPromptTemplateConfiguration
202
256
  * // text: "STRING_VALUE", // required
@@ -206,6 +260,48 @@ declare const UpdateFlowCommand_base: {
206
260
  * // },
207
261
  * // ],
208
262
  * // },
263
+ * // chat: { // ChatPromptTemplateConfiguration
264
+ * // messages: [ // Messages // required
265
+ * // { // Message
266
+ * // role: "user" || "assistant", // required
267
+ * // content: [ // ContentBlocks // required
268
+ * // { // ContentBlock Union: only one key present
269
+ * // text: "STRING_VALUE",
270
+ * // },
271
+ * // ],
272
+ * // },
273
+ * // ],
274
+ * // system: [ // SystemContentBlocks
275
+ * // { // SystemContentBlock Union: only one key present
276
+ * // text: "STRING_VALUE",
277
+ * // },
278
+ * // ],
279
+ * // inputVariables: [
280
+ * // {
281
+ * // name: "STRING_VALUE",
282
+ * // },
283
+ * // ],
284
+ * // toolConfiguration: { // ToolConfiguration
285
+ * // tools: [ // Tools // required
286
+ * // { // Tool Union: only one key present
287
+ * // toolSpec: { // ToolSpecification
288
+ * // name: "STRING_VALUE", // required
289
+ * // description: "STRING_VALUE",
290
+ * // inputSchema: { // ToolInputSchema Union: only one key present
291
+ * // json: "DOCUMENT_VALUE",
292
+ * // },
293
+ * // },
294
+ * // },
295
+ * // ],
296
+ * // toolChoice: { // ToolChoice Union: only one key present
297
+ * // auto: {},
298
+ * // any: {},
299
+ * // tool: { // SpecificToolChoice
300
+ * // name: "STRING_VALUE", // required
301
+ * // },
302
+ * // },
303
+ * // },
304
+ * // },
209
305
  * // },
210
306
  * // modelId: "STRING_VALUE", // required
211
307
  * // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
@@ -221,6 +317,10 @@ declare const UpdateFlowCommand_base: {
221
317
  * // additionalModelRequestFields: "DOCUMENT_VALUE",
222
318
  * // },
223
319
  * // },
320
+ * // guardrailConfiguration: {
321
+ * // guardrailIdentifier: "STRING_VALUE",
322
+ * // guardrailVersion: "STRING_VALUE",
323
+ * // },
224
324
  * // },
225
325
  * // lambdaFunction: { // LambdaFunctionFlowNodeConfiguration
226
326
  * // lambdaArn: "STRING_VALUE", // required
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { UpdateKnowledgeBaseRequest, UpdateKnowledgeBaseResponse } from "../models/models_0";
4
+ import { UpdateKnowledgeBaseRequest, UpdateKnowledgeBaseResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { UpdatePromptRequest, UpdatePromptResponse } from "../models/models_0";
4
+ import { UpdatePromptRequest, UpdatePromptResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -42,7 +42,7 @@ declare const UpdatePromptCommand_base: {
42
42
  * variants: [ // PromptVariantList
43
43
  * { // PromptVariant
44
44
  * name: "STRING_VALUE", // required
45
- * templateType: "TEXT", // required
45
+ * templateType: "TEXT" || "CHAT", // required
46
46
  * templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
47
47
  * text: { // TextPromptTemplateConfiguration
48
48
  * text: "STRING_VALUE", // required
@@ -52,6 +52,48 @@ declare const UpdatePromptCommand_base: {
52
52
  * },
53
53
  * ],
54
54
  * },
55
+ * chat: { // ChatPromptTemplateConfiguration
56
+ * messages: [ // Messages // required
57
+ * { // Message
58
+ * role: "user" || "assistant", // required
59
+ * content: [ // ContentBlocks // required
60
+ * { // ContentBlock Union: only one key present
61
+ * text: "STRING_VALUE",
62
+ * },
63
+ * ],
64
+ * },
65
+ * ],
66
+ * system: [ // SystemContentBlocks
67
+ * { // SystemContentBlock Union: only one key present
68
+ * text: "STRING_VALUE",
69
+ * },
70
+ * ],
71
+ * inputVariables: [
72
+ * {
73
+ * name: "STRING_VALUE",
74
+ * },
75
+ * ],
76
+ * toolConfiguration: { // ToolConfiguration
77
+ * tools: [ // Tools // required
78
+ * { // Tool Union: only one key present
79
+ * toolSpec: { // ToolSpecification
80
+ * name: "STRING_VALUE", // required
81
+ * description: "STRING_VALUE",
82
+ * inputSchema: { // ToolInputSchema Union: only one key present
83
+ * json: "DOCUMENT_VALUE",
84
+ * },
85
+ * },
86
+ * },
87
+ * ],
88
+ * toolChoice: { // ToolChoice Union: only one key present
89
+ * auto: {},
90
+ * any: {},
91
+ * tool: { // SpecificToolChoice
92
+ * name: "STRING_VALUE", // required
93
+ * },
94
+ * },
95
+ * },
96
+ * },
55
97
  * },
56
98
  * modelId: "STRING_VALUE",
57
99
  * inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
@@ -71,6 +113,11 @@ declare const UpdatePromptCommand_base: {
71
113
  * },
72
114
  * ],
73
115
  * additionalModelRequestFields: "DOCUMENT_VALUE",
116
+ * genAiResource: { // PromptGenAiResource Union: only one key present
117
+ * agent: { // PromptAgentResource
118
+ * agentIdentifier: "STRING_VALUE", // required
119
+ * },
120
+ * },
74
121
  * },
75
122
  * ],
76
123
  * promptIdentifier: "STRING_VALUE", // required
@@ -85,7 +132,7 @@ declare const UpdatePromptCommand_base: {
85
132
  * // variants: [ // PromptVariantList
86
133
  * // { // PromptVariant
87
134
  * // name: "STRING_VALUE", // required
88
- * // templateType: "TEXT", // required
135
+ * // templateType: "TEXT" || "CHAT", // required
89
136
  * // templateConfiguration: { // PromptTemplateConfiguration Union: only one key present
90
137
  * // text: { // TextPromptTemplateConfiguration
91
138
  * // text: "STRING_VALUE", // required
@@ -95,6 +142,48 @@ declare const UpdatePromptCommand_base: {
95
142
  * // },
96
143
  * // ],
97
144
  * // },
145
+ * // chat: { // ChatPromptTemplateConfiguration
146
+ * // messages: [ // Messages // required
147
+ * // { // Message
148
+ * // role: "user" || "assistant", // required
149
+ * // content: [ // ContentBlocks // required
150
+ * // { // ContentBlock Union: only one key present
151
+ * // text: "STRING_VALUE",
152
+ * // },
153
+ * // ],
154
+ * // },
155
+ * // ],
156
+ * // system: [ // SystemContentBlocks
157
+ * // { // SystemContentBlock Union: only one key present
158
+ * // text: "STRING_VALUE",
159
+ * // },
160
+ * // ],
161
+ * // inputVariables: [
162
+ * // {
163
+ * // name: "STRING_VALUE",
164
+ * // },
165
+ * // ],
166
+ * // toolConfiguration: { // ToolConfiguration
167
+ * // tools: [ // Tools // required
168
+ * // { // Tool Union: only one key present
169
+ * // toolSpec: { // ToolSpecification
170
+ * // name: "STRING_VALUE", // required
171
+ * // description: "STRING_VALUE",
172
+ * // inputSchema: { // ToolInputSchema Union: only one key present
173
+ * // json: "DOCUMENT_VALUE",
174
+ * // },
175
+ * // },
176
+ * // },
177
+ * // ],
178
+ * // toolChoice: { // ToolChoice Union: only one key present
179
+ * // auto: {},
180
+ * // any: {},
181
+ * // tool: { // SpecificToolChoice
182
+ * // name: "STRING_VALUE", // required
183
+ * // },
184
+ * // },
185
+ * // },
186
+ * // },
98
187
  * // },
99
188
  * // modelId: "STRING_VALUE",
100
189
  * // inferenceConfiguration: { // PromptInferenceConfiguration Union: only one key present
@@ -114,6 +203,11 @@ declare const UpdatePromptCommand_base: {
114
203
  * // },
115
204
  * // ],
116
205
  * // additionalModelRequestFields: "DOCUMENT_VALUE",
206
+ * // genAiResource: { // PromptGenAiResource Union: only one key present
207
+ * // agent: { // PromptAgentResource
208
+ * // agentIdentifier: "STRING_VALUE", // required
209
+ * // },
210
+ * // },
117
211
  * // },
118
212
  * // ],
119
213
  * // id: "STRING_VALUE", // required