@aws-sdk/client-bedrock-agent-runtime 3.758.0 → 3.764.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.
- package/dist-cjs/index.js +88 -16
- package/dist-es/models/models_0.js +22 -5
- package/dist-es/models/models_1.js +21 -4
- package/dist-es/protocols/Aws_restJson1.js +28 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +1 -0
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +214 -63
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +123 -62
- package/dist-types/models/models_1.d.ts +198 -62
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +34 -15
- package/dist-types/ts3.4/models/models_1.d.ts +36 -11
- package/package.json +1 -1
|
@@ -60,66 +60,7 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
60
60
|
* // const { BedrockAgentRuntimeClient, InvokeInlineAgentCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
|
|
61
61
|
* const client = new BedrockAgentRuntimeClient(config);
|
|
62
62
|
* const input = { // InvokeInlineAgentRequest
|
|
63
|
-
* sessionId: "STRING_VALUE", // required
|
|
64
63
|
* 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
|
-
* responseState: "FAILURE" || "REPROMPT",
|
|
83
|
-
* httpStatusCode: Number("int"),
|
|
84
|
-
* responseBody: { // ResponseBody
|
|
85
|
-
* "<keys>": { // ContentBody
|
|
86
|
-
* body: "STRING_VALUE",
|
|
87
|
-
* },
|
|
88
|
-
* },
|
|
89
|
-
* agentId: "STRING_VALUE",
|
|
90
|
-
* },
|
|
91
|
-
* functionResult: { // FunctionResult
|
|
92
|
-
* actionGroup: "STRING_VALUE", // required
|
|
93
|
-
* confirmationState: "CONFIRM" || "DENY",
|
|
94
|
-
* function: "STRING_VALUE",
|
|
95
|
-
* responseBody: {
|
|
96
|
-
* "<keys>": {
|
|
97
|
-
* body: "STRING_VALUE",
|
|
98
|
-
* },
|
|
99
|
-
* },
|
|
100
|
-
* responseState: "FAILURE" || "REPROMPT",
|
|
101
|
-
* agentId: "STRING_VALUE",
|
|
102
|
-
* },
|
|
103
|
-
* },
|
|
104
|
-
* ],
|
|
105
|
-
* invocationId: "STRING_VALUE",
|
|
106
|
-
* files: [ // InputFiles
|
|
107
|
-
* { // InputFile
|
|
108
|
-
* name: "STRING_VALUE", // required
|
|
109
|
-
* source: { // FileSource
|
|
110
|
-
* sourceType: "S3" || "BYTE_CONTENT", // required
|
|
111
|
-
* s3Location: { // S3ObjectFile
|
|
112
|
-
* uri: "STRING_VALUE", // required
|
|
113
|
-
* },
|
|
114
|
-
* byteContent: { // ByteContentFile
|
|
115
|
-
* mediaType: "STRING_VALUE", // required
|
|
116
|
-
* data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
|
|
117
|
-
* },
|
|
118
|
-
* },
|
|
119
|
-
* useCase: "CODE_INTERPRETER" || "CHAT", // required
|
|
120
|
-
* },
|
|
121
|
-
* ],
|
|
122
|
-
* },
|
|
123
64
|
* foundationModel: "STRING_VALUE", // required
|
|
124
65
|
* instruction: "STRING_VALUE", // required
|
|
125
66
|
* idleSessionTTLInSeconds: Number("int"),
|
|
@@ -279,20 +220,230 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
279
220
|
* ],
|
|
280
221
|
* },
|
|
281
222
|
* parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
223
|
+
* foundationModel: "STRING_VALUE",
|
|
282
224
|
* additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
283
225
|
* },
|
|
284
226
|
* ],
|
|
285
227
|
* overrideLambda: "STRING_VALUE",
|
|
286
228
|
* },
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
229
|
+
* agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
|
|
230
|
+
* collaboratorConfigurations: [ // CollaboratorConfigurations
|
|
231
|
+
* { // CollaboratorConfiguration
|
|
232
|
+
* collaboratorName: "STRING_VALUE", // required
|
|
233
|
+
* collaboratorInstruction: "STRING_VALUE", // required
|
|
234
|
+
* agentAliasArn: "STRING_VALUE",
|
|
235
|
+
* relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
|
|
290
236
|
* },
|
|
291
|
-
*
|
|
237
|
+
* ],
|
|
238
|
+
* sessionId: "STRING_VALUE", // required
|
|
239
|
+
* endSession: true || false,
|
|
240
|
+
* enableTrace: true || false,
|
|
241
|
+
* inputText: "STRING_VALUE",
|
|
292
242
|
* streamingConfigurations: { // StreamingConfigurations
|
|
293
243
|
* streamFinalResponse: true || false,
|
|
294
244
|
* applyGuardrailInterval: Number("int"),
|
|
295
245
|
* },
|
|
246
|
+
* inlineSessionState: { // InlineSessionState
|
|
247
|
+
* sessionAttributes: { // SessionAttributesMap
|
|
248
|
+
* "<keys>": "STRING_VALUE",
|
|
249
|
+
* },
|
|
250
|
+
* promptSessionAttributes: { // PromptSessionAttributesMap
|
|
251
|
+
* "<keys>": "STRING_VALUE",
|
|
252
|
+
* },
|
|
253
|
+
* returnControlInvocationResults: [ // ReturnControlInvocationResults
|
|
254
|
+
* { // InvocationResultMember Union: only one key present
|
|
255
|
+
* apiResult: { // ApiResult
|
|
256
|
+
* actionGroup: "STRING_VALUE", // required
|
|
257
|
+
* httpMethod: "STRING_VALUE",
|
|
258
|
+
* apiPath: "STRING_VALUE",
|
|
259
|
+
* confirmationState: "CONFIRM" || "DENY",
|
|
260
|
+
* responseState: "FAILURE" || "REPROMPT",
|
|
261
|
+
* httpStatusCode: Number("int"),
|
|
262
|
+
* responseBody: { // ResponseBody
|
|
263
|
+
* "<keys>": { // ContentBody
|
|
264
|
+
* body: "STRING_VALUE",
|
|
265
|
+
* },
|
|
266
|
+
* },
|
|
267
|
+
* agentId: "STRING_VALUE",
|
|
268
|
+
* },
|
|
269
|
+
* functionResult: { // FunctionResult
|
|
270
|
+
* actionGroup: "STRING_VALUE", // required
|
|
271
|
+
* confirmationState: "CONFIRM" || "DENY",
|
|
272
|
+
* function: "STRING_VALUE",
|
|
273
|
+
* responseBody: {
|
|
274
|
+
* "<keys>": {
|
|
275
|
+
* body: "STRING_VALUE",
|
|
276
|
+
* },
|
|
277
|
+
* },
|
|
278
|
+
* responseState: "FAILURE" || "REPROMPT",
|
|
279
|
+
* agentId: "STRING_VALUE",
|
|
280
|
+
* },
|
|
281
|
+
* },
|
|
282
|
+
* ],
|
|
283
|
+
* invocationId: "STRING_VALUE",
|
|
284
|
+
* files: [ // InputFiles
|
|
285
|
+
* { // InputFile
|
|
286
|
+
* name: "STRING_VALUE", // required
|
|
287
|
+
* source: { // FileSource
|
|
288
|
+
* sourceType: "S3" || "BYTE_CONTENT", // required
|
|
289
|
+
* s3Location: { // S3ObjectFile
|
|
290
|
+
* uri: "STRING_VALUE", // required
|
|
291
|
+
* },
|
|
292
|
+
* byteContent: { // ByteContentFile
|
|
293
|
+
* mediaType: "STRING_VALUE", // required
|
|
294
|
+
* data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
|
|
295
|
+
* },
|
|
296
|
+
* },
|
|
297
|
+
* useCase: "CODE_INTERPRETER" || "CHAT", // required
|
|
298
|
+
* },
|
|
299
|
+
* ],
|
|
300
|
+
* conversationHistory: { // ConversationHistory
|
|
301
|
+
* messages: [ // Messages
|
|
302
|
+
* { // Message
|
|
303
|
+
* role: "user" || "assistant", // required
|
|
304
|
+
* content: [ // ContentBlocks // required
|
|
305
|
+
* { // ContentBlock Union: only one key present
|
|
306
|
+
* text: "STRING_VALUE",
|
|
307
|
+
* },
|
|
308
|
+
* ],
|
|
309
|
+
* },
|
|
310
|
+
* ],
|
|
311
|
+
* },
|
|
312
|
+
* },
|
|
313
|
+
* collaborators: [ // Collaborators
|
|
314
|
+
* { // Collaborator
|
|
315
|
+
* customerEncryptionKeyArn: "STRING_VALUE",
|
|
316
|
+
* foundationModel: "STRING_VALUE", // required
|
|
317
|
+
* instruction: "STRING_VALUE", // required
|
|
318
|
+
* idleSessionTTLInSeconds: Number("int"),
|
|
319
|
+
* actionGroups: [
|
|
320
|
+
* {
|
|
321
|
+
* actionGroupName: "STRING_VALUE", // required
|
|
322
|
+
* description: "STRING_VALUE",
|
|
323
|
+
* parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter",
|
|
324
|
+
* actionGroupExecutor: {// Union: only one key present
|
|
325
|
+
* lambda: "STRING_VALUE",
|
|
326
|
+
* customControl: "RETURN_CONTROL",
|
|
327
|
+
* },
|
|
328
|
+
* apiSchema: {// Union: only one key present
|
|
329
|
+
* s3: {
|
|
330
|
+
* s3BucketName: "STRING_VALUE",
|
|
331
|
+
* s3ObjectKey: "STRING_VALUE",
|
|
332
|
+
* },
|
|
333
|
+
* payload: "STRING_VALUE",
|
|
334
|
+
* },
|
|
335
|
+
* functionSchema: {// Union: only one key present
|
|
336
|
+
* functions: [
|
|
337
|
+
* {
|
|
338
|
+
* name: "STRING_VALUE", // required
|
|
339
|
+
* description: "STRING_VALUE",
|
|
340
|
+
* parameters: {
|
|
341
|
+
* "<keys>": {
|
|
342
|
+
* description: "STRING_VALUE",
|
|
343
|
+
* type: "string" || "number" || "integer" || "boolean" || "array", // required
|
|
344
|
+
* required: true || false,
|
|
345
|
+
* },
|
|
346
|
+
* },
|
|
347
|
+
* requireConfirmation: "ENABLED" || "DISABLED",
|
|
348
|
+
* },
|
|
349
|
+
* ],
|
|
350
|
+
* },
|
|
351
|
+
* },
|
|
352
|
+
* ],
|
|
353
|
+
* knowledgeBases: [
|
|
354
|
+
* {
|
|
355
|
+
* knowledgeBaseId: "STRING_VALUE", // required
|
|
356
|
+
* description: "STRING_VALUE", // required
|
|
357
|
+
* retrievalConfiguration: {
|
|
358
|
+
* vectorSearchConfiguration: {
|
|
359
|
+
* numberOfResults: Number("int"),
|
|
360
|
+
* overrideSearchType: "HYBRID" || "SEMANTIC",
|
|
361
|
+
* filter: "<RetrievalFilter>",
|
|
362
|
+
* rerankingConfiguration: {
|
|
363
|
+
* type: "BEDROCK_RERANKING_MODEL", // required
|
|
364
|
+
* bedrockRerankingConfiguration: {
|
|
365
|
+
* modelConfiguration: {
|
|
366
|
+
* modelArn: "STRING_VALUE", // required
|
|
367
|
+
* additionalModelRequestFields: {
|
|
368
|
+
* "<keys>": "DOCUMENT_VALUE",
|
|
369
|
+
* },
|
|
370
|
+
* },
|
|
371
|
+
* numberOfRerankedResults: Number("int"),
|
|
372
|
+
* metadataConfiguration: {
|
|
373
|
+
* selectionMode: "SELECTIVE" || "ALL", // required
|
|
374
|
+
* selectiveModeConfiguration: {// Union: only one key present
|
|
375
|
+
* fieldsToInclude: [
|
|
376
|
+
* {
|
|
377
|
+
* fieldName: "STRING_VALUE", // required
|
|
378
|
+
* },
|
|
379
|
+
* ],
|
|
380
|
+
* fieldsToExclude: [
|
|
381
|
+
* {
|
|
382
|
+
* fieldName: "STRING_VALUE", // required
|
|
383
|
+
* },
|
|
384
|
+
* ],
|
|
385
|
+
* },
|
|
386
|
+
* },
|
|
387
|
+
* },
|
|
388
|
+
* },
|
|
389
|
+
* implicitFilterConfiguration: {
|
|
390
|
+
* metadataAttributes: [ // required
|
|
391
|
+
* {
|
|
392
|
+
* key: "STRING_VALUE", // required
|
|
393
|
+
* type: "STRING" || "NUMBER" || "BOOLEAN" || "STRING_LIST", // required
|
|
394
|
+
* description: "STRING_VALUE", // required
|
|
395
|
+
* },
|
|
396
|
+
* ],
|
|
397
|
+
* modelArn: "STRING_VALUE", // required
|
|
398
|
+
* },
|
|
399
|
+
* },
|
|
400
|
+
* },
|
|
401
|
+
* },
|
|
402
|
+
* ],
|
|
403
|
+
* guardrailConfiguration: {
|
|
404
|
+
* guardrailIdentifier: "STRING_VALUE", // required
|
|
405
|
+
* guardrailVersion: "STRING_VALUE", // required
|
|
406
|
+
* },
|
|
407
|
+
* promptOverrideConfiguration: {
|
|
408
|
+
* promptConfigurations: [ // required
|
|
409
|
+
* {
|
|
410
|
+
* promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING" || "ROUTING_CLASSIFIER",
|
|
411
|
+
* promptCreationMode: "DEFAULT" || "OVERRIDDEN",
|
|
412
|
+
* promptState: "ENABLED" || "DISABLED",
|
|
413
|
+
* basePromptTemplate: "STRING_VALUE",
|
|
414
|
+
* inferenceConfiguration: {
|
|
415
|
+
* temperature: Number("float"),
|
|
416
|
+
* topP: Number("float"),
|
|
417
|
+
* topK: Number("int"),
|
|
418
|
+
* maximumLength: Number("int"),
|
|
419
|
+
* stopSequences: [
|
|
420
|
+
* "STRING_VALUE",
|
|
421
|
+
* ],
|
|
422
|
+
* },
|
|
423
|
+
* parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
424
|
+
* foundationModel: "STRING_VALUE",
|
|
425
|
+
* additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
426
|
+
* },
|
|
427
|
+
* ],
|
|
428
|
+
* overrideLambda: "STRING_VALUE",
|
|
429
|
+
* },
|
|
430
|
+
* agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
|
|
431
|
+
* collaboratorConfigurations: [
|
|
432
|
+
* {
|
|
433
|
+
* collaboratorName: "STRING_VALUE", // required
|
|
434
|
+
* collaboratorInstruction: "STRING_VALUE", // required
|
|
435
|
+
* agentAliasArn: "STRING_VALUE",
|
|
436
|
+
* relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
|
|
437
|
+
* },
|
|
438
|
+
* ],
|
|
439
|
+
* agentName: "STRING_VALUE",
|
|
440
|
+
* },
|
|
441
|
+
* ],
|
|
442
|
+
* bedrockModelConfigurations: { // InlineBedrockModelConfigurations
|
|
443
|
+
* performanceConfig: { // PerformanceConfiguration
|
|
444
|
+
* latency: "standard" || "optimized",
|
|
445
|
+
* },
|
|
446
|
+
* },
|
|
296
447
|
* };
|
|
297
448
|
* const command = new InvokeInlineAgentCommand(input);
|
|
298
449
|
* const response = await client.send(command);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
2
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
3
|
import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
|
|
4
|
-
import { TagResourceRequest
|
|
4
|
+
import { TagResourceRequest } from "../models/models_0";
|
|
5
|
+
import { TagResourceResponse } from "../models/models_1";
|
|
5
6
|
/**
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
@@ -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 { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
|
|
4
|
-
import { UntagResourceRequest, UntagResourceResponse } from "../models/
|
|
4
|
+
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -453,6 +453,19 @@ export interface AgentActionGroup {
|
|
|
453
453
|
*/
|
|
454
454
|
functionSchema?: FunctionSchema | undefined;
|
|
455
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* @public
|
|
458
|
+
* @enum
|
|
459
|
+
*/
|
|
460
|
+
export declare const AgentCollaboration: {
|
|
461
|
+
readonly DISABLED: "DISABLED";
|
|
462
|
+
readonly SUPERVISOR: "SUPERVISOR";
|
|
463
|
+
readonly SUPERVISOR_ROUTER: "SUPERVISOR_ROUTER";
|
|
464
|
+
};
|
|
465
|
+
/**
|
|
466
|
+
* @public
|
|
467
|
+
*/
|
|
468
|
+
export type AgentCollaboration = (typeof AgentCollaboration)[keyof typeof AgentCollaboration];
|
|
456
469
|
/**
|
|
457
470
|
* @public
|
|
458
471
|
* @enum
|
|
@@ -4534,6 +4547,13 @@ export interface TracePart {
|
|
|
4534
4547
|
* @public
|
|
4535
4548
|
*/
|
|
4536
4549
|
callerChain?: Caller[] | undefined;
|
|
4550
|
+
/**
|
|
4551
|
+
* <p>
|
|
4552
|
+
* The time of the trace.
|
|
4553
|
+
* </p>
|
|
4554
|
+
* @public
|
|
4555
|
+
*/
|
|
4556
|
+
eventTime?: Date | undefined;
|
|
4537
4557
|
/**
|
|
4538
4558
|
* <p>The part's collaborator name.</p>
|
|
4539
4559
|
* @public
|
|
@@ -4923,77 +4943,75 @@ export interface InlineBedrockModelConfigurations {
|
|
|
4923
4943
|
*/
|
|
4924
4944
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
4925
4945
|
}
|
|
4946
|
+
/**
|
|
4947
|
+
* @public
|
|
4948
|
+
* @enum
|
|
4949
|
+
*/
|
|
4950
|
+
export declare const RelayConversationHistory: {
|
|
4951
|
+
readonly DISABLED: "DISABLED";
|
|
4952
|
+
readonly TO_COLLABORATOR: "TO_COLLABORATOR";
|
|
4953
|
+
};
|
|
4954
|
+
/**
|
|
4955
|
+
* @public
|
|
4956
|
+
*/
|
|
4957
|
+
export type RelayConversationHistory = (typeof RelayConversationHistory)[keyof typeof RelayConversationHistory];
|
|
4926
4958
|
/**
|
|
4927
4959
|
* <p>
|
|
4928
|
-
*
|
|
4960
|
+
* Settings of an inline collaborator agent.
|
|
4929
4961
|
* </p>
|
|
4930
4962
|
* @public
|
|
4931
4963
|
*/
|
|
4932
|
-
export interface
|
|
4964
|
+
export interface CollaboratorConfiguration {
|
|
4933
4965
|
/**
|
|
4934
4966
|
* <p>
|
|
4935
|
-
*
|
|
4967
|
+
* Name of the inline collaborator agent which must be the same name as specified for <code>agentName</code>.
|
|
4936
4968
|
* </p>
|
|
4937
4969
|
* @public
|
|
4938
4970
|
*/
|
|
4939
|
-
|
|
4940
|
-
/**
|
|
4941
|
-
* <p>
|
|
4942
|
-
* The version of the guardrail.
|
|
4943
|
-
* </p>
|
|
4944
|
-
* @public
|
|
4945
|
-
*/
|
|
4946
|
-
guardrailVersion: string | undefined;
|
|
4947
|
-
}
|
|
4948
|
-
/**
|
|
4949
|
-
* <p>
|
|
4950
|
-
* Contains parameters that specify various attributes that persist across a session or prompt. You can define session state
|
|
4951
|
-
* attributes as key-value pairs when writing a <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-lambda.html">Lambda function</a> for an action group or pass them when making an <code>InvokeInlineAgent</code> request.
|
|
4952
|
-
* Use session state attributes to control and provide conversational context for your inline agent and to help customize your agent's behavior.
|
|
4953
|
-
* For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html">Control session context</a>
|
|
4954
|
-
* </p>
|
|
4955
|
-
* @public
|
|
4956
|
-
*/
|
|
4957
|
-
export interface InlineSessionState {
|
|
4971
|
+
collaboratorName: string | undefined;
|
|
4958
4972
|
/**
|
|
4959
4973
|
* <p>
|
|
4960
|
-
*
|
|
4974
|
+
* Instructions that tell the inline collaborator agent what it should do and how it should interact with users.
|
|
4961
4975
|
* </p>
|
|
4962
4976
|
* @public
|
|
4963
4977
|
*/
|
|
4964
|
-
|
|
4978
|
+
collaboratorInstruction: string | undefined;
|
|
4965
4979
|
/**
|
|
4966
4980
|
* <p>
|
|
4967
|
-
*
|
|
4981
|
+
* The Amazon Resource Name (ARN) of the inline collaborator agent.
|
|
4968
4982
|
* </p>
|
|
4969
4983
|
* @public
|
|
4970
4984
|
*/
|
|
4971
|
-
|
|
4985
|
+
agentAliasArn?: string | undefined;
|
|
4972
4986
|
/**
|
|
4973
4987
|
* <p>
|
|
4974
|
-
*
|
|
4988
|
+
* A relay conversation history for the inline collaborator agent.
|
|
4975
4989
|
* </p>
|
|
4976
|
-
* <note>
|
|
4977
|
-
* <p>If you include this field in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p>
|
|
4978
|
-
* </note>
|
|
4979
4990
|
* @public
|
|
4980
4991
|
*/
|
|
4981
|
-
|
|
4992
|
+
relayConversationHistory?: RelayConversationHistory | undefined;
|
|
4993
|
+
}
|
|
4994
|
+
/**
|
|
4995
|
+
* <p>
|
|
4996
|
+
* The configuration details for the guardrail.
|
|
4997
|
+
* </p>
|
|
4998
|
+
* @public
|
|
4999
|
+
*/
|
|
5000
|
+
export interface GuardrailConfigurationWithArn {
|
|
4982
5001
|
/**
|
|
4983
5002
|
* <p>
|
|
4984
|
-
* The identifier
|
|
4985
|
-
* whose results are provided in the <code>returnControlInvocationResults</code> field. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html">Return control to the agent developer</a>.
|
|
5003
|
+
* The unique identifier for the guardrail.
|
|
4986
5004
|
* </p>
|
|
4987
5005
|
* @public
|
|
4988
5006
|
*/
|
|
4989
|
-
|
|
5007
|
+
guardrailIdentifier: string | undefined;
|
|
4990
5008
|
/**
|
|
4991
5009
|
* <p>
|
|
4992
|
-
*
|
|
5010
|
+
* The version of the guardrail.
|
|
4993
5011
|
* </p>
|
|
4994
5012
|
* @public
|
|
4995
5013
|
*/
|
|
4996
|
-
|
|
5014
|
+
guardrailVersion: string | undefined;
|
|
4997
5015
|
}
|
|
4998
5016
|
/**
|
|
4999
5017
|
* @public
|
|
@@ -5068,6 +5086,13 @@ export interface PromptConfiguration {
|
|
|
5068
5086
|
* @public
|
|
5069
5087
|
*/
|
|
5070
5088
|
parserMode?: CreationMode | undefined;
|
|
5089
|
+
/**
|
|
5090
|
+
* <p>
|
|
5091
|
+
* The foundation model to use.
|
|
5092
|
+
* </p>
|
|
5093
|
+
* @public
|
|
5094
|
+
*/
|
|
5095
|
+
foundationModel?: string | undefined;
|
|
5071
5096
|
/**
|
|
5072
5097
|
* <p>If the Converse or ConverseStream operations support the model,
|
|
5073
5098
|
* <code>additionalModelRequestFields</code> contains additional inference parameters,
|
|
@@ -5099,6 +5124,63 @@ export interface PromptOverrideConfiguration {
|
|
|
5099
5124
|
*/
|
|
5100
5125
|
overrideLambda?: string | undefined;
|
|
5101
5126
|
}
|
|
5127
|
+
/**
|
|
5128
|
+
* <p>
|
|
5129
|
+
* Contains parameters that specify various attributes that persist across a session or prompt. You can define session state
|
|
5130
|
+
* attributes as key-value pairs when writing a <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-lambda.html">Lambda function</a> for an action group or pass them when making an <code>InvokeInlineAgent</code> request.
|
|
5131
|
+
* Use session state attributes to control and provide conversational context for your inline agent and to help customize your agent's behavior.
|
|
5132
|
+
* For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html">Control session context</a>
|
|
5133
|
+
* </p>
|
|
5134
|
+
* @public
|
|
5135
|
+
*/
|
|
5136
|
+
export interface InlineSessionState {
|
|
5137
|
+
/**
|
|
5138
|
+
* <p>
|
|
5139
|
+
* Contains attributes that persist across a session and the values of those attributes.
|
|
5140
|
+
* </p>
|
|
5141
|
+
* @public
|
|
5142
|
+
*/
|
|
5143
|
+
sessionAttributes?: Record<string, string> | undefined;
|
|
5144
|
+
/**
|
|
5145
|
+
* <p>
|
|
5146
|
+
* Contains attributes that persist across a session and the values of those attributes.
|
|
5147
|
+
* </p>
|
|
5148
|
+
* @public
|
|
5149
|
+
*/
|
|
5150
|
+
promptSessionAttributes?: Record<string, string> | undefined;
|
|
5151
|
+
/**
|
|
5152
|
+
* <p>
|
|
5153
|
+
* Contains information about the results from the action group invocation. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html">Return control to the agent developer</a>.
|
|
5154
|
+
* </p>
|
|
5155
|
+
* <note>
|
|
5156
|
+
* <p>If you include this field in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p>
|
|
5157
|
+
* </note>
|
|
5158
|
+
* @public
|
|
5159
|
+
*/
|
|
5160
|
+
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
5161
|
+
/**
|
|
5162
|
+
* <p>
|
|
5163
|
+
* The identifier of the invocation of an action. This value must match the <code>invocationId</code> returned in the <code>InvokeInlineAgent</code> response for the action
|
|
5164
|
+
* whose results are provided in the <code>returnControlInvocationResults</code> field. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html">Return control to the agent developer</a>.
|
|
5165
|
+
* </p>
|
|
5166
|
+
* @public
|
|
5167
|
+
*/
|
|
5168
|
+
invocationId?: string | undefined;
|
|
5169
|
+
/**
|
|
5170
|
+
* <p>
|
|
5171
|
+
* Contains information about the files used by code interpreter.
|
|
5172
|
+
* </p>
|
|
5173
|
+
* @public
|
|
5174
|
+
*/
|
|
5175
|
+
files?: InputFile[] | undefined;
|
|
5176
|
+
/**
|
|
5177
|
+
* <p>
|
|
5178
|
+
* Contains the conversation history that persist across sessions.
|
|
5179
|
+
* </p>
|
|
5180
|
+
* @public
|
|
5181
|
+
*/
|
|
5182
|
+
conversationHistory?: ConversationHistory | undefined;
|
|
5183
|
+
}
|
|
5102
5184
|
/**
|
|
5103
5185
|
* <p>Contains a part of an agent response and citations for it. </p>
|
|
5104
5186
|
* @public
|
|
@@ -7699,31 +7781,6 @@ export interface TagResourceRequest {
|
|
|
7699
7781
|
*/
|
|
7700
7782
|
tags: Record<string, string> | undefined;
|
|
7701
7783
|
}
|
|
7702
|
-
/**
|
|
7703
|
-
* @public
|
|
7704
|
-
*/
|
|
7705
|
-
export interface TagResourceResponse {
|
|
7706
|
-
}
|
|
7707
|
-
/**
|
|
7708
|
-
* @public
|
|
7709
|
-
*/
|
|
7710
|
-
export interface UntagResourceRequest {
|
|
7711
|
-
/**
|
|
7712
|
-
* <p>The Amazon Resource Name (ARN) of the resource from which to remove tags.</p>
|
|
7713
|
-
* @public
|
|
7714
|
-
*/
|
|
7715
|
-
resourceArn: string | undefined;
|
|
7716
|
-
/**
|
|
7717
|
-
* <p>A list of keys of the tags to remove from the resource.</p>
|
|
7718
|
-
* @public
|
|
7719
|
-
*/
|
|
7720
|
-
tagKeys: string[] | undefined;
|
|
7721
|
-
}
|
|
7722
|
-
/**
|
|
7723
|
-
* @public
|
|
7724
|
-
*/
|
|
7725
|
-
export interface UntagResourceResponse {
|
|
7726
|
-
}
|
|
7727
7784
|
/**
|
|
7728
7785
|
* @internal
|
|
7729
7786
|
*/
|
|
@@ -8139,7 +8196,7 @@ export declare const InvokeAgentResponseFilterSensitiveLog: (obj: InvokeAgentRes
|
|
|
8139
8196
|
/**
|
|
8140
8197
|
* @internal
|
|
8141
8198
|
*/
|
|
8142
|
-
export declare const
|
|
8199
|
+
export declare const CollaboratorConfigurationFilterSensitiveLog: (obj: CollaboratorConfiguration) => any;
|
|
8143
8200
|
/**
|
|
8144
8201
|
* @internal
|
|
8145
8202
|
*/
|
|
@@ -8148,6 +8205,10 @@ export declare const PromptConfigurationFilterSensitiveLog: (obj: PromptConfigur
|
|
|
8148
8205
|
* @internal
|
|
8149
8206
|
*/
|
|
8150
8207
|
export declare const PromptOverrideConfigurationFilterSensitiveLog: (obj: PromptOverrideConfiguration) => any;
|
|
8208
|
+
/**
|
|
8209
|
+
* @internal
|
|
8210
|
+
*/
|
|
8211
|
+
export declare const InlineSessionStateFilterSensitiveLog: (obj: InlineSessionState) => any;
|
|
8151
8212
|
/**
|
|
8152
8213
|
* @internal
|
|
8153
8214
|
*/
|