@aws-sdk/client-bedrock-agent-runtime 3.556.0 → 3.561.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.
@@ -26,7 +26,7 @@ declare const InvokeAgentCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>Sends a prompt for the agent to process and respond to.</p>
29
+ * <p>Sends a prompt for the agent to process and respond to. Use return control event type for function calling.</p>
30
30
  * <note>
31
31
  * <p>The CLI doesn't support <code>InvokeAgent</code>.</p>
32
32
  * </note>
@@ -41,7 +41,10 @@ declare const InvokeAgentCommand_base: {
41
41
  * <p>End a conversation by setting <code>endSession</code> to <code>true</code>.</p>
42
42
  * </li>
43
43
  * <li>
44
- * <p>Include attributes for the session or prompt in the <code>sessionState</code> object.</p>
44
+ * <p>In the <code>sessionState</code> object, you can include attributes for the session or prompt or parameters returned from the action group.</p>
45
+ * </li>
46
+ * <li>
47
+ * <p>Use return control event type for function calling.</p>
45
48
  * </li>
46
49
  * </ul>
47
50
  * <p>The response is returned in the <code>bytes</code> field of the <code>chunk</code> object.</p>
@@ -70,13 +73,40 @@ declare const InvokeAgentCommand_base: {
70
73
  * promptSessionAttributes: { // PromptSessionAttributesMap
71
74
  * "<keys>": "STRING_VALUE",
72
75
  * },
76
+ * returnControlInvocationResults: [ // ReturnControlInvocationResults
77
+ * { // InvocationResultMember Union: only one key present
78
+ * apiResult: { // ApiResult
79
+ * actionGroup: "STRING_VALUE", // required
80
+ * httpMethod: "STRING_VALUE",
81
+ * apiPath: "STRING_VALUE",
82
+ * responseBody: { // ResponseBody
83
+ * "<keys>": { // ContentBody
84
+ * body: "STRING_VALUE",
85
+ * },
86
+ * },
87
+ * httpStatusCode: Number("int"),
88
+ * responseState: "FAILURE" || "REPROMPT",
89
+ * },
90
+ * functionResult: { // FunctionResult
91
+ * actionGroup: "STRING_VALUE", // required
92
+ * function: "STRING_VALUE",
93
+ * responseBody: {
94
+ * "<keys>": {
95
+ * body: "STRING_VALUE",
96
+ * },
97
+ * },
98
+ * responseState: "FAILURE" || "REPROMPT",
99
+ * },
100
+ * },
101
+ * ],
102
+ * invocationId: "STRING_VALUE",
73
103
  * },
74
104
  * agentId: "STRING_VALUE", // required
75
105
  * agentAliasId: "STRING_VALUE", // required
76
106
  * sessionId: "STRING_VALUE", // required
77
107
  * endSession: true || false,
78
108
  * enableTrace: true || false,
79
- * inputText: "STRING_VALUE", // required
109
+ * inputText: "STRING_VALUE",
80
110
  * };
81
111
  * const command = new InvokeAgentCommand(input);
82
112
  * const response = await client.send(command);
