@aws-sdk/client-bedrock-agent-runtime 3.697.0 → 3.701.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.
@@ -0,0 +1,761 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
+ import { InvokeInlineAgentRequest, InvokeInlineAgentResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link InvokeInlineAgentCommand}.
14
+ */
15
+ export interface InvokeInlineAgentCommandInput extends InvokeInlineAgentRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link InvokeInlineAgentCommand}.
21
+ */
22
+ export interface InvokeInlineAgentCommandOutput extends InvokeInlineAgentResponse, __MetadataBearer {
23
+ }
24
+ declare const InvokeInlineAgentCommand_base: {
25
+ new (input: InvokeInlineAgentCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeInlineAgentCommandInput, InvokeInlineAgentCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: InvokeInlineAgentCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeInlineAgentCommandInput, InvokeInlineAgentCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Invokes an inline Amazon Bedrock agent using the configurations you provide with the request.
32
+ * </p>
33
+ * <ul>
34
+ * <li>
35
+ * <p>Specify the following fields for security purposes.</p>
36
+ * <ul>
37
+ * <li>
38
+ * <p>(Optional) <code>customerEncryptionKeyArn</code> – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent.</p>
39
+ * </li>
40
+ * <li>
41
+ * <p>(Optional) <code>idleSessionTTLinSeconds</code> – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent <code>InvokeInlineAgent</code> request begins a new session.</p>
42
+ * </li>
43
+ * </ul>
44
+ * </li>
45
+ * <li>
46
+ * <p>To override the default prompt behavior for agent orchestration and to use advanced prompts, include a <code>promptOverrideConfiguration</code> object.
47
+ * For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced prompts</a>.</p>
48
+ * </li>
49
+ * <li>
50
+ * <p>The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.</p>
51
+ * </li>
52
+ * </ul>
53
+ * <note>
54
+ * <p>The CLI doesn't support streaming operations in Amazon Bedrock, including <code>InvokeInlineAgent</code>.</p>
55
+ * </note>
56
+ * @example
57
+ * Use a bare-bones client and the command you need to make an API call.
58
+ * ```javascript
59
+ * import { BedrockAgentRuntimeClient, InvokeInlineAgentCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
60
+ * // const { BedrockAgentRuntimeClient, InvokeInlineAgentCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
61
+ * const client = new BedrockAgentRuntimeClient(config);
62
+ * const input = { // InvokeInlineAgentRequest
63
+ * sessionId: "STRING_VALUE", // required
64
+ * customerEncryptionKeyArn: "STRING_VALUE",
65
+ * endSession: true || false,
66
+ * enableTrace: true || false,
67
+ * inputText: "STRING_VALUE",
68
+ * inlineSessionState: { // InlineSessionState
69
+ * sessionAttributes: { // SessionAttributesMap
70
+ * "<keys>": "STRING_VALUE",
71
+ * },
72
+ * promptSessionAttributes: { // PromptSessionAttributesMap
73
+ * "<keys>": "STRING_VALUE",
74
+ * },
75
+ * returnControlInvocationResults: [ // ReturnControlInvocationResults
76
+ * { // InvocationResultMember Union: only one key present
77
+ * apiResult: { // ApiResult
78
+ * actionGroup: "STRING_VALUE", // required
79
+ * httpMethod: "STRING_VALUE",
80
+ * apiPath: "STRING_VALUE",
81
+ * confirmationState: "CONFIRM" || "DENY",
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
+ * confirmationState: "CONFIRM" || "DENY",
93
+ * function: "STRING_VALUE",
94
+ * responseBody: {
95
+ * "<keys>": {
96
+ * body: "STRING_VALUE",
97
+ * },
98
+ * },
99
+ * responseState: "FAILURE" || "REPROMPT",
100
+ * },
101
+ * },
102
+ * ],
103
+ * invocationId: "STRING_VALUE",
104
+ * files: [ // InputFiles
105
+ * { // InputFile
106
+ * name: "STRING_VALUE", // required
107
+ * source: { // FileSource
108
+ * sourceType: "S3" || "BYTE_CONTENT", // required
109
+ * s3Location: { // S3ObjectFile
110
+ * uri: "STRING_VALUE", // required
111
+ * },
112
+ * byteContent: { // ByteContentFile
113
+ * mediaType: "STRING_VALUE", // required
114
+ * data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
115
+ * },
116
+ * },
117
+ * useCase: "CODE_INTERPRETER" || "CHAT", // required
118
+ * },
119
+ * ],
120
+ * },
121
+ * foundationModel: "STRING_VALUE", // required
122
+ * instruction: "STRING_VALUE", // required
123
+ * idleSessionTTLInSeconds: Number("int"),
124
+ * actionGroups: [ // AgentActionGroups
125
+ * { // AgentActionGroup
126
+ * actionGroupName: "STRING_VALUE", // required
127
+ * description: "STRING_VALUE",
128
+ * parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter",
129
+ * actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
130
+ * lambda: "STRING_VALUE",
131
+ * customControl: "RETURN_CONTROL",
132
+ * },
133
+ * apiSchema: { // APISchema Union: only one key present
134
+ * s3: { // S3Identifier
135
+ * s3BucketName: "STRING_VALUE",
136
+ * s3ObjectKey: "STRING_VALUE",
137
+ * },
138
+ * payload: "STRING_VALUE",
139
+ * },
140
+ * functionSchema: { // FunctionSchema Union: only one key present
141
+ * functions: [ // Functions
142
+ * { // FunctionDefinition
143
+ * name: "STRING_VALUE", // required
144
+ * description: "STRING_VALUE",
145
+ * parameters: { // ParameterMap
146
+ * "<keys>": { // ParameterDetail
147
+ * description: "STRING_VALUE",
148
+ * type: "string" || "number" || "integer" || "boolean" || "array", // required
149
+ * required: true || false,
150
+ * },
151
+ * },
152
+ * requireConfirmation: "ENABLED" || "DISABLED",
153
+ * },
154
+ * ],
155
+ * },
156
+ * },
157
+ * ],
158
+ * knowledgeBases: [ // KnowledgeBases
159
+ * { // KnowledgeBase
160
+ * knowledgeBaseId: "STRING_VALUE", // required
161
+ * description: "STRING_VALUE", // required
162
+ * retrievalConfiguration: { // KnowledgeBaseRetrievalConfiguration
163
+ * vectorSearchConfiguration: { // KnowledgeBaseVectorSearchConfiguration
164
+ * numberOfResults: Number("int"),
165
+ * overrideSearchType: "HYBRID" || "SEMANTIC",
166
+ * filter: { // RetrievalFilter Union: only one key present
167
+ * equals: { // FilterAttribute
168
+ * key: "STRING_VALUE", // required
169
+ * value: "DOCUMENT_VALUE", // required
170
+ * },
171
+ * notEquals: {
172
+ * key: "STRING_VALUE", // required
173
+ * value: "DOCUMENT_VALUE", // required
174
+ * },
175
+ * greaterThan: {
176
+ * key: "STRING_VALUE", // required
177
+ * value: "DOCUMENT_VALUE", // required
178
+ * },
179
+ * greaterThanOrEquals: {
180
+ * key: "STRING_VALUE", // required
181
+ * value: "DOCUMENT_VALUE", // required
182
+ * },
183
+ * lessThan: {
184
+ * key: "STRING_VALUE", // required
185
+ * value: "DOCUMENT_VALUE", // required
186
+ * },
187
+ * lessThanOrEquals: "<FilterAttribute>",
188
+ * in: "<FilterAttribute>",
189
+ * notIn: "<FilterAttribute>",
190
+ * startsWith: "<FilterAttribute>",
191
+ * listContains: "<FilterAttribute>",
192
+ * stringContains: "<FilterAttribute>",
193
+ * andAll: [ // RetrievalFilterList
194
+ * {// Union: only one key present
195
+ * equals: "<FilterAttribute>",
196
+ * notEquals: "<FilterAttribute>",
197
+ * greaterThan: "<FilterAttribute>",
198
+ * greaterThanOrEquals: "<FilterAttribute>",
199
+ * lessThan: "<FilterAttribute>",
200
+ * lessThanOrEquals: "<FilterAttribute>",
201
+ * in: "<FilterAttribute>",
202
+ * notIn: "<FilterAttribute>",
203
+ * startsWith: "<FilterAttribute>",
204
+ * listContains: "<FilterAttribute>",
205
+ * stringContains: "<FilterAttribute>",
206
+ * andAll: [
207
+ * "<RetrievalFilter>",
208
+ * ],
209
+ * orAll: [
210
+ * "<RetrievalFilter>",
211
+ * ],
212
+ * },
213
+ * ],
214
+ * orAll: [
215
+ * "<RetrievalFilter>",
216
+ * ],
217
+ * },
218
+ * },
219
+ * },
220
+ * },
221
+ * ],
222
+ * guardrailConfiguration: { // GuardrailConfigurationWithArn
223
+ * guardrailIdentifier: "STRING_VALUE", // required
224
+ * guardrailVersion: "STRING_VALUE", // required
225
+ * },
226
+ * promptOverrideConfiguration: { // PromptOverrideConfiguration
227
+ * promptConfigurations: [ // PromptConfigurations // required
228
+ * { // PromptConfiguration
229
+ * promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING" || "ROUTING_CLASSIFIER",
230
+ * promptCreationMode: "DEFAULT" || "OVERRIDDEN",
231
+ * promptState: "ENABLED" || "DISABLED",
232
+ * basePromptTemplate: "STRING_VALUE",
233
+ * inferenceConfiguration: { // InferenceConfiguration
234
+ * temperature: Number("float"),
235
+ * topP: Number("float"),
236
+ * topK: Number("int"),
237
+ * maximumLength: Number("int"),
238
+ * stopSequences: [ // StopSequences
239
+ * "STRING_VALUE",
240
+ * ],
241
+ * },
242
+ * parserMode: "DEFAULT" || "OVERRIDDEN",
243
+ * },
244
+ * ],
245
+ * overrideLambda: "STRING_VALUE",
246
+ * },
247
+ * };
248
+ * const command = new InvokeInlineAgentCommand(input);
249
+ * const response = await client.send(command);
250
+ * // { // InvokeInlineAgentResponse
251
+ * // completion: { // InlineAgentResponseStream Union: only one key present
252
+ * // chunk: { // InlineAgentPayloadPart
253
+ * // bytes: new Uint8Array(),
254
+ * // attribution: { // Attribution
255
+ * // citations: [ // Citations
256
+ * // { // Citation
257
+ * // generatedResponsePart: { // GeneratedResponsePart
258
+ * // textResponsePart: { // TextResponsePart
259
+ * // text: "STRING_VALUE",
260
+ * // span: { // Span
261
+ * // start: Number("int"),
262
+ * // end: Number("int"),
263
+ * // },
264
+ * // },
265
+ * // },
266
+ * // retrievedReferences: [ // RetrievedReferences
267
+ * // { // RetrievedReference
268
+ * // content: { // RetrievalResultContent
269
+ * // text: "STRING_VALUE", // required
270
+ * // },
271
+ * // location: { // RetrievalResultLocation
272
+ * // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT", // required
273
+ * // s3Location: { // RetrievalResultS3Location
274
+ * // uri: "STRING_VALUE",
275
+ * // },
276
+ * // webLocation: { // RetrievalResultWebLocation
277
+ * // url: "STRING_VALUE",
278
+ * // },
279
+ * // confluenceLocation: { // RetrievalResultConfluenceLocation
280
+ * // url: "STRING_VALUE",
281
+ * // },
282
+ * // salesforceLocation: { // RetrievalResultSalesforceLocation
283
+ * // url: "STRING_VALUE",
284
+ * // },
285
+ * // sharePointLocation: { // RetrievalResultSharePointLocation
286
+ * // url: "STRING_VALUE",
287
+ * // },
288
+ * // },
289
+ * // metadata: { // RetrievalResultMetadata
290
+ * // "<keys>": "DOCUMENT_VALUE",
291
+ * // },
292
+ * // },
293
+ * // ],
294
+ * // },
295
+ * // ],
296
+ * // },
297
+ * // },
298
+ * // trace: { // InlineAgentTracePart
299
+ * // sessionId: "STRING_VALUE",
300
+ * // trace: { // Trace Union: only one key present
301
+ * // guardrailTrace: { // GuardrailTrace
302
+ * // action: "INTERVENED" || "NONE",
303
+ * // traceId: "STRING_VALUE",
304
+ * // inputAssessments: [ // GuardrailAssessmentList
305
+ * // { // GuardrailAssessment
306
+ * // topicPolicy: { // GuardrailTopicPolicyAssessment
307
+ * // topics: [ // GuardrailTopicList
308
+ * // { // GuardrailTopic
309
+ * // name: "STRING_VALUE",
310
+ * // type: "DENY",
311
+ * // action: "BLOCKED",
312
+ * // },
313
+ * // ],
314
+ * // },
315
+ * // contentPolicy: { // GuardrailContentPolicyAssessment
316
+ * // filters: [ // GuardrailContentFilterList
317
+ * // { // GuardrailContentFilter
318
+ * // type: "INSULTS" || "HATE" || "SEXUAL" || "VIOLENCE" || "MISCONDUCT" || "PROMPT_ATTACK",
319
+ * // confidence: "NONE" || "LOW" || "MEDIUM" || "HIGH",
320
+ * // action: "BLOCKED",
321
+ * // },
322
+ * // ],
323
+ * // },
324
+ * // wordPolicy: { // GuardrailWordPolicyAssessment
325
+ * // customWords: [ // GuardrailCustomWordList
326
+ * // { // GuardrailCustomWord
327
+ * // match: "STRING_VALUE",
328
+ * // action: "BLOCKED",
329
+ * // },
330
+ * // ],
331
+ * // managedWordLists: [ // GuardrailManagedWordList
332
+ * // { // GuardrailManagedWord
333
+ * // match: "STRING_VALUE",
334
+ * // type: "PROFANITY",
335
+ * // action: "BLOCKED",
336
+ * // },
337
+ * // ],
338
+ * // },
339
+ * // sensitiveInformationPolicy: { // GuardrailSensitiveInformationPolicyAssessment
340
+ * // piiEntities: [ // GuardrailPiiEntityFilterList
341
+ * // { // GuardrailPiiEntityFilter
342
+ * // type: "ADDRESS" || "AGE" || "AWS_ACCESS_KEY" || "AWS_SECRET_KEY" || "CA_HEALTH_NUMBER" || "CA_SOCIAL_INSURANCE_NUMBER" || "CREDIT_DEBIT_CARD_CVV" || "CREDIT_DEBIT_CARD_EXPIRY" || "CREDIT_DEBIT_CARD_NUMBER" || "DRIVER_ID" || "EMAIL" || "INTERNATIONAL_BANK_ACCOUNT_NUMBER" || "IP_ADDRESS" || "LICENSE_PLATE" || "MAC_ADDRESS" || "NAME" || "PASSWORD" || "PHONE" || "PIN" || "SWIFT_CODE" || "UK_NATIONAL_HEALTH_SERVICE_NUMBER" || "UK_NATIONAL_INSURANCE_NUMBER" || "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" || "URL" || "USERNAME" || "US_BANK_ACCOUNT_NUMBER" || "US_BANK_ROUTING_NUMBER" || "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" || "US_PASSPORT_NUMBER" || "US_SOCIAL_SECURITY_NUMBER" || "VEHICLE_IDENTIFICATION_NUMBER",
343
+ * // match: "STRING_VALUE",
344
+ * // action: "BLOCKED" || "ANONYMIZED",
345
+ * // },
346
+ * // ],
347
+ * // regexes: [ // GuardrailRegexFilterList
348
+ * // { // GuardrailRegexFilter
349
+ * // name: "STRING_VALUE",
350
+ * // regex: "STRING_VALUE",
351
+ * // match: "STRING_VALUE",
352
+ * // action: "BLOCKED" || "ANONYMIZED",
353
+ * // },
354
+ * // ],
355
+ * // },
356
+ * // },
357
+ * // ],
358
+ * // outputAssessments: [
359
+ * // {
360
+ * // topicPolicy: {
361
+ * // topics: [
362
+ * // {
363
+ * // name: "STRING_VALUE",
364
+ * // type: "DENY",
365
+ * // action: "BLOCKED",
366
+ * // },
367
+ * // ],
368
+ * // },
369
+ * // contentPolicy: {
370
+ * // filters: [
371
+ * // {
372
+ * // type: "INSULTS" || "HATE" || "SEXUAL" || "VIOLENCE" || "MISCONDUCT" || "PROMPT_ATTACK",
373
+ * // confidence: "NONE" || "LOW" || "MEDIUM" || "HIGH",
374
+ * // action: "BLOCKED",
375
+ * // },
376
+ * // ],
377
+ * // },
378
+ * // wordPolicy: {
379
+ * // customWords: [
380
+ * // {
381
+ * // match: "STRING_VALUE",
382
+ * // action: "BLOCKED",
383
+ * // },
384
+ * // ],
385
+ * // managedWordLists: [
386
+ * // {
387
+ * // match: "STRING_VALUE",
388
+ * // type: "PROFANITY",
389
+ * // action: "BLOCKED",
390
+ * // },
391
+ * // ],
392
+ * // },
393
+ * // sensitiveInformationPolicy: {
394
+ * // piiEntities: [
395
+ * // {
396
+ * // type: "ADDRESS" || "AGE" || "AWS_ACCESS_KEY" || "AWS_SECRET_KEY" || "CA_HEALTH_NUMBER" || "CA_SOCIAL_INSURANCE_NUMBER" || "CREDIT_DEBIT_CARD_CVV" || "CREDIT_DEBIT_CARD_EXPIRY" || "CREDIT_DEBIT_CARD_NUMBER" || "DRIVER_ID" || "EMAIL" || "INTERNATIONAL_BANK_ACCOUNT_NUMBER" || "IP_ADDRESS" || "LICENSE_PLATE" || "MAC_ADDRESS" || "NAME" || "PASSWORD" || "PHONE" || "PIN" || "SWIFT_CODE" || "UK_NATIONAL_HEALTH_SERVICE_NUMBER" || "UK_NATIONAL_INSURANCE_NUMBER" || "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" || "URL" || "USERNAME" || "US_BANK_ACCOUNT_NUMBER" || "US_BANK_ROUTING_NUMBER" || "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" || "US_PASSPORT_NUMBER" || "US_SOCIAL_SECURITY_NUMBER" || "VEHICLE_IDENTIFICATION_NUMBER",
397
+ * // match: "STRING_VALUE",
398
+ * // action: "BLOCKED" || "ANONYMIZED",
399
+ * // },
400
+ * // ],
401
+ * // regexes: [
402
+ * // {
403
+ * // name: "STRING_VALUE",
404
+ * // regex: "STRING_VALUE",
405
+ * // match: "STRING_VALUE",
406
+ * // action: "BLOCKED" || "ANONYMIZED",
407
+ * // },
408
+ * // ],
409
+ * // },
410
+ * // },
411
+ * // ],
412
+ * // },
413
+ * // preProcessingTrace: { // PreProcessingTrace Union: only one key present
414
+ * // modelInvocationInput: { // ModelInvocationInput
415
+ * // traceId: "STRING_VALUE",
416
+ * // text: "STRING_VALUE",
417
+ * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING" || "ROUTING_CLASSIFIER",
418
+ * // overrideLambda: "STRING_VALUE",
419
+ * // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
420
+ * // inferenceConfiguration: { // InferenceConfiguration
421
+ * // temperature: Number("float"),
422
+ * // topP: Number("float"),
423
+ * // topK: Number("int"),
424
+ * // maximumLength: Number("int"),
425
+ * // stopSequences: [ // StopSequences
426
+ * // "STRING_VALUE",
427
+ * // ],
428
+ * // },
429
+ * // parserMode: "DEFAULT" || "OVERRIDDEN",
430
+ * // },
431
+ * // modelInvocationOutput: { // PreProcessingModelInvocationOutput
432
+ * // traceId: "STRING_VALUE",
433
+ * // parsedResponse: { // PreProcessingParsedResponse
434
+ * // rationale: "STRING_VALUE",
435
+ * // isValid: true || false,
436
+ * // },
437
+ * // rawResponse: { // RawResponse
438
+ * // content: "STRING_VALUE",
439
+ * // },
440
+ * // metadata: { // Metadata
441
+ * // usage: { // Usage
442
+ * // inputTokens: Number("int"),
443
+ * // outputTokens: Number("int"),
444
+ * // },
445
+ * // },
446
+ * // },
447
+ * // },
448
+ * // orchestrationTrace: { // OrchestrationTrace Union: only one key present
449
+ * // rationale: { // Rationale
450
+ * // traceId: "STRING_VALUE",
451
+ * // text: "STRING_VALUE",
452
+ * // },
453
+ * // invocationInput: { // InvocationInput
454
+ * // traceId: "STRING_VALUE",
455
+ * // invocationType: "ACTION_GROUP" || "KNOWLEDGE_BASE" || "FINISH" || "ACTION_GROUP_CODE_INTERPRETER",
456
+ * // actionGroupInvocationInput: { // ActionGroupInvocationInput
457
+ * // actionGroupName: "STRING_VALUE",
458
+ * // verb: "STRING_VALUE",
459
+ * // apiPath: "STRING_VALUE",
460
+ * // parameters: [ // Parameters
461
+ * // { // Parameter
462
+ * // name: "STRING_VALUE",
463
+ * // type: "STRING_VALUE",
464
+ * // value: "STRING_VALUE",
465
+ * // },
466
+ * // ],
467
+ * // requestBody: { // RequestBody
468
+ * // content: { // ContentMap
469
+ * // "<keys>": [
470
+ * // {
471
+ * // name: "STRING_VALUE",
472
+ * // type: "STRING_VALUE",
473
+ * // value: "STRING_VALUE",
474
+ * // },
475
+ * // ],
476
+ * // },
477
+ * // },
478
+ * // function: "STRING_VALUE",
479
+ * // executionType: "LAMBDA" || "RETURN_CONTROL",
480
+ * // invocationId: "STRING_VALUE",
481
+ * // },
482
+ * // knowledgeBaseLookupInput: { // KnowledgeBaseLookupInput
483
+ * // text: "STRING_VALUE",
484
+ * // knowledgeBaseId: "STRING_VALUE",
485
+ * // },
486
+ * // codeInterpreterInvocationInput: { // CodeInterpreterInvocationInput
487
+ * // code: "STRING_VALUE",
488
+ * // files: [ // Files
489
+ * // "STRING_VALUE",
490
+ * // ],
491
+ * // },
492
+ * // },
493
+ * // observation: { // Observation
494
+ * // traceId: "STRING_VALUE",
495
+ * // type: "ACTION_GROUP" || "KNOWLEDGE_BASE" || "FINISH" || "ASK_USER" || "REPROMPT",
496
+ * // actionGroupInvocationOutput: { // ActionGroupInvocationOutput
497
+ * // text: "STRING_VALUE",
498
+ * // },
499
+ * // knowledgeBaseLookupOutput: { // KnowledgeBaseLookupOutput
500
+ * // retrievedReferences: [
501
+ * // {
502
+ * // content: {
503
+ * // text: "STRING_VALUE", // required
504
+ * // },
505
+ * // location: {
506
+ * // type: "S3" || "WEB" || "CONFLUENCE" || "SALESFORCE" || "SHAREPOINT", // required
507
+ * // s3Location: {
508
+ * // uri: "STRING_VALUE",
509
+ * // },
510
+ * // webLocation: {
511
+ * // url: "STRING_VALUE",
512
+ * // },
513
+ * // confluenceLocation: {
514
+ * // url: "STRING_VALUE",
515
+ * // },
516
+ * // salesforceLocation: {
517
+ * // url: "STRING_VALUE",
518
+ * // },
519
+ * // sharePointLocation: {
520
+ * // url: "STRING_VALUE",
521
+ * // },
522
+ * // },
523
+ * // metadata: {
524
+ * // "<keys>": "DOCUMENT_VALUE",
525
+ * // },
526
+ * // },
527
+ * // ],
528
+ * // },
529
+ * // finalResponse: { // FinalResponse
530
+ * // text: "STRING_VALUE",
531
+ * // },
532
+ * // repromptResponse: { // RepromptResponse
533
+ * // text: "STRING_VALUE",
534
+ * // source: "ACTION_GROUP" || "KNOWLEDGE_BASE" || "PARSER",
535
+ * // },
536
+ * // codeInterpreterInvocationOutput: { // CodeInterpreterInvocationOutput
537
+ * // executionOutput: "STRING_VALUE",
538
+ * // executionError: "STRING_VALUE",
539
+ * // files: [
540
+ * // "STRING_VALUE",
541
+ * // ],
542
+ * // executionTimeout: true || false,
543
+ * // },
544
+ * // },
545
+ * // modelInvocationInput: {
546
+ * // traceId: "STRING_VALUE",
547
+ * // text: "STRING_VALUE",
548
+ * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING" || "ROUTING_CLASSIFIER",
549
+ * // overrideLambda: "STRING_VALUE",
550
+ * // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
551
+ * // inferenceConfiguration: {
552
+ * // temperature: Number("float"),
553
+ * // topP: Number("float"),
554
+ * // topK: Number("int"),
555
+ * // maximumLength: Number("int"),
556
+ * // stopSequences: [
557
+ * // "STRING_VALUE",
558
+ * // ],
559
+ * // },
560
+ * // parserMode: "DEFAULT" || "OVERRIDDEN",
561
+ * // },
562
+ * // modelInvocationOutput: { // OrchestrationModelInvocationOutput
563
+ * // traceId: "STRING_VALUE",
564
+ * // rawResponse: {
565
+ * // content: "STRING_VALUE",
566
+ * // },
567
+ * // metadata: {
568
+ * // usage: {
569
+ * // inputTokens: Number("int"),
570
+ * // outputTokens: Number("int"),
571
+ * // },
572
+ * // },
573
+ * // },
574
+ * // },
575
+ * // postProcessingTrace: { // PostProcessingTrace Union: only one key present
576
+ * // modelInvocationInput: {
577
+ * // traceId: "STRING_VALUE",
578
+ * // text: "STRING_VALUE",
579
+ * // type: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING" || "ROUTING_CLASSIFIER",
580
+ * // overrideLambda: "STRING_VALUE",
581
+ * // promptCreationMode: "DEFAULT" || "OVERRIDDEN",
582
+ * // inferenceConfiguration: {
583
+ * // temperature: Number("float"),
584
+ * // topP: Number("float"),
585
+ * // topK: Number("int"),
586
+ * // maximumLength: Number("int"),
587
+ * // stopSequences: [
588
+ * // "STRING_VALUE",
589
+ * // ],
590
+ * // },
591
+ * // parserMode: "DEFAULT" || "OVERRIDDEN",
592
+ * // },
593
+ * // modelInvocationOutput: { // PostProcessingModelInvocationOutput
594
+ * // traceId: "STRING_VALUE",
595
+ * // parsedResponse: { // PostProcessingParsedResponse
596
+ * // text: "STRING_VALUE",
597
+ * // },
598
+ * // rawResponse: {
599
+ * // content: "STRING_VALUE",
600
+ * // },
601
+ * // metadata: {
602
+ * // usage: {
603
+ * // inputTokens: Number("int"),
604
+ * // outputTokens: Number("int"),
605
+ * // },
606
+ * // },
607
+ * // },
608
+ * // },
609
+ * // failureTrace: { // FailureTrace
610
+ * // traceId: "STRING_VALUE",
611
+ * // failureReason: "STRING_VALUE",
612
+ * // },
613
+ * // customOrchestrationTrace: { // CustomOrchestrationTrace
614
+ * // traceId: "STRING_VALUE",
615
+ * // event: { // CustomOrchestrationTraceEvent
616
+ * // text: "STRING_VALUE",
617
+ * // },
618
+ * // },
619
+ * // },
620
+ * // },
621
+ * // returnControl: { // InlineAgentReturnControlPayload
622
+ * // invocationInputs: [ // InvocationInputs
623
+ * // { // InvocationInputMember Union: only one key present
624
+ * // apiInvocationInput: { // ApiInvocationInput
625
+ * // actionGroup: "STRING_VALUE", // required
626
+ * // httpMethod: "STRING_VALUE",
627
+ * // apiPath: "STRING_VALUE",
628
+ * // parameters: [ // ApiParameters
629
+ * // { // ApiParameter
630
+ * // name: "STRING_VALUE",
631
+ * // type: "STRING_VALUE",
632
+ * // value: "STRING_VALUE",
633
+ * // },
634
+ * // ],
635
+ * // requestBody: { // ApiRequestBody
636
+ * // content: { // ApiContentMap
637
+ * // "<keys>": { // PropertyParameters
638
+ * // properties: [ // ParameterList
639
+ * // {
640
+ * // name: "STRING_VALUE",
641
+ * // type: "STRING_VALUE",
642
+ * // value: "STRING_VALUE",
643
+ * // },
644
+ * // ],
645
+ * // },
646
+ * // },
647
+ * // },
648
+ * // actionInvocationType: "RESULT" || "USER_CONFIRMATION" || "USER_CONFIRMATION_AND_RESULT",
649
+ * // },
650
+ * // functionInvocationInput: { // FunctionInvocationInput
651
+ * // actionGroup: "STRING_VALUE", // required
652
+ * // parameters: [ // FunctionParameters
653
+ * // { // FunctionParameter
654
+ * // name: "STRING_VALUE",
655
+ * // type: "STRING_VALUE",
656
+ * // value: "STRING_VALUE",
657
+ * // },
658
+ * // ],
659
+ * // function: "STRING_VALUE",
660
+ * // actionInvocationType: "RESULT" || "USER_CONFIRMATION" || "USER_CONFIRMATION_AND_RESULT",
661
+ * // },
662
+ * // },
663
+ * // ],
664
+ * // invocationId: "STRING_VALUE",
665
+ * // },
666
+ * // internalServerException: { // InternalServerException
667
+ * // message: "STRING_VALUE",
668
+ * // },
669
+ * // validationException: { // ValidationException
670
+ * // message: "STRING_VALUE",
671
+ * // },
672
+ * // resourceNotFoundException: { // ResourceNotFoundException
673
+ * // message: "STRING_VALUE",
674
+ * // },
675
+ * // serviceQuotaExceededException: { // ServiceQuotaExceededException
676
+ * // message: "STRING_VALUE",
677
+ * // },
678
+ * // throttlingException: { // ThrottlingException
679
+ * // message: "STRING_VALUE",
680
+ * // },
681
+ * // accessDeniedException: { // AccessDeniedException
682
+ * // message: "STRING_VALUE",
683
+ * // },
684
+ * // conflictException: { // ConflictException
685
+ * // message: "STRING_VALUE",
686
+ * // },
687
+ * // dependencyFailedException: { // DependencyFailedException
688
+ * // message: "STRING_VALUE",
689
+ * // resourceName: "STRING_VALUE",
690
+ * // },
691
+ * // badGatewayException: { // BadGatewayException
692
+ * // message: "STRING_VALUE",
693
+ * // resourceName: "STRING_VALUE",
694
+ * // },
695
+ * // files: { // InlineAgentFilePart
696
+ * // files: [ // OutputFiles
697
+ * // { // OutputFile
698
+ * // name: "STRING_VALUE",
699
+ * // type: "STRING_VALUE",
700
+ * // bytes: new Uint8Array(),
701
+ * // },
702
+ * // ],
703
+ * // },
704
+ * // },
705
+ * // contentType: "STRING_VALUE", // required
706
+ * // sessionId: "STRING_VALUE", // required
707
+ * // };
708
+ *
709
+ * ```
710
+ *
711
+ * @param InvokeInlineAgentCommandInput - {@link InvokeInlineAgentCommandInput}
712
+ * @returns {@link InvokeInlineAgentCommandOutput}
713
+ * @see {@link InvokeInlineAgentCommandInput} for command's `input` shape.
714
+ * @see {@link InvokeInlineAgentCommandOutput} for command's `response` shape.
715
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
716
+ *
717
+ * @throws {@link AccessDeniedException} (client fault)
718
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
719
+ *
720
+ * @throws {@link BadGatewayException} (server fault)
721
+ * <p>There was an issue with a dependency due to a server issue. Retry your request.</p>
722
+ *
723
+ * @throws {@link ConflictException} (client fault)
724
+ * <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
725
+ *
726
+ * @throws {@link DependencyFailedException} (client fault)
727
+ * <p>There was an issue with a dependency. Check the resource configurations and retry the request.</p>
728
+ *
729
+ * @throws {@link InternalServerException} (server fault)
730
+ * <p>An internal server error occurred. Retry your request.</p>
731
+ *
732
+ * @throws {@link ResourceNotFoundException} (client fault)
733
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
734
+ *
735
+ * @throws {@link ServiceQuotaExceededException} (client fault)
736
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
737
+ *
738
+ * @throws {@link ThrottlingException} (client fault)
739
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
740
+ *
741
+ * @throws {@link ValidationException} (client fault)
742
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
743
+ *
744
+ * @throws {@link BedrockAgentRuntimeServiceException}
745
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
746
+ *
747
+ * @public
748
+ */
749
+ export declare class InvokeInlineAgentCommand extends InvokeInlineAgentCommand_base {
750
+ /** @internal type navigation helper, not in runtime. */
751
+ protected static __types: {
752
+ api: {
753
+ input: InvokeInlineAgentRequest;
754
+ output: InvokeInlineAgentResponse;
755
+ };
756
+ sdk: {
757
+ input: InvokeInlineAgentCommandInput;
758
+ output: InvokeInlineAgentCommandOutput;
759
+ };
760
+ };
761
+ }