@@ -36,7 +36,7 @@ export interface InvokeAgentCommandInput extends InvokeAgentRequest {}
36
36
export interface InvokeAgentCommandOutput extends InvokeAgentResponse , __MetadataBearer { }
37
37
38
38
/**
39
- * <p>Sends a prompt for the agent to process and respond to.</p>
39
+ * <p>Sends a prompt for the agent to process and respond to. Use return control event type for function calling. </p>
40
40
* <note>
41
41
* <p>The CLI doesn't support <code>InvokeAgent</code>.</p>
42
42
* </note>
@@ -51,7 +51,10 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
51
51
* <p>End a conversation by setting <code>endSession</code> to <code>true</code>.</p>
52
52
* </li>
53
53
* <li>
54
- * <p>Include attributes for the session or prompt in the <code>sessionState</code> object.</p>
54
+ * <p>In the <code>sessionState</code> object, you can include attributes for the session or prompt or parameters returned from the action group.</p>
55
+ * </li>
56
+ * <li>
57
+ * <p>Use return control event type for function calling.</p>
55
58
* </li>
56
59
* </ul>
57
60
* <p>The response is returned in the <code>bytes</code> field of the <code>chunk</code> object.</p>
@@ -80,13 +83,40 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
80
83
* promptSessionAttributes: { // PromptSessionAttributesMap
81
84
* "<keys>": "STRING_VALUE",
82
85
* },
86
+ * returnControlInvocationResults: [ // ReturnControlInvocationResults
87
+ * { // InvocationResultMember Union: only one key present
88
+ * apiResult: { // ApiResult
89
+ * actionGroup: "STRING_VALUE", // required
90
+ * httpMethod: "STRING_VALUE",
91
+ * apiPath: "STRING_VALUE",
92
+ * responseBody: { // ResponseBody
93
+ * "<keys>": { // ContentBody
94
+ * body: "STRING_VALUE",
95
+ * },
96
+ * },
97
+ * httpStatusCode: Number("int"),
98
+ * responseState: "FAILURE" || "REPROMPT",
99
+ * },
100
+ * functionResult: { // FunctionResult
101
+ * actionGroup: "STRING_VALUE", // required
102
+ * function: "STRING_VALUE",
103
+ * responseBody: {
104
+ * "<keys>": {
105
+ * body: "STRING_VALUE",
106
+ * },
107
+ * },
108
+ * responseState: "FAILURE" || "REPROMPT",
109
+ * },
110
+ * },
111
+ * ],
112
+ * invocationId: "STRING_VALUE",
83
113
* },
84
114
* agentId: "STRING_VALUE", // required
85
115
* agentAliasId: "STRING_VALUE", // required
86
116
* sessionId: "STRING_VALUE", // required
87
117
* endSession: true || false,
88
118
* enableTrace: true || false,
89
- * inputText: "STRING_VALUE", // required
119
+ * inputText: "STRING_VALUE",
90
120
* };
91
121
* const command = new InvokeAgentCommand(input);
92
122
* const response = await client.send(command);
@@ -130,6 +160,7 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
130
160
* // agentId: "STRING_VALUE",
131
161
* // agentAliasId: "STRING_VALUE",
132
162
* // sessionId: "STRING_VALUE",
163
+ * // agentVersion: "STRING_VALUE",
133
164
* // trace: { // Trace Union: only one key present
134
165
* // preProcessingTrace: { // PreProcessingTrace Union: only one key present
135
166
* // modelInvocationInput: { // ModelInvocationInput
@@ -187,6 +218,7 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
187
218
* // ],
188
219
* // },
189
220
* // },
221
+ * // function: "STRING_VALUE",
190
222
* // },
191
223
* // knowledgeBaseLookupInput: { // KnowledgeBaseLookupInput
192
224
* // text: "STRING_VALUE",
@@ -274,6 +306,49 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
274
306
* // },
275
307
* // },
276
308
* // },
309
+ * // returnControl: { // ReturnControlPayload
310
+ * // invocationInputs: [ // InvocationInputs
311
+ * // { // InvocationInputMember Union: only one key present
312
+ * // apiInvocationInput: { // ApiInvocationInput
313
+ * // actionGroup: "STRING_VALUE", // required
314
+ * // httpMethod: "STRING_VALUE",
315
+ * // apiPath: "STRING_VALUE",
316
+ * // parameters: [ // ApiParameters
317
+ * // { // ApiParameter
318
+ * // name: "STRING_VALUE",
319
+ * // type: "STRING_VALUE",
320
+ * // value: "STRING_VALUE",
321
+ * // },
322
+ * // ],
323
+ * // requestBody: { // ApiRequestBody
324
+ * // content: { // ApiContentMap
325
+ * // "<keys>": { // PropertyParameters
326
+ * // properties: [ // ParameterList
327
+ * // {
328
+ * // name: "STRING_VALUE",
329
+ * // type: "STRING_VALUE",
330
+ * // value: "STRING_VALUE",
331
+ * // },
332
+ * // ],
333
+ * // },
334
+ * // },
335
+ * // },
336
+ * // },
337
+ * // functionInvocationInput: { // FunctionInvocationInput
338
+ * // actionGroup: "STRING_VALUE", // required
339
+ * // parameters: [ // FunctionParameters
340
+ * // { // FunctionParameter
341
+ * // name: "STRING_VALUE",
342
+ * // type: "STRING_VALUE",
343
+ * // value: "STRING_VALUE",
344
+ * // },
345
+ * // ],
346
+ * // function: "STRING_VALUE",
347
+ * // },
348
+ * // },
349
+ * // ],
350
+ * // invocationId: "STRING_VALUE",
351
+ * // },
277
352
* // internalServerException: { // InternalServerException
278
353
* // message: "STRING_VALUE",
279
354
* // },
@@ -332,7 +407,7 @@ export interface InvokeAgentCommandOutput extends InvokeAgentResponse, __Metadat
332
407
* <p>An internal server error occurred. Retry your request.</p>
333
408
*
334
409
* @throws {@link ResourceNotFoundException } (client fault)
335
- * <p>The specified resource ARN was not found. Check the ARN and try your request again.</p>
410
+ * <p>The specified resource Amazon Resource Name ( ARN) was not found. Check the Amazon Resource Name ( ARN) and try your request again.</p>
336
411
*
337
412
* @throws {@link ServiceQuotaExceededException } (client fault)
338
413
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
0 commit comments