@aws-sdk/client-bedrock-agent 3.703.0 → 3.705.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/README.md +40 -0
- package/dist-cjs/index.js +406 -62
- package/dist-es/BedrockAgent.js +10 -0
- package/dist-es/commands/AssociateAgentCollaboratorCommand.js +23 -0
- package/dist-es/commands/DisassociateAgentCollaboratorCommand.js +22 -0
- package/dist-es/commands/GetAgentCollaboratorCommand.js +23 -0
- package/dist-es/commands/IngestKnowledgeBaseDocumentsCommand.js +1 -1
- package/dist-es/commands/ListAgentCollaboratorsCommand.js +23 -0
- package/dist-es/commands/UpdateAgentCollaboratorCommand.js +23 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +43 -48
- package/dist-es/models/models_1.js +49 -1
- package/dist-es/pagination/ListAgentCollaboratorsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +184 -0
- package/dist-types/BedrockAgent.d.ts +35 -0
- package/dist-types/BedrockAgentClient.d.ts +7 -2
- package/dist-types/commands/AssociateAgentCollaboratorCommand.d.ts +113 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +4 -0
- package/dist-types/commands/DisassociateAgentCollaboratorCommand.d.ts +89 -0
- package/dist-types/commands/GetAgentCollaboratorCommand.d.ts +101 -0
- package/dist-types/commands/GetAgentCommand.d.ts +2 -0
- package/dist-types/commands/GetAgentVersionCommand.d.ts +2 -0
- package/dist-types/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/commands/ListAgentCollaboratorsCommand.d.ts +104 -0
- package/dist-types/commands/ListKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAgentCollaboratorCommand.d.ts +113 -0
- package/dist-types/commands/UpdateAgentCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +389 -294
- package/dist-types/models/models_1.d.ts +301 -1
- package/dist-types/pagination/ListAgentCollaboratorsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
- package/dist-types/ts3.4/BedrockAgent.d.ts +85 -0
- package/dist-types/ts3.4/BedrockAgentClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/AssociateAgentCollaboratorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateAgentCollaboratorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAgentCollaboratorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/IngestKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAgentCollaboratorsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListKnowledgeBaseDocumentsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateAgentCollaboratorCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +116 -98
- package/dist-types/ts3.4/models/models_1.d.ts +103 -0
- package/dist-types/ts3.4/pagination/ListAgentCollaboratorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import { DisassociateAgentCollaboratorRequest, DisassociateAgentCollaboratorResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DisassociateAgentCollaboratorCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DisassociateAgentCollaboratorCommandInput extends DisassociateAgentCollaboratorRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DisassociateAgentCollaboratorCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DisassociateAgentCollaboratorCommandOutput extends DisassociateAgentCollaboratorResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DisassociateAgentCollaboratorCommand_base: {
|
|
25
|
+
new (input: DisassociateAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateAgentCollaboratorCommandInput, DisassociateAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: DisassociateAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateAgentCollaboratorCommandInput, DisassociateAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Disassociates an agent collaborator.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, DisassociateAgentCollaboratorCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, DisassociateAgentCollaboratorCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // DisassociateAgentCollaboratorRequest
|
|
38
|
+
* agentId: "STRING_VALUE", // required
|
|
39
|
+
* agentVersion: "STRING_VALUE", // required
|
|
40
|
+
* collaboratorId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DisassociateAgentCollaboratorCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // {};
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param DisassociateAgentCollaboratorCommandInput - {@link DisassociateAgentCollaboratorCommandInput}
|
|
49
|
+
* @returns {@link DisassociateAgentCollaboratorCommandOutput}
|
|
50
|
+
* @see {@link DisassociateAgentCollaboratorCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link DisassociateAgentCollaboratorCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link ConflictException} (client fault)
|
|
58
|
+
* <p>There was a conflict performing an operation.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServerException} (server fault)
|
|
61
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
64
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
67
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ValidationException} (client fault)
|
|
70
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link BedrockAgentServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export declare class DisassociateAgentCollaboratorCommand extends DisassociateAgentCollaboratorCommand_base {
|
|
78
|
+
/** @internal type navigation helper, not in runtime. */
|
|
79
|
+
protected static __types: {
|
|
80
|
+
api: {
|
|
81
|
+
input: DisassociateAgentCollaboratorRequest;
|
|
82
|
+
output: {};
|
|
83
|
+
};
|
|
84
|
+
sdk: {
|
|
85
|
+
input: DisassociateAgentCollaboratorCommandInput;
|
|
86
|
+
output: DisassociateAgentCollaboratorCommandOutput;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import { GetAgentCollaboratorRequest, GetAgentCollaboratorResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAgentCollaboratorCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAgentCollaboratorCommandInput extends GetAgentCollaboratorRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAgentCollaboratorCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAgentCollaboratorCommandOutput extends GetAgentCollaboratorResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAgentCollaboratorCommand_base: {
|
|
25
|
+
new (input: GetAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<GetAgentCollaboratorCommandInput, GetAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: GetAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<GetAgentCollaboratorCommandInput, GetAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves information about an agent's collaborator.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, GetAgentCollaboratorCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, GetAgentCollaboratorCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // GetAgentCollaboratorRequest
|
|
38
|
+
* agentId: "STRING_VALUE", // required
|
|
39
|
+
* agentVersion: "STRING_VALUE", // required
|
|
40
|
+
* collaboratorId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetAgentCollaboratorCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetAgentCollaboratorResponse
|
|
45
|
+
* // agentCollaborator: { // AgentCollaborator
|
|
46
|
+
* // agentId: "STRING_VALUE", // required
|
|
47
|
+
* // agentVersion: "STRING_VALUE", // required
|
|
48
|
+
* // agentDescriptor: { // AgentDescriptor
|
|
49
|
+
* // aliasArn: "STRING_VALUE",
|
|
50
|
+
* // },
|
|
51
|
+
* // collaboratorId: "STRING_VALUE", // required
|
|
52
|
+
* // collaborationInstruction: "STRING_VALUE", // required
|
|
53
|
+
* // collaboratorName: "STRING_VALUE", // required
|
|
54
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
55
|
+
* // lastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
56
|
+
* // relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
|
|
57
|
+
* // clientToken: "STRING_VALUE",
|
|
58
|
+
* // },
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param GetAgentCollaboratorCommandInput - {@link GetAgentCollaboratorCommandInput}
|
|
64
|
+
* @returns {@link GetAgentCollaboratorCommandOutput}
|
|
65
|
+
* @see {@link GetAgentCollaboratorCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link GetAgentCollaboratorCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
70
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalServerException} (server fault)
|
|
73
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
76
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
79
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ValidationException} (client fault)
|
|
82
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link BedrockAgentServiceException}
|
|
85
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class GetAgentCollaboratorCommand extends GetAgentCollaboratorCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: GetAgentCollaboratorRequest;
|
|
94
|
+
output: GetAgentCollaboratorResponse;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: GetAgentCollaboratorCommandInput;
|
|
98
|
+
output: GetAgentCollaboratorCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -85,6 +85,7 @@ declare const GetAgentCommand_base: {
|
|
|
85
85
|
* // ],
|
|
86
86
|
* // },
|
|
87
87
|
* // parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
88
|
+
* // foundationModel: "STRING_VALUE",
|
|
88
89
|
* // },
|
|
89
90
|
* // ],
|
|
90
91
|
* // overrideLambda: "STRING_VALUE",
|
|
@@ -99,6 +100,7 @@ declare const GetAgentCommand_base: {
|
|
|
99
100
|
* // ],
|
|
100
101
|
* // storageDays: Number("int"),
|
|
101
102
|
* // },
|
|
103
|
+
* // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
|
|
102
104
|
* // },
|
|
103
105
|
* // };
|
|
104
106
|
*
|
|
@@ -78,6 +78,7 @@ declare const GetAgentVersionCommand_base: {
|
|
|
78
78
|
* // ],
|
|
79
79
|
* // },
|
|
80
80
|
* // parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
81
|
+
* // foundationModel: "STRING_VALUE",
|
|
81
82
|
* // },
|
|
82
83
|
* // ],
|
|
83
84
|
* // overrideLambda: "STRING_VALUE",
|
|
@@ -92,6 +93,7 @@ declare const GetAgentVersionCommand_base: {
|
|
|
92
93
|
* // ],
|
|
93
94
|
* // storageDays: Number("int"),
|
|
94
95
|
* // },
|
|
96
|
+
* // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
|
|
95
97
|
* // },
|
|
96
98
|
* // };
|
|
97
99
|
*
|
|
@@ -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 { IngestKnowledgeBaseDocumentsRequest, IngestKnowledgeBaseDocumentsResponse } from "../models/
|
|
4
|
+
import { IngestKnowledgeBaseDocumentsRequest, IngestKnowledgeBaseDocumentsResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import { ListAgentCollaboratorsRequest, ListAgentCollaboratorsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListAgentCollaboratorsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAgentCollaboratorsCommandInput extends ListAgentCollaboratorsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAgentCollaboratorsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAgentCollaboratorsCommandOutput extends ListAgentCollaboratorsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAgentCollaboratorsCommand_base: {
|
|
25
|
+
new (input: ListAgentCollaboratorsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAgentCollaboratorsCommandInput, ListAgentCollaboratorsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListAgentCollaboratorsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAgentCollaboratorsCommandInput, ListAgentCollaboratorsCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieve a list of an agent's collaborators.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, ListAgentCollaboratorsCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, ListAgentCollaboratorsCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // ListAgentCollaboratorsRequest
|
|
38
|
+
* agentId: "STRING_VALUE", // required
|
|
39
|
+
* agentVersion: "STRING_VALUE", // required
|
|
40
|
+
* maxResults: Number("int"),
|
|
41
|
+
* nextToken: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new ListAgentCollaboratorsCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // ListAgentCollaboratorsResponse
|
|
46
|
+
* // agentCollaboratorSummaries: [ // AgentCollaboratorSummaries // required
|
|
47
|
+
* // { // AgentCollaboratorSummary
|
|
48
|
+
* // agentId: "STRING_VALUE", // required
|
|
49
|
+
* // agentVersion: "STRING_VALUE", // required
|
|
50
|
+
* // collaboratorId: "STRING_VALUE", // required
|
|
51
|
+
* // agentDescriptor: { // AgentDescriptor
|
|
52
|
+
* // aliasArn: "STRING_VALUE",
|
|
53
|
+
* // },
|
|
54
|
+
* // collaborationInstruction: "STRING_VALUE", // required
|
|
55
|
+
* // relayConversationHistory: "TO_COLLABORATOR" || "DISABLED", // required
|
|
56
|
+
* // collaboratorName: "STRING_VALUE", // required
|
|
57
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
58
|
+
* // lastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
59
|
+
* // },
|
|
60
|
+
* // ],
|
|
61
|
+
* // nextToken: "STRING_VALUE",
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param ListAgentCollaboratorsCommandInput - {@link ListAgentCollaboratorsCommandInput}
|
|
67
|
+
* @returns {@link ListAgentCollaboratorsCommandOutput}
|
|
68
|
+
* @see {@link ListAgentCollaboratorsCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link ListAgentCollaboratorsCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerException} (server fault)
|
|
76
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
79
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
82
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ValidationException} (client fault)
|
|
85
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link BedrockAgentServiceException}
|
|
88
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
89
|
+
*
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
export declare class ListAgentCollaboratorsCommand extends ListAgentCollaboratorsCommand_base {
|
|
93
|
+
/** @internal type navigation helper, not in runtime. */
|
|
94
|
+
protected static __types: {
|
|
95
|
+
api: {
|
|
96
|
+
input: ListAgentCollaboratorsRequest;
|
|
97
|
+
output: ListAgentCollaboratorsResponse;
|
|
98
|
+
};
|
|
99
|
+
sdk: {
|
|
100
|
+
input: ListAgentCollaboratorsCommandInput;
|
|
101
|
+
output: ListAgentCollaboratorsCommandOutput;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -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 { ListKnowledgeBaseDocumentsRequest, ListKnowledgeBaseDocumentsResponse } from "../models/
|
|
4
|
+
import { ListKnowledgeBaseDocumentsRequest, ListKnowledgeBaseDocumentsResponse } from "../models/models_1";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
7
7
|
*/
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
|
|
4
|
+
import { UpdateAgentCollaboratorRequest, UpdateAgentCollaboratorResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateAgentCollaboratorCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateAgentCollaboratorCommandInput extends UpdateAgentCollaboratorRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateAgentCollaboratorCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateAgentCollaboratorCommandOutput extends UpdateAgentCollaboratorResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateAgentCollaboratorCommand_base: {
|
|
25
|
+
new (input: UpdateAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateAgentCollaboratorCommandInput, UpdateAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateAgentCollaboratorCommandInput, UpdateAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates an agent's collaborator.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, UpdateAgentCollaboratorCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, UpdateAgentCollaboratorCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // UpdateAgentCollaboratorRequest
|
|
38
|
+
* agentId: "STRING_VALUE", // required
|
|
39
|
+
* agentVersion: "STRING_VALUE", // required
|
|
40
|
+
* collaboratorId: "STRING_VALUE", // required
|
|
41
|
+
* agentDescriptor: { // AgentDescriptor
|
|
42
|
+
* aliasArn: "STRING_VALUE",
|
|
43
|
+
* },
|
|
44
|
+
* collaboratorName: "STRING_VALUE", // required
|
|
45
|
+
* collaborationInstruction: "STRING_VALUE", // required
|
|
46
|
+
* relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
|
|
47
|
+
* };
|
|
48
|
+
* const command = new UpdateAgentCollaboratorCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // UpdateAgentCollaboratorResponse
|
|
51
|
+
* // agentCollaborator: { // AgentCollaborator
|
|
52
|
+
* // agentId: "STRING_VALUE", // required
|
|
53
|
+
* // agentVersion: "STRING_VALUE", // required
|
|
54
|
+
* // agentDescriptor: { // AgentDescriptor
|
|
55
|
+
* // aliasArn: "STRING_VALUE",
|
|
56
|
+
* // },
|
|
57
|
+
* // collaboratorId: "STRING_VALUE", // required
|
|
58
|
+
* // collaborationInstruction: "STRING_VALUE", // required
|
|
59
|
+
* // collaboratorName: "STRING_VALUE", // required
|
|
60
|
+
* // createdAt: new Date("TIMESTAMP"), // required
|
|
61
|
+
* // lastUpdatedAt: new Date("TIMESTAMP"), // required
|
|
62
|
+
* // relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
|
|
63
|
+
* // clientToken: "STRING_VALUE",
|
|
64
|
+
* // },
|
|
65
|
+
* // };
|
|
66
|
+
*
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* @param UpdateAgentCollaboratorCommandInput - {@link UpdateAgentCollaboratorCommandInput}
|
|
70
|
+
* @returns {@link UpdateAgentCollaboratorCommandOutput}
|
|
71
|
+
* @see {@link UpdateAgentCollaboratorCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link UpdateAgentCollaboratorCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link BedrockAgentClientResolvedConfig | config} for BedrockAgentClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
76
|
+
* <p>The request is denied because of missing access permissions.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ConflictException} (client fault)
|
|
79
|
+
* <p>There was a conflict performing an operation.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InternalServerException} (server fault)
|
|
82
|
+
* <p>An internal server error occurred. Retry your request.</p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
88
|
+
* <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
91
|
+
* <p>The number of requests exceeds the limit. Resubmit your request later.</p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ValidationException} (client fault)
|
|
94
|
+
* <p>Input validation failed. Check your request parameters and retry the request.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link BedrockAgentServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from BedrockAgent service.</p>
|
|
98
|
+
*
|
|
99
|
+
* @public
|
|
100
|
+
*/
|
|
101
|
+
export declare class UpdateAgentCollaboratorCommand extends UpdateAgentCollaboratorCommand_base {
|
|
102
|
+
/** @internal type navigation helper, not in runtime. */
|
|
103
|
+
protected static __types: {
|
|
104
|
+
api: {
|
|
105
|
+
input: UpdateAgentCollaboratorRequest;
|
|
106
|
+
output: UpdateAgentCollaboratorResponse;
|
|
107
|
+
};
|
|
108
|
+
sdk: {
|
|
109
|
+
input: UpdateAgentCollaboratorCommandInput;
|
|
110
|
+
output: UpdateAgentCollaboratorCommandOutput;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -66,6 +66,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
66
66
|
* ],
|
|
67
67
|
* },
|
|
68
68
|
* parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
69
|
+
* foundationModel: "STRING_VALUE",
|
|
69
70
|
* },
|
|
70
71
|
* ],
|
|
71
72
|
* overrideLambda: "STRING_VALUE",
|
|
@@ -80,6 +81,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
80
81
|
* ],
|
|
81
82
|
* storageDays: Number("int"),
|
|
82
83
|
* },
|
|
84
|
+
* agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
|
|
83
85
|
* };
|
|
84
86
|
* const command = new UpdateAgentCommand(input);
|
|
85
87
|
* const response = await client.send(command);
|
|
@@ -129,6 +131,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
129
131
|
* // ],
|
|
130
132
|
* // },
|
|
131
133
|
* // parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
134
|
+
* // foundationModel: "STRING_VALUE",
|
|
132
135
|
* // },
|
|
133
136
|
* // ],
|
|
134
137
|
* // overrideLambda: "STRING_VALUE",
|
|
@@ -143,6 +146,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
143
146
|
* // ],
|
|
144
147
|
* // storageDays: Number("int"),
|
|
145
148
|
* // },
|
|
149
|
+
* // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
|
|
146
150
|
* // },
|
|
147
151
|
* // };
|
|
148
152
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./AssociateAgentCollaboratorCommand";
|
|
1
2
|
export * from "./AssociateAgentKnowledgeBaseCommand";
|
|
2
3
|
export * from "./CreateAgentActionGroupCommand";
|
|
3
4
|
export * from "./CreateAgentAliasCommand";
|
|
@@ -20,9 +21,11 @@ export * from "./DeleteFlowVersionCommand";
|
|
|
20
21
|
export * from "./DeleteKnowledgeBaseCommand";
|
|
21
22
|
export * from "./DeleteKnowledgeBaseDocumentsCommand";
|
|
22
23
|
export * from "./DeletePromptCommand";
|
|
24
|
+
export * from "./DisassociateAgentCollaboratorCommand";
|
|
23
25
|
export * from "./DisassociateAgentKnowledgeBaseCommand";
|
|
24
26
|
export * from "./GetAgentActionGroupCommand";
|
|
25
27
|
export * from "./GetAgentAliasCommand";
|
|
28
|
+
export * from "./GetAgentCollaboratorCommand";
|
|
26
29
|
export * from "./GetAgentCommand";
|
|
27
30
|
export * from "./GetAgentKnowledgeBaseCommand";
|
|
28
31
|
export * from "./GetAgentVersionCommand";
|
|
@@ -37,6 +40,7 @@ export * from "./GetPromptCommand";
|
|
|
37
40
|
export * from "./IngestKnowledgeBaseDocumentsCommand";
|
|
38
41
|
export * from "./ListAgentActionGroupsCommand";
|
|
39
42
|
export * from "./ListAgentAliasesCommand";
|
|
43
|
+
export * from "./ListAgentCollaboratorsCommand";
|
|
40
44
|
export * from "./ListAgentKnowledgeBasesCommand";
|
|
41
45
|
export * from "./ListAgentVersionsCommand";
|
|
42
46
|
export * from "./ListAgentsCommand";
|
|
@@ -57,6 +61,7 @@ export * from "./TagResourceCommand";
|
|
|
57
61
|
export * from "./UntagResourceCommand";
|
|
58
62
|
export * from "./UpdateAgentActionGroupCommand";
|
|
59
63
|
export * from "./UpdateAgentAliasCommand";
|
|
64
|
+
export * from "./UpdateAgentCollaboratorCommand";
|
|
60
65
|
export * from "./UpdateAgentCommand";
|
|
61
66
|
export * from "./UpdateAgentKnowledgeBaseCommand";
|
|
62
67
|
export * from "./UpdateDataSourceCommand";
|