@@ -120,6 +150,7 @@ declare const InvokeAgentCommand_base: {
120
150
  * // agentId: "STRING_VALUE",
121
151
  * // agentAliasId: "STRING_VALUE",
122
152
  * // sessionId: "STRING_VALUE",
153
+ * // agentVersion: "STRING_VALUE",
123
154
  * // trace: { // Trace Union: only one key present
124
155
  * // preProcessingTrace: { // PreProcessingTrace Union: only one key present
125
156
  * // modelInvocationInput: { // ModelInvocationInput
@@ -177,6 +208,7 @@ declare const InvokeAgentCommand_base: {
177
208
  * // ],
178
209
  * // },
179
210
  * // },
211
+ * // function: "STRING_VALUE",
180
212
  * // },
181
213
  * // knowledgeBaseLookupInput: { // KnowledgeBaseLookupInput
182
214
  * // text: "STRING_VALUE",
@@ -264,6 +296,49 @@ declare const InvokeAgentCommand_base: {
264
296
  * // },
265
297
  * // },
266
298
  * // },
299
+ * // returnControl: { // ReturnControlPayload
300
+ * // invocationInputs: [ // InvocationInputs
301
+ * // { // InvocationInputMember Union: only one key present
302
+ * // apiInvocationInput: { // ApiInvocationInput
303
+ * // actionGroup: "STRING_VALUE", // required
304
+ * // httpMethod: "STRING_VALUE",
305
+ * // apiPath: "STRING_VALUE",
306
+ * // parameters: [ // ApiParameters
307
+ * // { // ApiParameter
308
+ * // name: "STRING_VALUE",
309
+ * // type: "STRING_VALUE",
310
+ * // value: "STRING_VALUE",
311
+ * // },
312
+ * // ],
313
+ * // requestBody: { // ApiRequestBody
314
+ * // content: { // ApiContentMap
315
+ * // "<keys>": { // PropertyParameters
316
+ * // properties: [ // ParameterList
317
+ * // {
318
+ * // name: "STRING_VALUE",
319
+ * // type: "STRING_VALUE",
320
+ * // value: "STRING_VALUE",
321
+ * // },
322
+ * // ],
323
+ * // },
324
+ * // },
325
+ * // },
326
+ * // },
327
+ * // functionInvocationInput: { // FunctionInvocationInput
328
+ * // actionGroup: "STRING_VALUE", // required
329
+ * // parameters: [ // FunctionParameters
330
+ * // { // FunctionParameter
331
+ * // name: "STRING_VALUE",
332
+ * // type: "STRING_VALUE",
333
+ * // value: "STRING_VALUE",
334
+ * // },
335
+ * // ],
336
+ * // function: "STRING_VALUE",
337
+ * // },
338
+ * // },
339
+ * // ],
340
+ * // invocationId: "STRING_VALUE",
341
+ * // },
267
342
  * // internalServerException: { // InternalServerException
268
343
  * // message: "STRING_VALUE",
269
344
  * // },
@@ -322,7 +397,7 @@ declare const InvokeAgentCommand_base: {
322
397
  * <p>An internal server error occurred. Retry your request.</p>
323
398
  *
324
399
  * @throws {@link ResourceNotFoundException} (client fault)
325
- * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
400
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
326
401
  *
327
402
  * @throws {@link ServiceQuotaExceededException} (client fault)
328
403
  * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
@@ -39,7 +39,7 @@ declare const RetrieveAndGenerateCommand_base: {
39
39
  * text: "STRING_VALUE", // required
40
40
  * },
41
41
  * retrieveAndGenerateConfiguration: { // RetrieveAndGenerateConfiguration
42
- * type: "KNOWLEDGE_BASE", // required
42
+ * type: "KNOWLEDGE_BASE" || "EXTERNAL_SOURCES", // required
43
43
  * knowledgeBaseConfiguration: { // KnowledgeBaseRetrieveAndGenerateConfiguration
44
44
  * knowledgeBaseId: "STRING_VALUE", // required
45
45
  * modelArn: "STRING_VALUE", // required
@@ -103,6 +103,27 @@ declare const RetrieveAndGenerateCommand_base: {
103
103
  * },
104
104
  * },
105
105
  * },
106
+ * externalSourcesConfiguration: { // ExternalSourcesRetrieveAndGenerateConfiguration
107
+ * modelArn: "STRING_VALUE", // required
108
+ * sources: [ // ExternalSources // required
109
+ * { // ExternalSource
110
+ * sourceType: "S3" || "BYTE_CONTENT", // required
111
+ * s3Location: { // S3ObjectDoc
112
+ * uri: "STRING_VALUE", // required
113
+ * },
114
+ * byteContent: { // ByteContentDoc
115
+ * identifier: "STRING_VALUE", // required
116
+ * contentType: "STRING_VALUE", // required
117
+ * data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
118
+ * },
119
+ * },
120
+ * ],
121
+ * generationConfiguration: { // ExternalSourcesGenerationConfiguration
122
+ * promptTemplate: {
123
+ * textPromptTemplate: "STRING_VALUE",
124
+ * },
125
+ * },
126
+ * },
106
127
  * },
107
128
  * sessionConfiguration: { // RetrieveAndGenerateSessionConfiguration
108
129
  * kmsKeyArn: "STRING_VALUE", // required
@@ -170,7 +191,7 @@ declare const RetrieveAndGenerateCommand_base: {
170
191
  * <p>An internal server error occurred. Retry your request.</p>
171
192
  *
172
193
  * @throws {@link ResourceNotFoundException} (client fault)
173
- * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
194
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
174
195
  *
175
196
  * @throws {@link ServiceQuotaExceededException} (client fault)
176
197
  * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
@@ -141,7 +141,7 @@ declare const RetrieveCommand_base: {
141
141
  * <p>An internal server error occurred. Retry your request.</p>
142
142
  *
143
143
  * @throws {@link ResourceNotFoundException} (client fault)
144
- * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
144
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
145
145
  *
146
146
  * @throws {@link ServiceQuotaExceededException} (client fault)
147
147
  * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>