@aws-sdk/client-bedrock-agent 3.1151.0 → 3.1153.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.
Files changed (49) hide show
  1. package/README.md +49 -0
  2. package/dist-cjs/index.js +263 -1
  3. package/dist-es/BedrockAgent.js +18 -0
  4. package/dist-es/commands/CreateRetrievalInstructionCommand.js +4 -0
  5. package/dist-es/commands/CreateRetrievalInstructionVersionCommand.js +4 -0
  6. package/dist-es/commands/DeleteRetrievalInstructionCommand.js +4 -0
  7. package/dist-es/commands/GetRetrievalInstructionCommand.js +4 -0
  8. package/dist-es/commands/ListRetrievalInstructionVersionsCommand.js +4 -0
  9. package/dist-es/commands/ListRetrievalInstructionsCommand.js +4 -0
  10. package/dist-es/commands/UpdateRetrievalInstructionCommand.js +4 -0
  11. package/dist-es/commands/index.js +7 -0
  12. package/dist-es/models/enums.js +23 -0
  13. package/dist-es/pagination/ListRetrievalInstructionVersionsPaginator.js +4 -0
  14. package/dist-es/pagination/ListRetrievalInstructionsPaginator.js +4 -0
  15. package/dist-es/pagination/index.js +2 -0
  16. package/dist-es/schemas/schemas_0.js +167 -0
  17. package/dist-types/BedrockAgent.d.ts +64 -0
  18. package/dist-types/BedrockAgentClient.d.ts +9 -2
  19. package/dist-types/commands/CreateRetrievalInstructionCommand.d.ts +107 -0
  20. package/dist-types/commands/CreateRetrievalInstructionVersionCommand.d.ts +98 -0
  21. package/dist-types/commands/DeleteRetrievalInstructionCommand.d.ts +92 -0
  22. package/dist-types/commands/GetRetrievalInstructionCommand.d.ts +110 -0
  23. package/dist-types/commands/ListRetrievalInstructionVersionsCommand.d.ts +94 -0
  24. package/dist-types/commands/ListRetrievalInstructionsCommand.d.ts +97 -0
  25. package/dist-types/commands/UpdateRetrievalInstructionCommand.d.ts +102 -0
  26. package/dist-types/commands/index.d.ts +7 -0
  27. package/dist-types/models/enums.d.ts +55 -0
  28. package/dist-types/models/models_1.d.ts +485 -1
  29. package/dist-types/pagination/ListRetrievalInstructionVersionsPaginator.d.ts +7 -0
  30. package/dist-types/pagination/ListRetrievalInstructionsPaginator.d.ts +7 -0
  31. package/dist-types/pagination/index.d.ts +2 -0
  32. package/dist-types/schemas/schemas_0.d.ts +25 -0
  33. package/dist-types/ts3.4/BedrockAgent.d.ts +134 -0
  34. package/dist-types/ts3.4/BedrockAgentClient.d.ts +42 -0
  35. package/dist-types/ts3.4/commands/CreateRetrievalInstructionCommand.d.ts +42 -0
  36. package/dist-types/ts3.4/commands/CreateRetrievalInstructionVersionCommand.d.ts +42 -0
  37. package/dist-types/ts3.4/commands/DeleteRetrievalInstructionCommand.d.ts +42 -0
  38. package/dist-types/ts3.4/commands/GetRetrievalInstructionCommand.d.ts +42 -0
  39. package/dist-types/ts3.4/commands/ListRetrievalInstructionVersionsCommand.d.ts +42 -0
  40. package/dist-types/ts3.4/commands/ListRetrievalInstructionsCommand.d.ts +42 -0
  41. package/dist-types/ts3.4/commands/UpdateRetrievalInstructionCommand.d.ts +42 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  43. package/dist-types/ts3.4/models/enums.d.ts +31 -0
  44. package/dist-types/ts3.4/models/models_1.d.ts +118 -0
  45. package/dist-types/ts3.4/pagination/ListRetrievalInstructionVersionsPaginator.d.ts +11 -0
  46. package/dist-types/ts3.4/pagination/ListRetrievalInstructionsPaginator.d.ts +11 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  48. package/dist-types/ts3.4/schemas/schemas_0.d.ts +25 -0
  49. package/package.json +4 -4
@@ -12,6 +12,8 @@ import { CreateFlowVersionCommand, } from "./commands/CreateFlowVersionCommand";
12
12
  import { CreateKnowledgeBaseCommand, } from "./commands/CreateKnowledgeBaseCommand";
13
13
  import { CreatePromptCommand, } from "./commands/CreatePromptCommand";
14
14
  import { CreatePromptVersionCommand, } from "./commands/CreatePromptVersionCommand";
15
+ import { CreateRetrievalInstructionCommand, } from "./commands/CreateRetrievalInstructionCommand";
16
+ import { CreateRetrievalInstructionVersionCommand, } from "./commands/CreateRetrievalInstructionVersionCommand";
15
17
  import { CreateVpcConfigurationCommand, } from "./commands/CreateVpcConfigurationCommand";
16
18
  import { DeleteAgentActionGroupCommand, } from "./commands/DeleteAgentActionGroupCommand";
17
19
  import { DeleteAgentAliasCommand, } from "./commands/DeleteAgentAliasCommand";
