@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
|
@@ -4,6 +4,25 @@ import { _json, collectBody, decorateServiceException as __decorateServiceExcept
|
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { BedrockAgentServiceException as __BaseException } from "../models/BedrockAgentServiceException";
|
|
6
6
|
import { AccessDeniedException, ConflictException, FlowNodeConfiguration, InternalServerException, PromptFlowNodeSourceConfiguration, PromptInferenceConfiguration, PromptTemplateConfiguration, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, Tool, ToolInputSchema, ValidationException, } from "../models/models_0";
|
|
7
|
+
export const se_AssociateAgentCollaboratorCommand = async (input, context) => {
|
|
8
|
+
const b = rb(input, context);
|
|
9
|
+
const headers = {
|
|
10
|
+
"content-type": "application/json",
|
|
11
|
+
};
|
|
12
|
+
b.bp("/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators");
|
|
13
|
+
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
14
|
+
b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify(take(input, {
|
|
17
|
+
agentDescriptor: (_) => _json(_),
|
|
18
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
19
|
+
collaborationInstruction: [],
|
|
20
|
+
collaboratorName: [],
|
|
21
|
+
relayConversationHistory: [],
|
|
22
|
+
}));
|
|
23
|
+
b.m("PUT").h(headers).b(body);
|
|
24
|
+
return b.build();
|
|
25
|
+
};
|
|
7
26
|
export const se_AssociateAgentKnowledgeBaseCommand = async (input, context) => {
|
|
8
27
|
const b = rb(input, context);
|
|
9
28
|
const headers = {
|
|
@@ -29,6 +48,7 @@ export const se_CreateAgentCommand = async (input, context) => {
|
|
|
29
48
|
b.bp("/agents");
|
|
30
49
|
let body;
|
|
31
50
|
body = JSON.stringify(take(input, {
|
|
51
|
+
agentCollaboration: [],
|
|
32
52
|
agentName: [],
|
|
33
53
|
agentResourceRoleArn: [],
|
|
34
54
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -344,6 +364,17 @@ export const se_DeletePromptCommand = async (input, context) => {
|
|
|
344
364
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
345
365
|
return b.build();
|
|
346
366
|
};
|
|
367
|
+
export const se_DisassociateAgentCollaboratorCommand = async (input, context) => {
|
|
368
|
+
const b = rb(input, context);
|
|
369
|
+
const headers = {};
|
|
370
|
+
b.bp("/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators/{collaboratorId}");
|
|
371
|
+
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
372
|
+
b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
|
|
373
|
+
b.p("collaboratorId", () => input.collaboratorId, "{collaboratorId}", false);
|
|
374
|
+
let body;
|
|
375
|
+
b.m("DELETE").h(headers).b(body);
|
|
376
|
+
return b.build();
|
|
377
|
+
};
|
|
347
378
|
export const se_DisassociateAgentKnowledgeBaseCommand = async (input, context) => {
|
|
348
379
|
const b = rb(input, context);
|
|
349
380
|
const headers = {};
|
|
@@ -385,6 +416,17 @@ export const se_GetAgentAliasCommand = async (input, context) => {
|
|
|
385
416
|
b.m("GET").h(headers).b(body);
|
|
386
417
|
return b.build();
|
|
387
418
|
};
|
|
419
|
+
export const se_GetAgentCollaboratorCommand = async (input, context) => {
|
|
420
|
+
const b = rb(input, context);
|
|
421
|
+
const headers = {};
|
|
422
|
+
b.bp("/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators/{collaboratorId}");
|
|
423
|
+
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
424
|
+
b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
|
|
425
|
+
b.p("collaboratorId", () => input.collaboratorId, "{collaboratorId}", false);
|
|
426
|
+
let body;
|
|
427
|
+
b.m("GET").h(headers).b(body);
|
|
428
|
+
return b.build();
|
|
429
|
+
};
|
|
388
430
|
export const se_GetAgentKnowledgeBaseCommand = async (input, context) => {
|
|
389
431
|
const b = rb(input, context);
|
|
390
432
|
const headers = {};
|
|
@@ -539,6 +581,22 @@ export const se_ListAgentAliasesCommand = async (input, context) => {
|
|
|
539
581
|
b.m("POST").h(headers).b(body);
|
|
540
582
|
return b.build();
|
|
541
583
|
};
|
|
584
|
+
export const se_ListAgentCollaboratorsCommand = async (input, context) => {
|
|
585
|
+
const b = rb(input, context);
|
|
586
|
+
const headers = {
|
|
587
|
+
"content-type": "application/json",
|
|
588
|
+
};
|
|
589
|
+
b.bp("/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators");
|
|
590
|
+
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
591
|
+
b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
|
|
592
|
+
let body;
|
|
593
|
+
body = JSON.stringify(take(input, {
|
|
594
|
+
maxResults: [],
|
|
595
|
+
nextToken: [],
|
|
596
|
+
}));
|
|
597
|
+
b.m("POST").h(headers).b(body);
|
|
598
|
+
return b.build();
|
|
599
|
+
};
|
|
542
600
|
export const se_ListAgentKnowledgeBasesCommand = async (input, context) => {
|
|
543
601
|
const b = rb(input, context);
|
|
544
602
|
const headers = {
|
|
@@ -787,6 +845,7 @@ export const se_UpdateAgentCommand = async (input, context) => {
|
|
|
787
845
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
788
846
|
let body;
|
|
789
847
|
body = JSON.stringify(take(input, {
|
|
848
|
+
agentCollaboration: [],
|
|
790
849
|
agentName: [],
|
|
791
850
|
agentResourceRoleArn: [],
|
|
792
851
|
customOrchestration: (_) => _json(_),
|
|
@@ -842,6 +901,25 @@ export const se_UpdateAgentAliasCommand = async (input, context) => {
|
|
|
842
901
|
b.m("PUT").h(headers).b(body);
|
|
843
902
|
return b.build();
|
|
844
903
|
};
|
|
904
|
+
export const se_UpdateAgentCollaboratorCommand = async (input, context) => {
|
|
905
|
+
const b = rb(input, context);
|
|
906
|
+
const headers = {
|
|
907
|
+
"content-type": "application/json",
|
|
908
|
+
};
|
|
909
|
+
b.bp("/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators/{collaboratorId}");
|
|
910
|
+
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
911
|
+
b.p("agentVersion", () => input.agentVersion, "{agentVersion}", false);
|
|
912
|
+
b.p("collaboratorId", () => input.collaboratorId, "{collaboratorId}", false);
|
|
913
|
+
let body;
|
|
914
|
+
body = JSON.stringify(take(input, {
|
|
915
|
+
agentDescriptor: (_) => _json(_),
|
|
916
|
+
collaborationInstruction: [],
|
|
917
|
+
collaboratorName: [],
|
|
918
|
+
relayConversationHistory: [],
|
|
919
|
+
}));
|
|
920
|
+
b.m("PUT").h(headers).b(body);
|
|
921
|
+
return b.build();
|
|
922
|
+
};
|
|
845
923
|
export const se_UpdateAgentKnowledgeBaseCommand = async (input, context) => {
|
|
846
924
|
const b = rb(input, context);
|
|
847
925
|
const headers = {
|
|
@@ -963,6 +1041,20 @@ export const se_ValidateFlowDefinitionCommand = async (input, context) => {
|
|
|
963
1041
|
b.m("POST").h(headers).b(body);
|
|
964
1042
|
return b.build();
|
|
965
1043
|
};
|
|
1044
|
+
export const de_AssociateAgentCollaboratorCommand = async (output, context) => {
|
|
1045
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1046
|
+
return de_CommandError(output, context);
|
|
1047
|
+
}
|
|
1048
|
+
const contents = map({
|
|
1049
|
+
$metadata: deserializeMetadata(output),
|
|
1050
|
+
});
|
|
1051
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1052
|
+
const doc = take(data, {
|
|
1053
|
+
agentCollaborator: (_) => de_AgentCollaborator(_, context),
|
|
1054
|
+
});
|
|
1055
|
+
Object.assign(contents, doc);
|
|
1056
|
+
return contents;
|
|
1057
|
+
};
|
|
966
1058
|
export const de_AssociateAgentKnowledgeBaseCommand = async (output, context) => {
|
|
967
1059
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
968
1060
|
return de_CommandError(output, context);
|
|
@@ -1322,6 +1414,16 @@ export const de_DeletePromptCommand = async (output, context) => {
|
|
|
1322
1414
|
Object.assign(contents, doc);
|
|
1323
1415
|
return contents;
|
|
1324
1416
|
};
|
|
1417
|
+
export const de_DisassociateAgentCollaboratorCommand = async (output, context) => {
|
|
1418
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1419
|
+
return de_CommandError(output, context);
|
|
1420
|
+
}
|
|
1421
|
+
const contents = map({
|
|
1422
|
+
$metadata: deserializeMetadata(output),
|
|
1423
|
+
});
|
|
1424
|
+
await collectBody(output.body, context);
|
|
1425
|
+
return contents;
|
|
1426
|
+
};
|
|
1325
1427
|
export const de_DisassociateAgentKnowledgeBaseCommand = async (output, context) => {
|
|
1326
1428
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1327
1429
|
return de_CommandError(output, context);
|
|
@@ -1374,6 +1476,20 @@ export const de_GetAgentAliasCommand = async (output, context) => {
|
|
|
1374
1476
|
Object.assign(contents, doc);
|
|
1375
1477
|
return contents;
|
|
1376
1478
|
};
|
|
1479
|
+
export const de_GetAgentCollaboratorCommand = async (output, context) => {
|
|
1480
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1481
|
+
return de_CommandError(output, context);
|
|
1482
|
+
}
|
|
1483
|
+
const contents = map({
|
|
1484
|
+
$metadata: deserializeMetadata(output),
|
|
1485
|
+
});
|
|
1486
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1487
|
+
const doc = take(data, {
|
|
1488
|
+
agentCollaborator: (_) => de_AgentCollaborator(_, context),
|
|
1489
|
+
});
|
|
1490
|
+
Object.assign(contents, doc);
|
|
1491
|
+
return contents;
|
|
1492
|
+
};
|
|
1377
1493
|
export const de_GetAgentKnowledgeBaseCommand = async (output, context) => {
|
|
1378
1494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1379
1495
|
return de_CommandError(output, context);
|
|
@@ -1594,6 +1710,21 @@ export const de_ListAgentAliasesCommand = async (output, context) => {
|
|
|
1594
1710
|
Object.assign(contents, doc);
|
|
1595
1711
|
return contents;
|
|
1596
1712
|
};
|
|
1713
|
+
export const de_ListAgentCollaboratorsCommand = async (output, context) => {
|
|
1714
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1715
|
+
return de_CommandError(output, context);
|
|
1716
|
+
}
|
|
1717
|
+
const contents = map({
|
|
1718
|
+
$metadata: deserializeMetadata(output),
|
|
1719
|
+
});
|
|
1720
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1721
|
+
const doc = take(data, {
|
|
1722
|
+
agentCollaboratorSummaries: (_) => de_AgentCollaboratorSummaries(_, context),
|
|
1723
|
+
nextToken: __expectString,
|
|
1724
|
+
});
|
|
1725
|
+
Object.assign(contents, doc);
|
|
1726
|
+
return contents;
|
|
1727
|
+
};
|
|
1597
1728
|
export const de_ListAgentKnowledgeBasesCommand = async (output, context) => {
|
|
1598
1729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1599
1730
|
return de_CommandError(output, context);
|
|
@@ -1895,6 +2026,20 @@ export const de_UpdateAgentAliasCommand = async (output, context) => {
|
|
|
1895
2026
|
Object.assign(contents, doc);
|
|
1896
2027
|
return contents;
|
|
1897
2028
|
};
|
|
2029
|
+
export const de_UpdateAgentCollaboratorCommand = async (output, context) => {
|
|
2030
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2031
|
+
return de_CommandError(output, context);
|
|
2032
|
+
}
|
|
2033
|
+
const contents = map({
|
|
2034
|
+
$metadata: deserializeMetadata(output),
|
|
2035
|
+
});
|
|
2036
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2037
|
+
const doc = take(data, {
|
|
2038
|
+
agentCollaborator: (_) => de_AgentCollaborator(_, context),
|
|
2039
|
+
});
|
|
2040
|
+
Object.assign(contents, doc);
|
|
2041
|
+
return contents;
|
|
2042
|
+
};
|
|
1898
2043
|
export const de_UpdateAgentKnowledgeBaseCommand = async (output, context) => {
|
|
1899
2044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1900
2045
|
return de_CommandError(output, context);
|
|
@@ -2278,6 +2423,7 @@ const se_MetadataAttributeValue = (input, context) => {
|
|
|
2278
2423
|
const se_PromptConfiguration = (input, context) => {
|
|
2279
2424
|
return take(input, {
|
|
2280
2425
|
basePromptTemplate: [],
|
|
2426
|
+
foundationModel: [],
|
|
2281
2427
|
inferenceConfiguration: (_) => se_InferenceConfiguration(_, context),
|
|
2282
2428
|
parserMode: [],
|
|
2283
2429
|
promptCreationMode: [],
|
|
@@ -2415,6 +2561,7 @@ const de_ActionGroupSummary = (output, context) => {
|
|
|
2415
2561
|
const de_Agent = (output, context) => {
|
|
2416
2562
|
return take(output, {
|
|
2417
2563
|
agentArn: __expectString,
|
|
2564
|
+
agentCollaboration: __expectString,
|
|
2418
2565
|
agentId: __expectString,
|
|
2419
2566
|
agentName: __expectString,
|
|
2420
2567
|
agentResourceRoleArn: __expectString,
|
|
@@ -2505,6 +2652,41 @@ const de_AgentAliasSummary = (output, context) => {
|
|
|
2505
2652
|
updatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2506
2653
|
});
|
|
2507
2654
|
};
|
|
2655
|
+
const de_AgentCollaborator = (output, context) => {
|
|
2656
|
+
return take(output, {
|
|
2657
|
+
agentDescriptor: _json,
|
|
2658
|
+
agentId: __expectString,
|
|
2659
|
+
agentVersion: __expectString,
|
|
2660
|
+
clientToken: __expectString,
|
|
2661
|
+
collaborationInstruction: __expectString,
|
|
2662
|
+
collaboratorId: __expectString,
|
|
2663
|
+
collaboratorName: __expectString,
|
|
2664
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2665
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2666
|
+
relayConversationHistory: __expectString,
|
|
2667
|
+
});
|
|
2668
|
+
};
|
|
2669
|
+
const de_AgentCollaboratorSummaries = (output, context) => {
|
|
2670
|
+
const retVal = (output || [])
|
|
2671
|
+
.filter((e) => e != null)
|
|
2672
|
+
.map((entry) => {
|
|
2673
|
+
return de_AgentCollaboratorSummary(entry, context);
|
|
2674
|
+
});
|
|
2675
|
+
return retVal;
|
|
2676
|
+
};
|
|
2677
|
+
const de_AgentCollaboratorSummary = (output, context) => {
|
|
2678
|
+
return take(output, {
|
|
2679
|
+
agentDescriptor: _json,
|
|
2680
|
+
agentId: __expectString,
|
|
2681
|
+
agentVersion: __expectString,
|
|
2682
|
+
collaborationInstruction: __expectString,
|
|
2683
|
+
collaboratorId: __expectString,
|
|
2684
|
+
collaboratorName: __expectString,
|
|
2685
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2686
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2687
|
+
relayConversationHistory: __expectString,
|
|
2688
|
+
});
|
|
2689
|
+
};
|
|
2508
2690
|
const de_AgentKnowledgeBase = (output, context) => {
|
|
2509
2691
|
return take(output, {
|
|
2510
2692
|
agentId: __expectString,
|
|
@@ -2554,6 +2736,7 @@ const de_AgentSummary = (output, context) => {
|
|
|
2554
2736
|
const de_AgentVersion = (output, context) => {
|
|
2555
2737
|
return take(output, {
|
|
2556
2738
|
agentArn: __expectString,
|
|
2739
|
+
agentCollaboration: __expectString,
|
|
2557
2740
|
agentId: __expectString,
|
|
2558
2741
|
agentName: __expectString,
|
|
2559
2742
|
agentResourceRoleArn: __expectString,
|
|
@@ -2872,6 +3055,7 @@ const de_KnowledgeBaseSummary = (output, context) => {
|
|
|
2872
3055
|
const de_PromptConfiguration = (output, context) => {
|
|
2873
3056
|
return take(output, {
|
|
2874
3057
|
basePromptTemplate: __expectString,
|
|
3058
|
+
foundationModel: __expectString,
|
|
2875
3059
|
inferenceConfiguration: (_) => de_InferenceConfiguration(_, context),
|
|
2876
3060
|
parserMode: __expectString,
|
|
2877
3061
|
promptCreationMode: __expectString,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { BedrockAgentClient } from "./BedrockAgentClient";
|
|
3
|
+
import { AssociateAgentCollaboratorCommandInput, AssociateAgentCollaboratorCommandOutput } from "./commands/AssociateAgentCollaboratorCommand";
|
|
3
4
|
import { AssociateAgentKnowledgeBaseCommandInput, AssociateAgentKnowledgeBaseCommandOutput } from "./commands/AssociateAgentKnowledgeBaseCommand";
|
|
4
5
|
import { CreateAgentActionGroupCommandInput, CreateAgentActionGroupCommandOutput } from "./commands/CreateAgentActionGroupCommand";
|
|
5
6
|
import { CreateAgentAliasCommandInput, CreateAgentAliasCommandOutput } from "./commands/CreateAgentAliasCommand";
|
|
@@ -22,9 +23,11 @@ import { DeleteFlowVersionCommandInput, DeleteFlowVersionCommandOutput } from ".
|
|
|
22
23
|
import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } from "./commands/DeleteKnowledgeBaseCommand";
|
|
23
24
|
import { DeleteKnowledgeBaseDocumentsCommandInput, DeleteKnowledgeBaseDocumentsCommandOutput } from "./commands/DeleteKnowledgeBaseDocumentsCommand";
|
|
24
25
|
import { DeletePromptCommandInput, DeletePromptCommandOutput } from "./commands/DeletePromptCommand";
|
|
26
|
+
import { DisassociateAgentCollaboratorCommandInput, DisassociateAgentCollaboratorCommandOutput } from "./commands/DisassociateAgentCollaboratorCommand";
|
|
25
27
|
import { DisassociateAgentKnowledgeBaseCommandInput, DisassociateAgentKnowledgeBaseCommandOutput } from "./commands/DisassociateAgentKnowledgeBaseCommand";
|
|
26
28
|
import { GetAgentActionGroupCommandInput, GetAgentActionGroupCommandOutput } from "./commands/GetAgentActionGroupCommand";
|
|
27
29
|
import { GetAgentAliasCommandInput, GetAgentAliasCommandOutput } from "./commands/GetAgentAliasCommand";
|
|
30
|
+
import { GetAgentCollaboratorCommandInput, GetAgentCollaboratorCommandOutput } from "./commands/GetAgentCollaboratorCommand";
|
|
28
31
|
import { GetAgentCommandInput, GetAgentCommandOutput } from "./commands/GetAgentCommand";
|
|
29
32
|
import { GetAgentKnowledgeBaseCommandInput, GetAgentKnowledgeBaseCommandOutput } from "./commands/GetAgentKnowledgeBaseCommand";
|
|
30
33
|
import { GetAgentVersionCommandInput, GetAgentVersionCommandOutput } from "./commands/GetAgentVersionCommand";
|
|
@@ -39,6 +42,7 @@ import { GetPromptCommandInput, GetPromptCommandOutput } from "./commands/GetPro
|
|
|
39
42
|
import { IngestKnowledgeBaseDocumentsCommandInput, IngestKnowledgeBaseDocumentsCommandOutput } from "./commands/IngestKnowledgeBaseDocumentsCommand";
|
|
40
43
|
import { ListAgentActionGroupsCommandInput, ListAgentActionGroupsCommandOutput } from "./commands/ListAgentActionGroupsCommand";
|
|
41
44
|
import { ListAgentAliasesCommandInput, ListAgentAliasesCommandOutput } from "./commands/ListAgentAliasesCommand";
|
|
45
|
+
import { ListAgentCollaboratorsCommandInput, ListAgentCollaboratorsCommandOutput } from "./commands/ListAgentCollaboratorsCommand";
|
|
42
46
|
import { ListAgentKnowledgeBasesCommandInput, ListAgentKnowledgeBasesCommandOutput } from "./commands/ListAgentKnowledgeBasesCommand";
|
|
43
47
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
44
48
|
import { ListAgentVersionsCommandInput, ListAgentVersionsCommandOutput } from "./commands/ListAgentVersionsCommand";
|
|
@@ -59,6 +63,7 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
59
63
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
60
64
|
import { UpdateAgentActionGroupCommandInput, UpdateAgentActionGroupCommandOutput } from "./commands/UpdateAgentActionGroupCommand";
|
|
61
65
|
import { UpdateAgentAliasCommandInput, UpdateAgentAliasCommandOutput } from "./commands/UpdateAgentAliasCommand";
|
|
66
|
+
import { UpdateAgentCollaboratorCommandInput, UpdateAgentCollaboratorCommandOutput } from "./commands/UpdateAgentCollaboratorCommand";
|
|
62
67
|
import { UpdateAgentCommandInput, UpdateAgentCommandOutput } from "./commands/UpdateAgentCommand";
|
|
63
68
|
import { UpdateAgentKnowledgeBaseCommandInput, UpdateAgentKnowledgeBaseCommandOutput } from "./commands/UpdateAgentKnowledgeBaseCommand";
|
|
64
69
|
import { UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput } from "./commands/UpdateDataSourceCommand";
|
|
@@ -68,6 +73,12 @@ import { UpdateKnowledgeBaseCommandInput, UpdateKnowledgeBaseCommandOutput } fro
|
|
|
68
73
|
import { UpdatePromptCommandInput, UpdatePromptCommandOutput } from "./commands/UpdatePromptCommand";
|
|
69
74
|
import { ValidateFlowDefinitionCommandInput, ValidateFlowDefinitionCommandOutput } from "./commands/ValidateFlowDefinitionCommand";
|
|
70
75
|
export interface BedrockAgent {
|
|
76
|
+
/**
|
|
77
|
+
* @see {@link AssociateAgentCollaboratorCommand}
|
|
78
|
+
*/
|
|
79
|
+
associateAgentCollaborator(args: AssociateAgentCollaboratorCommandInput, options?: __HttpHandlerOptions): Promise<AssociateAgentCollaboratorCommandOutput>;
|
|
80
|
+
associateAgentCollaborator(args: AssociateAgentCollaboratorCommandInput, cb: (err: any, data?: AssociateAgentCollaboratorCommandOutput) => void): void;
|
|
81
|
+
associateAgentCollaborator(args: AssociateAgentCollaboratorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateAgentCollaboratorCommandOutput) => void): void;
|
|
71
82
|
/**
|
|
72
83
|
* @see {@link AssociateAgentKnowledgeBaseCommand}
|
|
73
84
|
*/
|
|
@@ -200,6 +211,12 @@ export interface BedrockAgent {
|
|
|
200
211
|
deletePrompt(args: DeletePromptCommandInput, options?: __HttpHandlerOptions): Promise<DeletePromptCommandOutput>;
|
|
201
212
|
deletePrompt(args: DeletePromptCommandInput, cb: (err: any, data?: DeletePromptCommandOutput) => void): void;
|
|
202
213
|
deletePrompt(args: DeletePromptCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePromptCommandOutput) => void): void;
|
|
214
|
+
/**
|
|
215
|
+
* @see {@link DisassociateAgentCollaboratorCommand}
|
|
216
|
+
*/
|
|
217
|
+
disassociateAgentCollaborator(args: DisassociateAgentCollaboratorCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateAgentCollaboratorCommandOutput>;
|
|
218
|
+
disassociateAgentCollaborator(args: DisassociateAgentCollaboratorCommandInput, cb: (err: any, data?: DisassociateAgentCollaboratorCommandOutput) => void): void;
|
|
219
|
+
disassociateAgentCollaborator(args: DisassociateAgentCollaboratorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateAgentCollaboratorCommandOutput) => void): void;
|
|
203
220
|
/**
|
|
204
221
|
* @see {@link DisassociateAgentKnowledgeBaseCommand}
|
|
205
222
|
*/
|
|
@@ -224,6 +241,12 @@ export interface BedrockAgent {
|
|
|
224
241
|
getAgentAlias(args: GetAgentAliasCommandInput, options?: __HttpHandlerOptions): Promise<GetAgentAliasCommandOutput>;
|
|
225
242
|
getAgentAlias(args: GetAgentAliasCommandInput, cb: (err: any, data?: GetAgentAliasCommandOutput) => void): void;
|
|
226
243
|
getAgentAlias(args: GetAgentAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAgentAliasCommandOutput) => void): void;
|
|
244
|
+
/**
|
|
245
|
+
* @see {@link GetAgentCollaboratorCommand}
|
|
246
|
+
*/
|
|
247
|
+
getAgentCollaborator(args: GetAgentCollaboratorCommandInput, options?: __HttpHandlerOptions): Promise<GetAgentCollaboratorCommandOutput>;
|
|
248
|
+
getAgentCollaborator(args: GetAgentCollaboratorCommandInput, cb: (err: any, data?: GetAgentCollaboratorCommandOutput) => void): void;
|
|
249
|
+
getAgentCollaborator(args: GetAgentCollaboratorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAgentCollaboratorCommandOutput) => void): void;
|
|
227
250
|
/**
|
|
228
251
|
* @see {@link GetAgentKnowledgeBaseCommand}
|
|
229
252
|
*/
|
|
@@ -302,6 +325,12 @@ export interface BedrockAgent {
|
|
|
302
325
|
listAgentAliases(args: ListAgentAliasesCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentAliasesCommandOutput>;
|
|
303
326
|
listAgentAliases(args: ListAgentAliasesCommandInput, cb: (err: any, data?: ListAgentAliasesCommandOutput) => void): void;
|
|
304
327
|
listAgentAliases(args: ListAgentAliasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAgentAliasesCommandOutput) => void): void;
|
|
328
|
+
/**
|
|
329
|
+
* @see {@link ListAgentCollaboratorsCommand}
|
|
330
|
+
*/
|
|
331
|
+
listAgentCollaborators(args: ListAgentCollaboratorsCommandInput, options?: __HttpHandlerOptions): Promise<ListAgentCollaboratorsCommandOutput>;
|
|
332
|
+
listAgentCollaborators(args: ListAgentCollaboratorsCommandInput, cb: (err: any, data?: ListAgentCollaboratorsCommandOutput) => void): void;
|
|
333
|
+
listAgentCollaborators(args: ListAgentCollaboratorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAgentCollaboratorsCommandOutput) => void): void;
|
|
305
334
|
/**
|
|
306
335
|
* @see {@link ListAgentKnowledgeBasesCommand}
|
|
307
336
|
*/
|
|
@@ -432,6 +461,12 @@ export interface BedrockAgent {
|
|
|
432
461
|
updateAgentAlias(args: UpdateAgentAliasCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAgentAliasCommandOutput>;
|
|
433
462
|
updateAgentAlias(args: UpdateAgentAliasCommandInput, cb: (err: any, data?: UpdateAgentAliasCommandOutput) => void): void;
|
|
434
463
|
updateAgentAlias(args: UpdateAgentAliasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAgentAliasCommandOutput) => void): void;
|
|
464
|
+
/**
|
|
465
|
+
* @see {@link UpdateAgentCollaboratorCommand}
|
|
466
|
+
*/
|
|
467
|
+
updateAgentCollaborator(args: UpdateAgentCollaboratorCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAgentCollaboratorCommandOutput>;
|
|
468
|
+
updateAgentCollaborator(args: UpdateAgentCollaboratorCommandInput, cb: (err: any, data?: UpdateAgentCollaboratorCommandOutput) => void): void;
|
|
469
|
+
updateAgentCollaborator(args: UpdateAgentCollaboratorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAgentCollaboratorCommandOutput) => void): void;
|
|
435
470
|
/**
|
|
436
471
|
* @see {@link UpdateAgentKnowledgeBaseCommand}
|
|
437
472
|
*/
|
|
@@ -7,6 +7,7 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
|
|
|
7
7
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
8
8
|
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import { AssociateAgentCollaboratorCommandInput, AssociateAgentCollaboratorCommandOutput } from "./commands/AssociateAgentCollaboratorCommand";
|
|
10
11
|
import { AssociateAgentKnowledgeBaseCommandInput, AssociateAgentKnowledgeBaseCommandOutput } from "./commands/AssociateAgentKnowledgeBaseCommand";
|
|
11
12
|
import { CreateAgentActionGroupCommandInput, CreateAgentActionGroupCommandOutput } from "./commands/CreateAgentActionGroupCommand";
|
|
12
13
|
import { CreateAgentAliasCommandInput, CreateAgentAliasCommandOutput } from "./commands/CreateAgentAliasCommand";
|
|
@@ -29,9 +30,11 @@ import { DeleteFlowVersionCommandInput, DeleteFlowVersionCommandOutput } from ".
|
|
|
29
30
|
import { DeleteKnowledgeBaseCommandInput, DeleteKnowledgeBaseCommandOutput } from "./commands/DeleteKnowledgeBaseCommand";
|
|
30
31
|
import { DeleteKnowledgeBaseDocumentsCommandInput, DeleteKnowledgeBaseDocumentsCommandOutput } from "./commands/DeleteKnowledgeBaseDocumentsCommand";
|
|
31
32
|
import { DeletePromptCommandInput, DeletePromptCommandOutput } from "./commands/DeletePromptCommand";
|
|
33
|
+
import { DisassociateAgentCollaboratorCommandInput, DisassociateAgentCollaboratorCommandOutput } from "./commands/DisassociateAgentCollaboratorCommand";
|
|
32
34
|
import { DisassociateAgentKnowledgeBaseCommandInput, DisassociateAgentKnowledgeBaseCommandOutput } from "./commands/DisassociateAgentKnowledgeBaseCommand";
|
|
33
35
|
import { GetAgentActionGroupCommandInput, GetAgentActionGroupCommandOutput } from "./commands/GetAgentActionGroupCommand";
|
|
34
36
|
import { GetAgentAliasCommandInput, GetAgentAliasCommandOutput } from "./commands/GetAgentAliasCommand";
|
|
37
|
+
import { GetAgentCollaboratorCommandInput, GetAgentCollaboratorCommandOutput } from "./commands/GetAgentCollaboratorCommand";
|
|
35
38
|
import { GetAgentCommandInput, GetAgentCommandOutput } from "./commands/GetAgentCommand";
|
|
36
39
|
import { GetAgentKnowledgeBaseCommandInput, GetAgentKnowledgeBaseCommandOutput } from "./commands/GetAgentKnowledgeBaseCommand";
|
|
37
40
|
import { GetAgentVersionCommandInput, GetAgentVersionCommandOutput } from "./commands/GetAgentVersionCommand";
|
|
@@ -46,6 +49,7 @@ import { GetPromptCommandInput, GetPromptCommandOutput } from "./commands/GetPro
|
|
|
46
49
|
import { IngestKnowledgeBaseDocumentsCommandInput, IngestKnowledgeBaseDocumentsCommandOutput } from "./commands/IngestKnowledgeBaseDocumentsCommand";
|
|
47
50
|
import { ListAgentActionGroupsCommandInput, ListAgentActionGroupsCommandOutput } from "./commands/ListAgentActionGroupsCommand";
|
|
48
51
|
import { ListAgentAliasesCommandInput, ListAgentAliasesCommandOutput } from "./commands/ListAgentAliasesCommand";
|
|
52
|
+
import { ListAgentCollaboratorsCommandInput, ListAgentCollaboratorsCommandOutput } from "./commands/ListAgentCollaboratorsCommand";
|
|
49
53
|
import { ListAgentKnowledgeBasesCommandInput, ListAgentKnowledgeBasesCommandOutput } from "./commands/ListAgentKnowledgeBasesCommand";
|
|
50
54
|
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "./commands/ListAgentsCommand";
|
|
51
55
|
import { ListAgentVersionsCommandInput, ListAgentVersionsCommandOutput } from "./commands/ListAgentVersionsCommand";
|
|
@@ -66,6 +70,7 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
66
70
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
67
71
|
import { UpdateAgentActionGroupCommandInput, UpdateAgentActionGroupCommandOutput } from "./commands/UpdateAgentActionGroupCommand";
|
|
68
72
|
import { UpdateAgentAliasCommandInput, UpdateAgentAliasCommandOutput } from "./commands/UpdateAgentAliasCommand";
|
|
73
|
+
import { UpdateAgentCollaboratorCommandInput, UpdateAgentCollaboratorCommandOutput } from "./commands/UpdateAgentCollaboratorCommand";
|
|
69
74
|
import { UpdateAgentCommandInput, UpdateAgentCommandOutput } from "./commands/UpdateAgentCommand";
|
|
70
75
|
import { UpdateAgentKnowledgeBaseCommandInput, UpdateAgentKnowledgeBaseCommandOutput } from "./commands/UpdateAgentKnowledgeBaseCommand";
|
|
71
76
|
import { UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput } from "./commands/UpdateDataSourceCommand";
|
|
@@ -80,11 +85,11 @@ export { __Client };
|
|
|
80
85
|
/**
|
|
81
86
|
* @public
|
|
82
87
|
*/
|
|
83
|
-
export type ServiceInputTypes = AssociateAgentKnowledgeBaseCommandInput | CreateAgentActionGroupCommandInput | CreateAgentAliasCommandInput | CreateAgentCommandInput | CreateDataSourceCommandInput | CreateFlowAliasCommandInput | CreateFlowCommandInput | CreateFlowVersionCommandInput | CreateKnowledgeBaseCommandInput | CreatePromptCommandInput | CreatePromptVersionCommandInput | DeleteAgentActionGroupCommandInput | DeleteAgentAliasCommandInput | DeleteAgentCommandInput | DeleteAgentVersionCommandInput | DeleteDataSourceCommandInput | DeleteFlowAliasCommandInput | DeleteFlowCommandInput | DeleteFlowVersionCommandInput | DeleteKnowledgeBaseCommandInput | DeleteKnowledgeBaseDocumentsCommandInput | DeletePromptCommandInput | DisassociateAgentKnowledgeBaseCommandInput | GetAgentActionGroupCommandInput | GetAgentAliasCommandInput | GetAgentCommandInput | GetAgentKnowledgeBaseCommandInput | GetAgentVersionCommandInput | GetDataSourceCommandInput | GetFlowAliasCommandInput | GetFlowCommandInput | GetFlowVersionCommandInput | GetIngestionJobCommandInput | GetKnowledgeBaseCommandInput | GetKnowledgeBaseDocumentsCommandInput | GetPromptCommandInput | IngestKnowledgeBaseDocumentsCommandInput | ListAgentActionGroupsCommandInput | ListAgentAliasesCommandInput | ListAgentKnowledgeBasesCommandInput | ListAgentVersionsCommandInput | ListAgentsCommandInput | ListDataSourcesCommandInput | ListFlowAliasesCommandInput | ListFlowVersionsCommandInput | ListFlowsCommandInput | ListIngestionJobsCommandInput | ListKnowledgeBaseDocumentsCommandInput | ListKnowledgeBasesCommandInput | ListPromptsCommandInput | ListTagsForResourceCommandInput | PrepareAgentCommandInput | PrepareFlowCommandInput | StartIngestionJobCommandInput | StopIngestionJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentActionGroupCommandInput | UpdateAgentAliasCommandInput | UpdateAgentCommandInput | UpdateAgentKnowledgeBaseCommandInput | UpdateDataSourceCommandInput | UpdateFlowAliasCommandInput | UpdateFlowCommandInput | UpdateKnowledgeBaseCommandInput | UpdatePromptCommandInput | ValidateFlowDefinitionCommandInput;
|
|
88
|
+
export type ServiceInputTypes = AssociateAgentCollaboratorCommandInput | AssociateAgentKnowledgeBaseCommandInput | CreateAgentActionGroupCommandInput | CreateAgentAliasCommandInput | CreateAgentCommandInput | CreateDataSourceCommandInput | CreateFlowAliasCommandInput | CreateFlowCommandInput | CreateFlowVersionCommandInput | CreateKnowledgeBaseCommandInput | CreatePromptCommandInput | CreatePromptVersionCommandInput | DeleteAgentActionGroupCommandInput | DeleteAgentAliasCommandInput | DeleteAgentCommandInput | DeleteAgentVersionCommandInput | DeleteDataSourceCommandInput | DeleteFlowAliasCommandInput | DeleteFlowCommandInput | DeleteFlowVersionCommandInput | DeleteKnowledgeBaseCommandInput | DeleteKnowledgeBaseDocumentsCommandInput | DeletePromptCommandInput | DisassociateAgentCollaboratorCommandInput | DisassociateAgentKnowledgeBaseCommandInput | GetAgentActionGroupCommandInput | GetAgentAliasCommandInput | GetAgentCollaboratorCommandInput | GetAgentCommandInput | GetAgentKnowledgeBaseCommandInput | GetAgentVersionCommandInput | GetDataSourceCommandInput | GetFlowAliasCommandInput | GetFlowCommandInput | GetFlowVersionCommandInput | GetIngestionJobCommandInput | GetKnowledgeBaseCommandInput | GetKnowledgeBaseDocumentsCommandInput | GetPromptCommandInput | IngestKnowledgeBaseDocumentsCommandInput | ListAgentActionGroupsCommandInput | ListAgentAliasesCommandInput | ListAgentCollaboratorsCommandInput | ListAgentKnowledgeBasesCommandInput | ListAgentVersionsCommandInput | ListAgentsCommandInput | ListDataSourcesCommandInput | ListFlowAliasesCommandInput | ListFlowVersionsCommandInput | ListFlowsCommandInput | ListIngestionJobsCommandInput | ListKnowledgeBaseDocumentsCommandInput | ListKnowledgeBasesCommandInput | ListPromptsCommandInput | ListTagsForResourceCommandInput | PrepareAgentCommandInput | PrepareFlowCommandInput | StartIngestionJobCommandInput | StopIngestionJobCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAgentActionGroupCommandInput | UpdateAgentAliasCommandInput | UpdateAgentCollaboratorCommandInput | UpdateAgentCommandInput | UpdateAgentKnowledgeBaseCommandInput | UpdateDataSourceCommandInput | UpdateFlowAliasCommandInput | UpdateFlowCommandInput | UpdateKnowledgeBaseCommandInput | UpdatePromptCommandInput | ValidateFlowDefinitionCommandInput;
|
|
84
89
|
/**
|
|
85
90
|
* @public
|
|
86
91
|
*/
|
|
87
|
-
export type ServiceOutputTypes = AssociateAgentKnowledgeBaseCommandOutput | CreateAgentActionGroupCommandOutput | CreateAgentAliasCommandOutput | CreateAgentCommandOutput | CreateDataSourceCommandOutput | CreateFlowAliasCommandOutput | CreateFlowCommandOutput | CreateFlowVersionCommandOutput | CreateKnowledgeBaseCommandOutput | CreatePromptCommandOutput | CreatePromptVersionCommandOutput | DeleteAgentActionGroupCommandOutput | DeleteAgentAliasCommandOutput | DeleteAgentCommandOutput | DeleteAgentVersionCommandOutput | DeleteDataSourceCommandOutput | DeleteFlowAliasCommandOutput | DeleteFlowCommandOutput | DeleteFlowVersionCommandOutput | DeleteKnowledgeBaseCommandOutput | DeleteKnowledgeBaseDocumentsCommandOutput | DeletePromptCommandOutput | DisassociateAgentKnowledgeBaseCommandOutput | GetAgentActionGroupCommandOutput | GetAgentAliasCommandOutput | GetAgentCommandOutput | GetAgentKnowledgeBaseCommandOutput | GetAgentVersionCommandOutput | GetDataSourceCommandOutput | GetFlowAliasCommandOutput | GetFlowCommandOutput | GetFlowVersionCommandOutput | GetIngestionJobCommandOutput | GetKnowledgeBaseCommandOutput | GetKnowledgeBaseDocumentsCommandOutput | GetPromptCommandOutput | IngestKnowledgeBaseDocumentsCommandOutput | ListAgentActionGroupsCommandOutput | ListAgentAliasesCommandOutput | ListAgentKnowledgeBasesCommandOutput | ListAgentVersionsCommandOutput | ListAgentsCommandOutput | ListDataSourcesCommandOutput | ListFlowAliasesCommandOutput | ListFlowVersionsCommandOutput | ListFlowsCommandOutput | ListIngestionJobsCommandOutput | ListKnowledgeBaseDocumentsCommandOutput | ListKnowledgeBasesCommandOutput | ListPromptsCommandOutput | ListTagsForResourceCommandOutput | PrepareAgentCommandOutput | PrepareFlowCommandOutput | StartIngestionJobCommandOutput | StopIngestionJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentActionGroupCommandOutput | UpdateAgentAliasCommandOutput | UpdateAgentCommandOutput | UpdateAgentKnowledgeBaseCommandOutput | UpdateDataSourceCommandOutput | UpdateFlowAliasCommandOutput | UpdateFlowCommandOutput | UpdateKnowledgeBaseCommandOutput | UpdatePromptCommandOutput | ValidateFlowDefinitionCommandOutput;
|
|
92
|
+
export type ServiceOutputTypes = AssociateAgentCollaboratorCommandOutput | AssociateAgentKnowledgeBaseCommandOutput | CreateAgentActionGroupCommandOutput | CreateAgentAliasCommandOutput | CreateAgentCommandOutput | CreateDataSourceCommandOutput | CreateFlowAliasCommandOutput | CreateFlowCommandOutput | CreateFlowVersionCommandOutput | CreateKnowledgeBaseCommandOutput | CreatePromptCommandOutput | CreatePromptVersionCommandOutput | DeleteAgentActionGroupCommandOutput | DeleteAgentAliasCommandOutput | DeleteAgentCommandOutput | DeleteAgentVersionCommandOutput | DeleteDataSourceCommandOutput | DeleteFlowAliasCommandOutput | DeleteFlowCommandOutput | DeleteFlowVersionCommandOutput | DeleteKnowledgeBaseCommandOutput | DeleteKnowledgeBaseDocumentsCommandOutput | DeletePromptCommandOutput | DisassociateAgentCollaboratorCommandOutput | DisassociateAgentKnowledgeBaseCommandOutput | GetAgentActionGroupCommandOutput | GetAgentAliasCommandOutput | GetAgentCollaboratorCommandOutput | GetAgentCommandOutput | GetAgentKnowledgeBaseCommandOutput | GetAgentVersionCommandOutput | GetDataSourceCommandOutput | GetFlowAliasCommandOutput | GetFlowCommandOutput | GetFlowVersionCommandOutput | GetIngestionJobCommandOutput | GetKnowledgeBaseCommandOutput | GetKnowledgeBaseDocumentsCommandOutput | GetPromptCommandOutput | IngestKnowledgeBaseDocumentsCommandOutput | ListAgentActionGroupsCommandOutput | ListAgentAliasesCommandOutput | ListAgentCollaboratorsCommandOutput | ListAgentKnowledgeBasesCommandOutput | ListAgentVersionsCommandOutput | ListAgentsCommandOutput | ListDataSourcesCommandOutput | ListFlowAliasesCommandOutput | ListFlowVersionsCommandOutput | ListFlowsCommandOutput | ListIngestionJobsCommandOutput | ListKnowledgeBaseDocumentsCommandOutput | ListKnowledgeBasesCommandOutput | ListPromptsCommandOutput | ListTagsForResourceCommandOutput | PrepareAgentCommandOutput | PrepareFlowCommandOutput | StartIngestionJobCommandOutput | StopIngestionJobCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAgentActionGroupCommandOutput | UpdateAgentAliasCommandOutput | UpdateAgentCollaboratorCommandOutput | UpdateAgentCommandOutput | UpdateAgentKnowledgeBaseCommandOutput | UpdateDataSourceCommandOutput | UpdateFlowAliasCommandOutput | UpdateFlowCommandOutput | UpdateKnowledgeBaseCommandOutput | UpdatePromptCommandOutput | ValidateFlowDefinitionCommandOutput;
|
|
88
93
|
/**
|
|
89
94
|
* @public
|
|
90
95
|
*/
|
|
@@ -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 { AssociateAgentCollaboratorRequest, AssociateAgentCollaboratorResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AssociateAgentCollaboratorCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AssociateAgentCollaboratorCommandInput extends AssociateAgentCollaboratorRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AssociateAgentCollaboratorCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AssociateAgentCollaboratorCommandOutput extends AssociateAgentCollaboratorResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AssociateAgentCollaboratorCommand_base: {
|
|
25
|
+
new (input: AssociateAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateAgentCollaboratorCommandInput, AssociateAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: AssociateAgentCollaboratorCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateAgentCollaboratorCommandInput, AssociateAgentCollaboratorCommandOutput, BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Makes an agent a collaborator for another agent.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentClient, AssociateAgentCollaboratorCommand } from "@aws-sdk/client-bedrock-agent"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentClient, AssociateAgentCollaboratorCommand } = require("@aws-sdk/client-bedrock-agent"); // CommonJS import
|
|
36
|
+
* const client = new BedrockAgentClient(config);
|
|
37
|
+
* const input = { // AssociateAgentCollaboratorRequest
|
|
38
|
+
* agentId: "STRING_VALUE", // required
|
|
39
|
+
* agentVersion: "STRING_VALUE", // required
|
|
40
|
+
* agentDescriptor: { // AgentDescriptor
|
|
41
|
+
* aliasArn: "STRING_VALUE",
|
|
42
|
+
* },
|
|
43
|
+
* collaboratorName: "STRING_VALUE", // required
|
|
44
|
+
* collaborationInstruction: "STRING_VALUE", // required
|
|
45
|
+
* relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
|
|
46
|
+
* clientToken: "STRING_VALUE",
|
|
47
|
+
* };
|
|
48
|
+
* const command = new AssociateAgentCollaboratorCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // { // AssociateAgentCollaboratorResponse
|
|
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 AssociateAgentCollaboratorCommandInput - {@link AssociateAgentCollaboratorCommandInput}
|
|
70
|
+
* @returns {@link AssociateAgentCollaboratorCommandOutput}
|
|
71
|
+
* @see {@link AssociateAgentCollaboratorCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link AssociateAgentCollaboratorCommandOutput} 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 AssociateAgentCollaboratorCommand extends AssociateAgentCollaboratorCommand_base {
|
|
102
|
+
/** @internal type navigation helper, not in runtime. */
|
|
103
|
+
protected static __types: {
|
|
104
|
+
api: {
|
|
105
|
+
input: AssociateAgentCollaboratorRequest;
|
|
106
|
+
output: AssociateAgentCollaboratorResponse;
|
|
107
|
+
};
|
|
108
|
+
sdk: {
|
|
109
|
+
input: AssociateAgentCollaboratorCommandInput;
|
|
110
|
+
output: AssociateAgentCollaboratorCommandOutput;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -100,6 +100,7 @@ declare const CreateAgentCommand_base: {
|
|
|
100
100
|
* ],
|
|
101
101
|
* },
|
|
102
102
|
* parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
103
|
+
* foundationModel: "STRING_VALUE",
|
|
103
104
|
* },
|
|
104
105
|
* ],
|
|
105
106
|
* overrideLambda: "STRING_VALUE",
|
|
@@ -114,6 +115,7 @@ declare const CreateAgentCommand_base: {
|
|
|
114
115
|
* ],
|
|
115
116
|
* storageDays: Number("int"),
|
|
116
117
|
* },
|
|
118
|
+
* agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
|
|
117
119
|
* };
|
|
118
120
|
* const command = new CreateAgentCommand(input);
|
|
119
121
|
* const response = await client.send(command);
|
|
@@ -163,6 +165,7 @@ declare const CreateAgentCommand_base: {
|
|
|
163
165
|
* // ],
|
|
164
166
|
* // },
|
|
165
167
|
* // parserMode: "DEFAULT" || "OVERRIDDEN",
|
|
168
|
+
* // foundationModel: "STRING_VALUE",
|
|
166
169
|
* // },
|
|
167
170
|
* // ],
|
|
168
171
|
* // overrideLambda: "STRING_VALUE",
|
|
@@ -177,6 +180,7 @@ declare const CreateAgentCommand_base: {
|
|
|
177
180
|
* // ],
|
|
178
181
|
* // storageDays: Number("int"),
|
|
179
182
|
* // },
|
|
183
|
+
* // agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
|
|
180
184
|
* // },
|
|
181
185
|
* // };
|
|
182
186
|
*
|