@@ -25,6 +27,7 @@ import { DeleteKnowledgeBaseCommand, } from "./commands/DeleteKnowledgeBaseComma
25
27
  import { DeleteKnowledgeBaseDocumentsCommand, } from "./commands/DeleteKnowledgeBaseDocumentsCommand";
26
28
  import { DeletePromptCommand, } from "./commands/DeletePromptCommand";
27
29
  import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
30
+ import { DeleteRetrievalInstructionCommand, } from "./commands/DeleteRetrievalInstructionCommand";
28
31
  import { DeleteVpcConfigurationCommand, } from "./commands/DeleteVpcConfigurationCommand";
29
32
  import { DisassociateAgentCollaboratorCommand, } from "./commands/DisassociateAgentCollaboratorCommand";
30
33
  import { DisassociateAgentKnowledgeBaseCommand, } from "./commands/DisassociateAgentKnowledgeBaseCommand";
@@ -43,6 +46,7 @@ import { GetKnowledgeBaseCommand, } from "./commands/GetKnowledgeBaseCommand";
43
46
  import { GetKnowledgeBaseDocumentsCommand, } from "./commands/GetKnowledgeBaseDocumentsCommand";
44
47
  import { GetPromptCommand } from "./commands/GetPromptCommand";
45
48
  import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
49
+ import { GetRetrievalInstructionCommand, } from "./commands/GetRetrievalInstructionCommand";
46
50
  import { GetVpcConfigurationCommand, } from "./commands/GetVpcConfigurationCommand";
47
51
  import { IngestKnowledgeBaseDocumentsCommand, } from "./commands/IngestKnowledgeBaseDocumentsCommand";
48
52
  import { ListAgentActionGroupsCommand, } from "./commands/ListAgentActionGroupsCommand";
@@ -59,6 +63,8 @@ import { ListIngestionJobsCommand, } from "./commands/ListIngestionJobsCommand";
59
63
  import { ListKnowledgeBaseDocumentsCommand, } from "./commands/ListKnowledgeBaseDocumentsCommand";
60
64
  import { ListKnowledgeBasesCommand, } from "./commands/ListKnowledgeBasesCommand";
61
65
  import { ListPromptsCommand, } from "./commands/ListPromptsCommand";
66
+ import { ListRetrievalInstructionsCommand, } from "./commands/ListRetrievalInstructionsCommand";
67
+ import { ListRetrievalInstructionVersionsCommand, } from "./commands/ListRetrievalInstructionVersionsCommand";
62
68
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
63
69
  import { ListVpcConfigurationsCommand, } from "./commands/ListVpcConfigurationsCommand";
64
70
  import { PrepareAgentCommand, } from "./commands/PrepareAgentCommand";
@@ -78,6 +84,7 @@ import { UpdateFlowAliasCommand, } from "./commands/UpdateFlowAliasCommand";
78
84
  import { UpdateFlowCommand, } from "./commands/UpdateFlowCommand";
79
85
  import { UpdateKnowledgeBaseCommand, } from "./commands/UpdateKnowledgeBaseCommand";
80
86
  import { UpdatePromptCommand, } from "./commands/UpdatePromptCommand";
87
+ import { UpdateRetrievalInstructionCommand, } from "./commands/UpdateRetrievalInstructionCommand";
81
88
  import { ValidateFlowDefinitionCommand, } from "./commands/ValidateFlowDefinitionCommand";
82
89
  import { paginateListAgentActionGroups } from "./pagination/ListAgentActionGroupsPaginator";
83
90
  import { paginateListAgentAliases } from "./pagination/ListAgentAliasesPaginator";
@@ -93,6 +100,8 @@ import { paginateListIngestionJobs } from "./pagination/ListIngestionJobsPaginat
93
100
  import { paginateListKnowledgeBaseDocuments } from "./pagination/ListKnowledgeBaseDocumentsPaginator";
94
101
  import { paginateListKnowledgeBases } from "./pagination/ListKnowledgeBasesPaginator";
95
102
  import { paginateListPrompts } from "./pagination/ListPromptsPaginator";
103
+ import { paginateListRetrievalInstructions } from "./pagination/ListRetrievalInstructionsPaginator";
104
+ import { paginateListRetrievalInstructionVersions } from "./pagination/ListRetrievalInstructionVersionsPaginator";
96
105
  import { paginateListVpcConfigurations } from "./pagination/ListVpcConfigurationsPaginator";
97
106
  const commands = {
98
107
  AssociateAgentCollaboratorCommand,
@@ -107,6 +116,8 @@ const commands = {
107
116
  CreateKnowledgeBaseCommand,
108
117
  CreatePromptCommand,
109
118
  CreatePromptVersionCommand,
119
+ CreateRetrievalInstructionCommand,
120
+ CreateRetrievalInstructionVersionCommand,
110
121
  CreateVpcConfigurationCommand,
111
122
  DeleteAgentCommand,
112
123
  DeleteAgentActionGroupCommand,
@@ -120,6 +131,7 @@ const commands = {
120
131
  DeleteKnowledgeBaseDocumentsCommand,
121
132
  DeletePromptCommand,
122
133
  DeleteResourcePolicyCommand,
134
+ DeleteRetrievalInstructionCommand,
123
135
  DeleteVpcConfigurationCommand,
124
136
  DisassociateAgentCollaboratorCommand,
125
137
  DisassociateAgentKnowledgeBaseCommand,
@@ -138,6 +150,7 @@ const commands = {
138
150
  GetKnowledgeBaseDocumentsCommand,
139
151
  GetPromptCommand,
140
152
  GetResourcePolicyCommand,
153
+ GetRetrievalInstructionCommand,
141
154
  GetVpcConfigurationCommand,
142
155
  IngestKnowledgeBaseDocumentsCommand,
143
156
  ListAgentActionGroupsCommand,
@@ -154,6 +167,8 @@ const commands = {
154
167
  ListKnowledgeBaseDocumentsCommand,
155
168
  ListKnowledgeBasesCommand,
156
169
  ListPromptsCommand,
170
+ ListRetrievalInstructionsCommand,
171
+ ListRetrievalInstructionVersionsCommand,
157
172
  ListTagsForResourceCommand,
158
173
  ListVpcConfigurationsCommand,
159
174
  PrepareAgentCommand,
@@ -173,6 +188,7 @@ const commands = {
173
188
  UpdateFlowAliasCommand,
174
189
  UpdateKnowledgeBaseCommand,
175
190
  UpdatePromptCommand,
191
+ UpdateRetrievalInstructionCommand,
176
192
  ValidateFlowDefinitionCommand,
177
193
  };
178
194
  const paginators = {
@@ -190,6 +206,8 @@ const paginators = {
190
206
  paginateListKnowledgeBaseDocuments,
191
207
  paginateListKnowledgeBases,
192
208
  paginateListPrompts,
209
+ paginateListRetrievalInstructions,
210
+ paginateListRetrievalInstructionVersions,
193
211
  paginateListVpcConfigurations,
194
212
  };
195
213
  export class BedrockAgent extends BedrockAgentClient {
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateRetrievalInstruction$ } from "../schemas/schemas_0";
3
+ export class CreateRetrievalInstructionCommand extends command(_ep0, _mw0, "CreateRetrievalInstruction", CreateRetrievalInstruction$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateRetrievalInstructionVersion$ } from "../schemas/schemas_0";
3
+ export class CreateRetrievalInstructionVersionCommand extends command(_ep0, _mw0, "CreateRetrievalInstructionVersion", CreateRetrievalInstructionVersion$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteRetrievalInstruction$ } from "../schemas/schemas_0";
3
+ export class DeleteRetrievalInstructionCommand extends command(_ep0, _mw0, "DeleteRetrievalInstruction", DeleteRetrievalInstruction$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetRetrievalInstruction$ } from "../schemas/schemas_0";
3
+ export class GetRetrievalInstructionCommand extends command(_ep0, _mw0, "GetRetrievalInstruction", GetRetrievalInstruction$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListRetrievalInstructionVersions$ } from "../schemas/schemas_0";
3
+ export class ListRetrievalInstructionVersionsCommand extends command(_ep0, _mw0, "ListRetrievalInstructionVersions", ListRetrievalInstructionVersions$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListRetrievalInstructions$ } from "../schemas/schemas_0";
3
+ export class ListRetrievalInstructionsCommand extends command(_ep0, _mw0, "ListRetrievalInstructions", ListRetrievalInstructions$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateRetrievalInstruction$ } from "../schemas/schemas_0";
3
+ export class UpdateRetrievalInstructionCommand extends command(_ep0, _mw0, "UpdateRetrievalInstruction", UpdateRetrievalInstruction$) {
4
+ }
@@ -10,6 +10,8 @@ export * from "./CreateFlowVersionCommand";
10
10
  export * from "./CreateKnowledgeBaseCommand";
11
11
  export * from "./CreatePromptCommand";
12
12
  export * from "./CreatePromptVersionCommand";
13
+ export * from "./CreateRetrievalInstructionCommand";
14
+ export * from "./CreateRetrievalInstructionVersionCommand";
13
15
  export * from "./CreateVpcConfigurationCommand";
14
16
  export * from "./DeleteAgentActionGroupCommand";
15
17
  export * from "./DeleteAgentAliasCommand";
@@ -23,6 +25,7 @@ export * from "./DeleteKnowledgeBaseCommand";
23
25
  export * from "./DeleteKnowledgeBaseDocumentsCommand";
24
26
  export * from "./DeletePromptCommand";
25
27
  export * from "./DeleteResourcePolicyCommand";
28
+ export * from "./DeleteRetrievalInstructionCommand";
26
29
  export * from "./DeleteVpcConfigurationCommand";
27
30
  export * from "./DisassociateAgentCollaboratorCommand";
28
31
  export * from "./DisassociateAgentKnowledgeBaseCommand";
@@ -41,6 +44,7 @@ export * from "./GetKnowledgeBaseCommand";
41
44
  export * from "./GetKnowledgeBaseDocumentsCommand";
42
45
  export * from "./GetPromptCommand";
43
46
  export * from "./GetResourcePolicyCommand";
47
+ export * from "./GetRetrievalInstructionCommand";
44
48
  export * from "./GetVpcConfigurationCommand";
45
49
  export * from "./IngestKnowledgeBaseDocumentsCommand";
46
50
  export * from "./ListAgentActionGroupsCommand";
@@ -57,6 +61,8 @@ export * from "./ListIngestionJobsCommand";
57
61
  export * from "./ListKnowledgeBaseDocumentsCommand";
58
62
  export * from "./ListKnowledgeBasesCommand";
59
63
  export * from "./ListPromptsCommand";
64
+ export * from "./ListRetrievalInstructionVersionsCommand";
65
+ export * from "./ListRetrievalInstructionsCommand";
60
66
  export * from "./ListTagsForResourceCommand";
61
67
  export * from "./ListVpcConfigurationsCommand";
62
68
  export * from "./PrepareAgentCommand";
@@ -76,4 +82,5 @@ export * from "./UpdateFlowAliasCommand";
76
82
  export * from "./UpdateFlowCommand";
77
83
  export * from "./UpdateKnowledgeBaseCommand";
78
84
  export * from "./UpdatePromptCommand";
85
+ export * from "./UpdateRetrievalInstructionCommand";
79
86
  export * from "./ValidateFlowDefinitionCommand";
@@ -421,3 +421,26 @@ export const KnowledgeBaseStatus = {
421
421
  UPDATE_UNSUCCESSFUL: "UPDATE_UNSUCCESSFUL",
422
422
  UPDATING: "UPDATING",
423
423
  };
424
+ export const RetrievalInstructionLastTransitionStatus = {
425
+ CREATE_FAILED: "CREATE_FAILED",
426
+ CREATE_SUCCESSFUL: "CREATE_SUCCESSFUL",
427
+ CREATING: "CREATING",
428
+ UPDATE_FAILED: "UPDATE_FAILED",
429
+ UPDATE_SUCCESSFUL: "UPDATE_SUCCESSFUL",
430
+ UPDATING: "UPDATING",
431
+ };
432
+ export const RetrievalInstructionStatus = {
433
+ ACTIVE: "ACTIVE",
434
+ INACTIVE: "INACTIVE",
435
+ };
436
+ export const RetrievalInstructionFailureReasonCode = {
437
+ CLIENT_ERROR: "CLIENT_ERROR",
438
+ CONTENT_REJECTED: "CONTENT_REJECTED",
439
+ INTERNAL_ERROR: "INTERNAL_ERROR",
440
+ };
441
+ export const RetrievalInstructionFieldName = {
442
+ ANSWER_FORMAT: "ANSWER_FORMAT",
443
+ ANSWER_POLICY: "ANSWER_POLICY",
444
+ PERSONA: "PERSONA",
445
+ RETRIEVAL_GUIDANCE: "RETRIEVAL_GUIDANCE",
446
+ };
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockAgentClient } from "../BedrockAgentClient";
3
+ import { ListRetrievalInstructionVersionsCommand, } from "../commands/ListRetrievalInstructionVersionsCommand";
4
+ export const paginateListRetrievalInstructionVersions = createPaginator(BedrockAgentClient, ListRetrievalInstructionVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { BedrockAgentClient } from "../BedrockAgentClient";
3
+ import { ListRetrievalInstructionsCommand, } from "../commands/ListRetrievalInstructionsCommand";
4
+ export const paginateListRetrievalInstructions = createPaginator(BedrockAgentClient, ListRetrievalInstructionsCommand, "nextToken", "nextToken", "maxResults");
@@ -13,4 +13,6 @@ export * from "./ListIngestionJobsPaginator";
13
13
  export * from "./ListKnowledgeBaseDocumentsPaginator";
14
14
  export * from "./ListKnowledgeBasesPaginator";
15
15
  export * from "./ListPromptsPaginator";
16
+ export * from "./ListRetrievalInstructionsPaginator";
17
+ export * from "./ListRetrievalInstructionVersionsPaginator";
16
18
  export * from "./ListVpcConfigurationsPaginator";
@@ -93,6 +93,12 @@ const _CPVR = "CreatePromptVersionRequest";
93
93
  const _CPVRr = "CreatePromptVersionResponse";
94
94
  const _CQ = "CuratedQuery";
95
95
  const _CQu = "CuratedQueries";
96
+ const _CRI = "CreateRetrievalInstruction";
97
+ const _CRIR = "CreateRetrievalInstructionRequest";
98
+ const _CRIRr = "CreateRetrievalInstructionResponse";
99
+ const _CRIV = "CreateRetrievalInstructionVersion";
100
+ const _CRIVR = "CreateRetrievalInstructionVersionRequest";
101
+ const _CRIVRr = "CreateRetrievalInstructionVersionResponse";
96
102
  const _CSC = "ConfluenceSourceConfiguration";
97
103
  const _CSL = "CustomS3Location";
98
104
  const _CTC = "CustomTransformationConfiguration";
@@ -149,6 +155,9 @@ const _DP = "DeletePrompt";
149
155
  const _DPC = "DeletionProtectionConfiguration";
150
156
  const _DPR = "DeletePromptRequest";
151
157
  const _DPRe = "DeletePromptResponse";
158
+ const _DRI = "DeleteRetrievalInstruction";
159
+ const _DRIR = "DeleteRetrievalInstructionRequest";
160
+ const _DRIRe = "DeleteRetrievalInstructionResponse";
152
161
  const _DRP = "DeleteResourcePolicy";
153
162
  const _DRPR = "DeleteResourcePolicyRequest";
154
163
  const _DRPRe = "DeleteResourcePolicyResponse";
@@ -244,6 +253,9 @@ const _GKBRe = "GetKnowledgeBaseResponse";
244
253
  const _GP = "GetPrompt";
245
254
  const _GPR = "GetPromptRequest";
246
255
  const _GPRe = "GetPromptResponse";
256
+ const _GRI = "GetRetrievalInstruction";
257
+ const _GRIR = "GetRetrievalInstructionRequest";
258
+ const _GRIRe = "GetRetrievalInstructionResponse";
247
259
  const _GRP = "GetResourcePolicy";
248
260
  const _GRPR = "GetResourcePolicyRequest";
249
261
  const _GRPRe = "GetResourcePolicyResponse";
@@ -340,6 +352,12 @@ const _LKBRi = "ListKnowledgeBasesResponse";
340
352
  const _LP = "ListPrompts";
341
353
  const _LPR = "ListPromptsRequest";
342
354
  const _LPRi = "ListPromptsResponse";
355
+ const _LRI = "ListRetrievalInstructions";
356
+ const _LRIR = "ListRetrievalInstructionsRequest";
357
+ const _LRIRi = "ListRetrievalInstructionsResponse";
358
+ const _LRIV = "ListRetrievalInstructionVersions";
359
+ const _LRIVR = "ListRetrievalInstructionVersionsRequest";
360
+ const _LRIVRi = "ListRetrievalInstructionVersionsResponse";
343
361
  const _LTFR = "ListTagsForResource";
344
362
  const _LTFRR = "ListTagsForResourceRequest";
345
363
  const _LTFRRi = "ListTagsForResourceResponse";
@@ -441,6 +459,16 @@ const _RFM = "RdsFieldMapping";
441
459
  const _RFNC = "RetrievalFlowNodeConfiguration";
442
460
  const _RFNSC = "RetrievalFlowNodeS3Configuration";
443
461
  const _RFNSCe = "RetrievalFlowNodeServiceConfiguration";
462
+ const _RIC = "RetrievalInstructionContent";
463
+ const _RID = "RetrievalInstructionDescription";
464
+ const _RIFR = "RetrievalInstructionFailureReason";
465
+ const _RIFRe = "RetrievalInstructionFailureReasons";
466
+ const _RIFT = "RetrievalInstructionFieldText";
467
+ const _RIN = "RetrievalInstructionName";
468
+ const _RIS = "RetrievalInstructionSummary";
469
+ const _RISe = "RetrievalInstructionSummaries";
470
+ const _RIVS = "RetrievalInstructionVersionSummary";
471
+ const _RIVSe = "RetrievalInstructionVersionSummaries";
444
472
  const _RMSMC = "RerankingMetadataSelectiveModeConfiguration";
445
473
  const _RNFE = "ResourceNotFoundException";
446
474
  const _RP = "ResourcePolicy";
@@ -554,6 +582,9 @@ const _UP = "UpdatePrompt";
554
582
  const _UPR = "UpdatePromptRequest";
555
583
  const _UPRp = "UpdatePromptResponse";
556
584
  const _UR = "UntagResource";
585
+ const _URI = "UpdateRetrievalInstruction";
586
+ const _URIR = "UpdateRetrievalInstructionRequest";
587
+ const _URIRp = "UpdateRetrievalInstructionResponse";
557
588
  const _URR = "UntagResourceRequest";
558
589
  const _URRn = "UntagResourceResponse";
559
590
  const _VBA = "VectorBucketArn";
@@ -600,6 +631,7 @@ const _aD = "agentDescriptor";
600
631
  const _aDCC = "awsDataCatalogConfiguration";
601
632
  const _aEC = "audioExtractionConfiguration";
602
633
  const _aES = "audioExtractionStatus";
634
+ const _aF = "answerFormat";
603
635
  const _aGE = "actionGroupExecutor";
604
636
  const _aGI = "actionGroupId";
605
637
  const _aGN = "actionGroupName";
@@ -613,6 +645,7 @@ const _aKB = "agentKnowledgeBase";
613
645
  const _aKBS = "agentKnowledgeBaseSummaries";
614
646
  const _aMRF = "additionalModelRequestFields";
615
647
  const _aN = "agentName";
648
+ const _aP = "answerPolicy";
616
649
  const _aRRA = "agentResourceRoleArn";
617
650
  const _aS = "agentStatus";
618
651
  const _aSg = "agentSummaries";
@@ -815,7 +848,10 @@ const _lI = "localeId";
815
848
  const _lINT = "loopIncompatibleNodeType";
816
849
  const _lIo = "loopInput";
817
850
  const _lN = "loopNode";
851
+ const _lTS = "lastTransitionStatus";
852
+ const _lTSR = "lastTransitionStatusReasons";
818
853
  const _lUA = "lastUpdatedAt";
854
+ const _lV = "latestVersion";
819
855
  const _la = "latency";
820
856
  const _lam = "lambda";
821
857
  const _le = "lex";
@@ -919,6 +955,7 @@ const _pTro = "promptType";
919
955
  const _pV = "promptVersion";
920
956
  const _pa = "parameters";
921
957
  const _pay = "payload";
958
+ const _pe = "persona";
922
959
  const _po = "policy";
923
960
  const _pr = "protocol";
924
961
  const _pro = "prompt";
@@ -935,7 +972,13 @@ const _rCe = "requireConfirmation";
935
972
  const _rCed = "redshiftConfiguration";
936
973
  const _rCer = "rerankingConfiguration";
937
974
  const _rECC = "redisEnterpriseCloudConfiguration";
975
+ const _rG = "retrievalGuidance";
938
976
  const _rI = "revisionId";
977
+ const _rIA = "retrievalInstructionArn";
978
+ const _rII = "retrievalInstructionId";
979
+ const _rIS = "retrievalInstructionSummaries";
980
+ const _rIV = "retrievalInstructionVersion";
981
+ const _rIVS = "retrievalInstructionVersionSummaries";
939
982
  const _rL = "rateLimit";
940
983
  const _rM = "resolutionMode";
941
984
  const _rT = "resourceTarget";
@@ -1134,6 +1177,9 @@ var Payload = [0, n0, _P, 8, 0];
1134
1177
  var PromptMetadataKey = [0, n0, _PMK, 8, 0];
1135
1178
  var PromptMetadataValue = [0, n0, _PMV, 8, 0];
1136
1179
  var ResourcePolicy = [0, n0, _RP, { [_mT]: _a }, 0];
1180
+ var RetrievalInstructionDescription = [0, n0, _RID, 8, 0];
1181
+ var RetrievalInstructionFieldText = [0, n0, _RIFT, 8, 0];
1182
+ var RetrievalInstructionName = [0, n0, _RIN, 8, 0];
1137
1183
  var S3Prefix = [0, n0, _SP, 8, 0];
1138
1184
  var StringValue = [0, n0, _SV, 8, 0];
1139
1185
  var TextPrompt = [0, n0, _TP, 8, 0];
@@ -1440,6 +1486,26 @@ export var CreatePromptVersionResponse$ = [3, n0, _CPVRr,
1440
1486
  [_n, _id, _ar, _v, _cA, _uA, _d, _cEKA, _dV, _va],
1441
1487
  [0, 0, 0, 0, 5, 5, 0, 0, 0, [() => PromptVariantList, 0]], 6
1442
1488
  ];
1489
+ export var CreateRetrievalInstructionRequest$ = [3, n0, _CRIR,
1490
+ 0,
1491
+ [_n, _i, _cT, _d, _cEKA, _ta],
1492
+ [[() => RetrievalInstructionName, 0], [() => RetrievalInstructionContent$, 0], [0, 4], [() => RetrievalInstructionDescription, 0], 0, 128 | 0], 2
1493
+ ];
1494
+ export var CreateRetrievalInstructionResponse$ = [3, n0, _CRIRr,
1495
+ 0,
1496
+ [_rII, _rIA, _n, _st, _lTS, _cA, _uA],
1497
+ [0, 0, [() => RetrievalInstructionName, 0], 0, 0, 5, 5], 7
1498
+ ];
1499
+ export var CreateRetrievalInstructionVersionRequest$ = [3, n0, _CRIVR,
1500
+ 0,
1501
+ [_rII, _d, _cT],
1502
+ [[0, 1], [() => RetrievalInstructionDescription, 0], [0, 4]], 1
1503
+ ];
1504
+ export var CreateRetrievalInstructionVersionResponse$ = [3, n0, _CRIVRr,
1505
+ 0,
1506
+ [_rII, _rIA, _v, _cA, _d],
1507
+ [0, 0, 0, 5, [() => RetrievalInstructionDescription, 0]], 4
1508
+ ];
1443
1509
  export var CreateVpcConfigurationRequest$ = [3, n0, _CVCR,
1444
1510
  0,
1445
1511
  [_kBI, _vI, _sI, _rT, _p, _pr, _rM, _cT, _hH, _tSN, _n, _d],
@@ -1625,6 +1691,16 @@ export var DeleteResourcePolicyResponse$ = [3, n0, _DRPRe,
1625
1691
  [_rAe, _rI],
1626
1692
  [0, 0], 1
1627
1693
  ];
1694
+ export var DeleteRetrievalInstructionRequest$ = [3, n0, _DRIR,
1695
+ 0,
1696
+ [_rII, _rIV],
1697
+ [[0, 1], [0, { [_hQ]: _rIV }]], 1
1698
+ ];
1699
+ export var DeleteRetrievalInstructionResponse$ = [3, n0, _DRIRe,
1700
+ 0,
1701
+ [_rII, _rIA, _v],
1702
+ [0, 0, 0], 2
1703
+ ];
1628
1704
  export var DeleteVpcConfigurationRequest$ = [3, n0, _DVCR,
1629
1705
  0,
1630
1706
  [_kBI, _vCI],
@@ -1935,6 +2011,16 @@ export var GetResourcePolicyResponse$ = [3, n0, _GRPRe,
1935
2011
  [_rAe, _po, _rI],
1936
2012
  [0, [() => ResourcePolicy, 0], 0], 3
1937
2013
  ];
2014
+ export var GetRetrievalInstructionRequest$ = [3, n0, _GRIR,
2015
+ 0,
2016
+ [_rII, _rIV],
2017
+ [[0, 1], [0, { [_hQ]: _rIV }]], 1
2018
+ ];
2019
+ export var GetRetrievalInstructionResponse$ = [3, n0, _GRIRe,
2020
+ 0,
2021
+ [_rII, _rIA, _n, _st, _lTS, _cA, _uA, _i, _d, _cEKA, _lTSR, _v, _lV],
2022
+ [0, 0, [() => RetrievalInstructionName, 0], 0, 0, 5, 5, [() => RetrievalInstructionContent$, 0], [() => RetrievalInstructionDescription, 0], 0, () => RetrievalInstructionFailureReasons, 0, 0], 7
2023
+ ];
1938
2024
  export var GetVpcConfigurationRequest$ = [3, n0, _GVCR,
1939
2025
  0,
1940
2026
  [_kBI, _vCI],
@@ -2240,6 +2326,26 @@ export var ListPromptsResponse$ = [3, n0, _LPRi,
2240
2326
  [_pS, _nT],
2241
2327
  [() => PromptSummaries, 0], 1
2242
2328
  ];
2329
+ export var ListRetrievalInstructionsRequest$ = [3, n0, _LRIR,
2330
+ 0,
2331
+ [_st, _mR, _nT],
2332
+ [[0, { [_hQ]: _st }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
2333
+ ];
2334
+ export var ListRetrievalInstructionsResponse$ = [3, n0, _LRIRi,
2335
+ 0,
2336
+ [_rIS, _nT],
2337
+ [[() => RetrievalInstructionSummaries, 0], 0], 1
2338
+ ];
2339
+ export var ListRetrievalInstructionVersionsRequest$ = [3, n0, _LRIVR,
2340
+ 0,
2341
+ [_rII, _mR, _nT],
2342
+ [[0, 1], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
2343
+ ];
2344
+ export var ListRetrievalInstructionVersionsResponse$ = [3, n0, _LRIVRi,
2345
+ 0,
2346
+ [_rIVS, _nT],
2347
+ [() => RetrievalInstructionVersionSummaries, 0], 1
2348
+ ];
2243
2349
  export var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
2244
2350
  0,
2245
2351
  [_rAe],
@@ -2670,6 +2776,26 @@ export var RetrievalFlowNodeS3Configuration$ = [3, n0, _RFNSC,
2670
2776
  [_bN],
2671
2777
  [0], 1
2672
2778
  ];
2779
+ export var RetrievalInstructionContent$ = [3, n0, _RIC,
2780
+ 8,
2781
+ [_rG, _pe, _aF, _aP],
2782
+ [[() => RetrievalInstructionFieldText, 0], [() => RetrievalInstructionFieldText, 0], [() => RetrievalInstructionFieldText, 0], [() => RetrievalInstructionFieldText, 0]]
2783
+ ];
2784
+ export var RetrievalInstructionFailureReason$ = [3, n0, _RIFR,
2785
+ 0,
2786
+ [_cod, _m, _fN],
2787
+ [0, 0, 0], 2
2788
+ ];
2789
+ export var RetrievalInstructionSummary$ = [3, n0, _RIS,
2790
+ 0,
2791
+ [_rII, _rIA, _n, _st, _lTS, _cA, _uA, _d],
2792
+ [0, 0, [() => RetrievalInstructionName, 0], 0, 0, 5, 5, [() => RetrievalInstructionDescription, 0]], 7
2793
+ ];
2794
+ export var RetrievalInstructionVersionSummary$ = [3, n0, _RIVS,
2795
+ 0,
2796
+ [_v, _cA],
2797
+ [0, 5], 2
2798
+ ];
2673
2799
  export var S3Content$ = [3, n0, _SC,
2674
2800
  0,
2675
2801
  [_sL],
@@ -3010,6 +3136,16 @@ export var UpdatePromptResponse$ = [3, n0, _UPRp,
3010
3136
  [_n, _id, _ar, _v, _cA, _uA, _d, _cEKA, _dV, _va],
3011
3137
  [0, 0, 0, 0, 5, 5, 0, 0, 0, [() => PromptVariantList, 0]], 6
3012
3138
  ];
3139
+ export var UpdateRetrievalInstructionRequest$ = [3, n0, _URIR,
3140
+ 0,
3141
+ [_rII, _i, _d],
3142
+ [[0, 1], [() => RetrievalInstructionContent$, 0], [() => RetrievalInstructionDescription, 0]], 2
3143
+ ];
3144
+ export var UpdateRetrievalInstructionResponse$ = [3, n0, _URIRp,
3145
+ 0,
3146
+ [_rII, _rIA, _n, _st, _lTS, _cA, _uA],
3147
+ [0, 0, [() => RetrievalInstructionName, 0], 0, 0, 5, 5], 7
3148
+ ];
3013
3149
  export var UrlConfiguration$ = [3, n0, _UC,
3014
3150
  0,
3015
3151
  [_sUe],
@@ -3257,6 +3393,16 @@ var RecommendedActions = 64 | 0;
3257
3393
  var RedshiftQueryEngineStorageConfigurations = [1, n0, _RQESCe,
3258
3394
  0, () => RedshiftQueryEngineStorageConfiguration$
3259
3395
  ];
3396
+ var RetrievalInstructionFailureReasons = [1, n0, _RIFRe,
3397
+ 0, () => RetrievalInstructionFailureReason$
3398
+ ];
3399
+ var RetrievalInstructionSummaries = [1, n0, _RISe,
3400
+ 0, [() => RetrievalInstructionSummary$,
3401
+ 0]
3402
+ ];
3403
+ var RetrievalInstructionVersionSummaries = [1, n0, _RIVSe,
3404
+ 0, () => RetrievalInstructionVersionSummary$
3405
+ ];
3260
3406
  var S3Prefixes = [1, n0, _SPr,
3261
3407
  0, [() => S3Prefix,
3262
3408
  0]
@@ -3441,6 +3587,12 @@ export var CreatePrompt$ = [9, n0, _CP,
3441
3587
  export var CreatePromptVersion$ = [9, n0, _CPV,
3442
3588
  { [_h]: ["POST", "/prompts/{promptIdentifier}/versions", 201] }, () => CreatePromptVersionRequest$, () => CreatePromptVersionResponse$
3443
3589
  ];
3590
+ export var CreateRetrievalInstruction$ = [9, n0, _CRI,
3591
+ { [_h]: ["POST", "/retrievalinstructions/", 202] }, () => CreateRetrievalInstructionRequest$, () => CreateRetrievalInstructionResponse$
3592
+ ];
3593
+ export var CreateRetrievalInstructionVersion$ = [9, n0, _CRIV,
3594
+ { [_h]: ["POST", "/retrievalinstructions/{retrievalInstructionId}/versions", 201] }, () => CreateRetrievalInstructionVersionRequest$, () => CreateRetrievalInstructionVersionResponse$
3595
+ ];
3444
3596
  export var CreateVpcConfiguration$ = [9, n0, _CVC,
3445
3597
  { [_h]: ["POST", "/knowledgebases/{knowledgeBaseId}/vpcconfigurations/", 202] }, () => CreateVpcConfigurationRequest$, () => CreateVpcConfigurationResponse$
3446
3598
  ];
@@ -3480,6 +3632,9 @@ export var DeletePrompt$ = [9, n0, _DP,
3480
3632
  export var DeleteResourcePolicy$ = [9, n0, _DRP,
3481
3633
  { [_h]: ["DELETE", "/resourcepolicy/{resourceArn}", 200] }, () => DeleteResourcePolicyRequest$, () => DeleteResourcePolicyResponse$
3482
3634
  ];
3635
+ export var DeleteRetrievalInstruction$ = [9, n0, _DRI,
3636
+ { [_h]: ["DELETE", "/retrievalinstructions/{retrievalInstructionId}", 200] }, () => DeleteRetrievalInstructionRequest$, () => DeleteRetrievalInstructionResponse$
3637
+ ];
3483
3638
  export var DeleteVpcConfiguration$ = [9, n0, _DVC,
3484
3639
  { [_h]: ["DELETE", "/knowledgebases/{knowledgeBaseId}/vpcconfigurations/{vpcConfigurationId}", 202] }, () => DeleteVpcConfigurationRequest$, () => DeleteVpcConfigurationResponse$
3485
3640
  ];
@@ -3534,6 +3689,9 @@ export var GetPrompt$ = [9, n0, _GP,
3534
3689
  export var GetResourcePolicy$ = [9, n0, _GRP,
3535
3690
  { [_h]: ["GET", "/resourcepolicy/{resourceArn}", 200] }, () => GetResourcePolicyRequest$, () => GetResourcePolicyResponse$
3536
3691
  ];
3692
+ export var GetRetrievalInstruction$ = [9, n0, _GRI,
3693
+ { [_h]: ["GET", "/retrievalinstructions/{retrievalInstructionId}", 200] }, () => GetRetrievalInstructionRequest$, () => GetRetrievalInstructionResponse$
3694
+ ];
3537
3695
  export var GetVpcConfiguration$ = [9, n0, _GVC,
3538
3696
  { [_h]: ["GET", "/knowledgebases/{knowledgeBaseId}/vpcconfigurations/{vpcConfigurationId}", 200] }, () => GetVpcConfigurationRequest$, () => GetVpcConfigurationResponse$
3539
3697
  ];
@@ -3582,6 +3740,12 @@ export var ListKnowledgeBases$ = [9, n0, _LKB,
3582
3740
  export var ListPrompts$ = [9, n0, _LP,
3583
3741
  { [_h]: ["GET", "/prompts/", 200] }, () => ListPromptsRequest$, () => ListPromptsResponse$
3584
3742
  ];
3743
+ export var ListRetrievalInstructions$ = [9, n0, _LRI,
3744
+ { [_h]: ["GET", "/retrievalinstructions/", 200] }, () => ListRetrievalInstructionsRequest$, () => ListRetrievalInstructionsResponse$
3745
+ ];
3746
+ export var ListRetrievalInstructionVersions$ = [9, n0, _LRIV,
3747
+ { [_h]: ["GET", "/retrievalinstructions/{retrievalInstructionId}/versions", 200] }, () => ListRetrievalInstructionVersionsRequest$, () => ListRetrievalInstructionVersionsResponse$
3748
+ ];
3585
3749
  export var ListTagsForResource$ = [9, n0, _LTFR,
3586
3750
  { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
3587
3751
  ];
@@ -3639,6 +3803,9 @@ export var UpdateKnowledgeBase$ = [9, n0, _UKB,
3639
3803
  export var UpdatePrompt$ = [9, n0, _UP,
3640
3804
  { [_h]: ["PUT", "/prompts/{promptIdentifier}/", 200] }, () => UpdatePromptRequest$, () => UpdatePromptResponse$
3641
3805
  ];
3806
+ export var UpdateRetrievalInstruction$ = [9, n0, _URI,
3807
+ { [_h]: ["PUT", "/retrievalinstructions/{retrievalInstructionId}", 202] }, () => UpdateRetrievalInstructionRequest$, () => UpdateRetrievalInstructionResponse$
3808
+ ];
3642
3809
  export var ValidateFlowDefinition$ = [9, n0, _VFD,
3643
3810
  { [_h]: ["POST", "/flows/validate-definition", 200] }, () => ValidateFlowDefinitionRequest$, () => ValidateFlowDefinitionResponse$
3644
3811
  ];