@aws-sdk/client-bedrock-agent-runtime 3.609.0 → 3.614.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 (35) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +672 -71
  3. package/dist-es/BedrockAgentRuntime.js +6 -0
  4. package/dist-es/commands/DeleteAgentMemoryCommand.js +24 -0
  5. package/dist-es/commands/GetAgentMemoryCommand.js +24 -0
  6. package/dist-es/commands/InvokeFlowCommand.js +29 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +221 -49
  9. package/dist-es/pagination/GetAgentMemoryPaginator.js +4 -0
  10. package/dist-es/pagination/index.js +1 -0
  11. package/dist-es/protocols/Aws_restJson1.js +311 -3
  12. package/dist-types/BedrockAgentRuntime.d.ts +21 -0
  13. package/dist-types/BedrockAgentRuntimeClient.d.ts +5 -2
  14. package/dist-types/commands/DeleteAgentMemoryCommand.d.ts +87 -0
  15. package/dist-types/commands/GetAgentMemoryCommand.d.ts +103 -0
  16. package/dist-types/commands/InvokeAgentCommand.d.ts +134 -4
  17. package/dist-types/commands/InvokeFlowCommand.d.ts +137 -0
  18. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +18 -1
  19. package/dist-types/commands/RetrieveCommand.d.ts +13 -1
  20. package/dist-types/commands/index.d.ts +3 -0
  21. package/dist-types/models/models_0.d.ts +1339 -299
  22. package/dist-types/pagination/GetAgentMemoryPaginator.d.ts +7 -0
  23. package/dist-types/pagination/index.d.ts +1 -0
  24. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  25. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +51 -0
  26. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +18 -0
  27. package/dist-types/ts3.4/commands/DeleteAgentMemoryCommand.d.ts +40 -0
  28. package/dist-types/ts3.4/commands/GetAgentMemoryCommand.d.ts +39 -0
  29. package/dist-types/ts3.4/commands/InvokeFlowCommand.d.ts +36 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +527 -54
  32. package/dist-types/ts3.4/pagination/GetAgentMemoryPaginator.d.ts +11 -0
  33. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  34. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  35. package/package.json +20 -20
@@ -1,8 +1,37 @@
1
1
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { BedrockAgentRuntimeServiceException as __BaseException } from "../models/BedrockAgentRuntimeServiceException";
5
- import { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, InternalServerException, ResourceNotFoundException, RetrievalFilter, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
+ import { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, FlowInputContent, InternalServerException, ResourceNotFoundException, RetrievalFilter, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
+ export const se_DeleteAgentMemoryCommand = async (input, context) => {
7
+ const b = rb(input, context);
8
+ const headers = {};
9
+ b.bp("/agents/{agentId}/agentAliases/{agentAliasId}/memories");
10
+ b.p("agentId", () => input.agentId, "{agentId}", false);
11
+ b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
12
+ const query = map({
13
+ [_mI]: [, input[_mI]],
14
+ });
15
+ let body;
16
+ b.m("DELETE").h(headers).q(query).b(body);
17
+ return b.build();
18
+ };
19
+ export const se_GetAgentMemoryCommand = async (input, context) => {
20
+ const b = rb(input, context);
21
+ const headers = {};
22
+ b.bp("/agents/{agentId}/agentAliases/{agentAliasId}/memories");
23
+ b.p("agentId", () => input.agentId, "{agentId}", false);
24
+ b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
25
+ const query = map({
26
+ [_nT]: [, input[_nT]],
27
+ [_mIa]: [() => input.maxItems !== void 0, () => input[_mIa].toString()],
28
+ [_mT]: [, __expectNonNull(input[_mT], `memoryType`)],
29
+ [_mI]: [, __expectNonNull(input[_mI], `memoryId`)],
30
+ });
31
+ let body;
32
+ b.m("GET").h(headers).q(query).b(body);
33
+ return b.build();
34
+ };
6
35
  export const se_InvokeAgentCommand = async (input, context) => {
7
36
  const b = rb(input, context);
8
37
  const headers = {
@@ -17,7 +46,23 @@ export const se_InvokeAgentCommand = async (input, context) => {
17
46
  enableTrace: [],
18
47
  endSession: [],
19
48
  inputText: [],
20
- sessionState: (_) => _json(_),
49
+ memoryId: [],
50
+ sessionState: (_) => se_SessionState(_, context),
51
+ }));
52
+ b.m("POST").h(headers).b(body);
53
+ return b.build();
54
+ };
55
+ export const se_InvokeFlowCommand = async (input, context) => {
56
+ const b = rb(input, context);
57
+ const headers = {
58
+ "content-type": "application/json",
59
+ };
60
+ b.bp("/flows/{flowIdentifier}/aliases/{flowAliasIdentifier}");
61
+ b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
62
+ b.p("flowAliasIdentifier", () => input.flowAliasIdentifier, "{flowAliasIdentifier}", false);
63
+ let body;
64
+ body = JSON.stringify(take(input, {
65
+ inputs: (_) => se_FlowInputs(_, context),
21
66
  }));
22
67
  b.m("POST").h(headers).b(body);
23
68
  return b.build();
@@ -54,6 +99,31 @@ export const se_RetrieveAndGenerateCommand = async (input, context) => {
54
99
  b.m("POST").h(headers).b(body);
55
100
  return b.build();
56
101
  };
102
+ export const de_DeleteAgentMemoryCommand = async (output, context) => {
103
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
104
+ return de_CommandError(output, context);
105
+ }
106
+ const contents = map({
107
+ $metadata: deserializeMetadata(output),
108
+ });
109
+ await collectBody(output.body, context);
110
+ return contents;
111
+ };
112
+ export const de_GetAgentMemoryCommand = async (output, context) => {
113
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
114
+ return de_CommandError(output, context);
115
+ }
116
+ const contents = map({
117
+ $metadata: deserializeMetadata(output),
118
+ });
119
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
120
+ const doc = take(data, {
121
+ memoryContents: (_) => de_Memories(_, context),
122
+ nextToken: __expectString,
123
+ });
124
+ Object.assign(contents, doc);
125
+ return contents;
126
+ };
57
127
  export const de_InvokeAgentCommand = async (output, context) => {
58
128
  if (output.statusCode !== 200 && output.statusCode >= 300) {
59
129
  return de_CommandError(output, context);
@@ -62,11 +132,23 @@ export const de_InvokeAgentCommand = async (output, context) => {
62
132
  $metadata: deserializeMetadata(output),
63
133
  [_cT]: [, output.headers[_xabact]],
64
134
  [_sI]: [, output.headers[_xabasi]],
135
+ [_mI]: [, output.headers[_xabami]],
65
136
  });
66
137
  const data = output.body;
67
138
  contents.completion = de_ResponseStream(data, context);
68
139
  return contents;
69
140
  };
141
+ export const de_InvokeFlowCommand = async (output, context) => {
142
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
143
+ return de_CommandError(output, context);
144
+ }
145
+ const contents = map({
146
+ $metadata: deserializeMetadata(output),
147
+ });
148
+ const data = output.body;
149
+ contents.responseStream = de_FlowResponseStream(data, context);
150
+ return contents;
151
+ };
70
152
  export const de_RetrieveCommand = async (output, context) => {
71
153
  if (output.statusCode !== 200 && output.statusCode >= 300) {
72
154
  return de_CommandError(output, context);
@@ -262,6 +344,66 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
262
344
  });
263
345
  return __decorateServiceException(exception, parsedOutput.body);
264
346
  };
347
+ const de_FlowResponseStream = (output, context) => {
348
+ return context.eventStreamMarshaller.deserialize(output, async (event) => {
349
+ if (event["flowOutputEvent"] != null) {
350
+ return {
351
+ flowOutputEvent: await de_FlowOutputEvent_event(event["flowOutputEvent"], context),
352
+ };
353
+ }
354
+ if (event["flowCompletionEvent"] != null) {
355
+ return {
356
+ flowCompletionEvent: await de_FlowCompletionEvent_event(event["flowCompletionEvent"], context),
357
+ };
358
+ }
359
+ if (event["internalServerException"] != null) {
360
+ return {
361
+ internalServerException: await de_InternalServerException_event(event["internalServerException"], context),
362
+ };
363
+ }
364
+ if (event["validationException"] != null) {
365
+ return {
366
+ validationException: await de_ValidationException_event(event["validationException"], context),
367
+ };
368
+ }
369
+ if (event["resourceNotFoundException"] != null) {
370
+ return {
371
+ resourceNotFoundException: await de_ResourceNotFoundException_event(event["resourceNotFoundException"], context),
372
+ };
373
+ }
374
+ if (event["serviceQuotaExceededException"] != null) {
375
+ return {
376
+ serviceQuotaExceededException: await de_ServiceQuotaExceededException_event(event["serviceQuotaExceededException"], context),
377
+ };
378
+ }
379
+ if (event["throttlingException"] != null) {
380
+ return {
381
+ throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
382
+ };
383
+ }
384
+ if (event["accessDeniedException"] != null) {
385
+ return {
386
+ accessDeniedException: await de_AccessDeniedException_event(event["accessDeniedException"], context),
387
+ };
388
+ }
389
+ if (event["conflictException"] != null) {
390
+ return {
391
+ conflictException: await de_ConflictException_event(event["conflictException"], context),
392
+ };
393
+ }
394
+ if (event["dependencyFailedException"] != null) {
395
+ return {
396
+ dependencyFailedException: await de_DependencyFailedException_event(event["dependencyFailedException"], context),
397
+ };
398
+ }
399
+ if (event["badGatewayException"] != null) {
400
+ return {
401
+ badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context),
402
+ };
403
+ }
404
+ return { $unknown: output };
405
+ });
406
+ };
265
407
  const de_ResponseStream = (output, context) => {
266
408
  return context.eventStreamMarshaller.deserialize(output, async (event) => {
267
409
  if (event["chunk"] != null) {
@@ -324,6 +466,11 @@ const de_ResponseStream = (output, context) => {
324
466
  badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context),
325
467
  };
326
468
  }
469
+ if (event["files"] != null) {
470
+ return {
471
+ files: await de_FilePart_event(event["files"], context),
472
+ };
473
+ }
327
474
  return { $unknown: output };
328
475
  });
329
476
  };
@@ -355,6 +502,24 @@ const de_DependencyFailedException_event = async (output, context) => {
355
502
  };
356
503
  return de_DependencyFailedExceptionRes(parsedOutput, context);
357
504
  };
505
+ const de_FilePart_event = async (output, context) => {
506
+ const contents = {};
507
+ const data = await parseBody(output.body, context);
508
+ Object.assign(contents, de_FilePart(data, context));
509
+ return contents;
510
+ };
511
+ const de_FlowCompletionEvent_event = async (output, context) => {
512
+ const contents = {};
513
+ const data = await parseBody(output.body, context);
514
+ Object.assign(contents, _json(data));
515
+ return contents;
516
+ };
517
+ const de_FlowOutputEvent_event = async (output, context) => {
518
+ const contents = {};
519
+ const data = await parseBody(output.body, context);
520
+ Object.assign(contents, de_FlowOutputEvent(data, context));
521
+ return contents;
522
+ };
358
523
  const de_InternalServerException_event = async (output, context) => {
359
524
  const parsedOutput = {
360
525
  ...output,
@@ -427,6 +592,12 @@ const se_ByteContentDoc = (input, context) => {
427
592
  identifier: [],
428
593
  });
429
594
  };
595
+ const se_ByteContentFile = (input, context) => {
596
+ return take(input, {
597
+ data: context.base64Encoder,
598
+ mediaType: [],
599
+ });
600
+ };
430
601
  const se_ExternalSource = (input, context) => {
431
602
  return take(input, {
432
603
  byteContent: (_) => se_ByteContentDoc(_, context),
@@ -456,6 +627,13 @@ const se_ExternalSourcesRetrieveAndGenerateConfiguration = (input, context) => {
456
627
  sources: (_) => se_ExternalSources(_, context),
457
628
  });
458
629
  };
630
+ const se_FileSource = (input, context) => {
631
+ return take(input, {
632
+ byteContent: (_) => se_ByteContentFile(_, context),
633
+ s3Location: _json,
634
+ sourceType: [],
635
+ });
636
+ };
459
637
  const se_FilterAttribute = (input, context) => {
460
638
  return take(input, {
461
639
  key: [],
@@ -465,6 +643,26 @@ const se_FilterAttribute = (input, context) => {
465
643
  const se_FilterValue = (input, context) => {
466
644
  return input;
467
645
  };
646
+ const se_FlowInput = (input, context) => {
647
+ return take(input, {
648
+ content: (_) => se_FlowInputContent(_, context),
649
+ nodeName: [],
650
+ nodeOutputName: [],
651
+ });
652
+ };
653
+ const se_FlowInputContent = (input, context) => {
654
+ return FlowInputContent.visit(input, {
655
+ document: (value) => ({ document: se_Document(value, context) }),
656
+ _: (name, value) => ({ name: value }),
657
+ });
658
+ };
659
+ const se_FlowInputs = (input, context) => {
660
+ return input
661
+ .filter((e) => e != null)
662
+ .map((entry) => {
663
+ return se_FlowInput(entry, context);
664
+ });
665
+ };
468
666
  const se_GenerationConfiguration = (input, context) => {
469
667
  return take(input, {
470
668
  additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
@@ -478,6 +676,33 @@ const se_InferenceConfig = (input, context) => {
478
676
  textInferenceConfig: (_) => se_TextInferenceConfig(_, context),
479
677
  });
480
678
  };
679
+ const se_InputFile = (input, context) => {
680
+ return take(input, {
681
+ name: [],
682
+ source: (_) => se_FileSource(_, context),
683
+ useCase: [],
684
+ });
685
+ };
686
+ const se_InputFiles = (input, context) => {
687
+ return input
688
+ .filter((e) => e != null)
689
+ .map((entry) => {
690
+ return se_InputFile(entry, context);
691
+ });
692
+ };
693
+ const se_KnowledgeBaseConfiguration = (input, context) => {
694
+ return take(input, {
695
+ knowledgeBaseId: [],
696
+ retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context),
697
+ });
698
+ };
699
+ const se_KnowledgeBaseConfigurations = (input, context) => {
700
+ return input
701
+ .filter((e) => e != null)
702
+ .map((entry) => {
703
+ return se_KnowledgeBaseConfiguration(entry, context);
704
+ });
705
+ };
481
706
  const se_KnowledgeBaseRetrievalConfiguration = (input, context) => {
482
707
  return take(input, {
483
708
  vectorSearchConfiguration: (_) => se_KnowledgeBaseVectorSearchConfiguration(_, context),
@@ -488,6 +713,7 @@ const se_KnowledgeBaseRetrieveAndGenerateConfiguration = (input, context) => {
488
713
  generationConfiguration: (_) => se_GenerationConfiguration(_, context),
489
714
  knowledgeBaseId: [],
490
715
  modelArn: [],
716
+ orchestrationConfiguration: _json,
491
717
  retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context),
492
718
  });
493
719
  };
@@ -530,6 +756,16 @@ const se_RetrieveAndGenerateConfiguration = (input, context) => {
530
756
  type: [],
531
757
  });
532
758
  };
759
+ const se_SessionState = (input, context) => {
760
+ return take(input, {
761
+ files: (_) => se_InputFiles(_, context),
762
+ invocationId: [],
763
+ knowledgeBaseConfigurations: (_) => se_KnowledgeBaseConfigurations(_, context),
764
+ promptSessionAttributes: _json,
765
+ returnControlInvocationResults: _json,
766
+ sessionAttributes: _json,
767
+ });
768
+ };
533
769
  const se_TextInferenceConfig = (input, context) => {
534
770
  return take(input, {
535
771
  maxTokens: [],
@@ -538,6 +774,9 @@ const se_TextInferenceConfig = (input, context) => {
538
774
  topP: __serializeFloat,
539
775
  });
540
776
  };
777
+ const se_Document = (input, context) => {
778
+ return input;
779
+ };
541
780
  const de_Attribution = (output, context) => {
542
781
  return take(output, {
543
782
  citations: (_) => de_Citations(_, context),
@@ -557,6 +796,26 @@ const de_Citations = (output, context) => {
557
796
  });
558
797
  return retVal;
559
798
  };
799
+ const de_FilePart = (output, context) => {
800
+ return take(output, {
801
+ files: (_) => de_OutputFiles(_, context),
802
+ });
803
+ };
804
+ const de_FlowOutputContent = (output, context) => {
805
+ if (output.document != null) {
806
+ return {
807
+ document: de_Document(output.document, context),
808
+ };
809
+ }
810
+ return { $unknown: Object.entries(output)[0] };
811
+ };
812
+ const de_FlowOutputEvent = (output, context) => {
813
+ return take(output, {
814
+ content: (_) => de_FlowOutputContent(__expectUnion(_), context),
815
+ nodeName: __expectString,
816
+ nodeType: __expectString,
817
+ });
818
+ };
560
819
  const de_InferenceConfiguration = (output, context) => {
561
820
  return take(output, {
562
821
  maximumLength: __expectInt32,
@@ -587,6 +846,31 @@ const de_KnowledgeBaseRetrievalResults = (output, context) => {
587
846
  });
588
847
  return retVal;
589
848
  };
849
+ const de_Memories = (output, context) => {
850
+ const retVal = (output || [])
851
+ .filter((e) => e != null)
852
+ .map((entry) => {
853
+ return de_Memory(__expectUnion(entry), context);
854
+ });
855
+ return retVal;
856
+ };
857
+ const de_Memory = (output, context) => {
858
+ if (output.sessionSummary != null) {
859
+ return {
860
+ sessionSummary: de_MemorySessionSummary(output.sessionSummary, context),
861
+ };
862
+ }
863
+ return { $unknown: Object.entries(output)[0] };
864
+ };
865
+ const de_MemorySessionSummary = (output, context) => {
866
+ return take(output, {
867
+ memoryId: __expectString,
868
+ sessionExpiryTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
869
+ sessionId: __expectString,
870
+ sessionStartTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
871
+ summaryText: __expectString,
872
+ });
873
+ };
590
874
  const de_ModelInvocationInput = (output, context) => {
591
875
  return take(output, {
592
876
  inferenceConfiguration: (_) => de_InferenceConfiguration(_, context),
@@ -601,6 +885,7 @@ const de_ModelInvocationInput = (output, context) => {
601
885
  const de_Observation = (output, context) => {
602
886
  return take(output, {
603
887
  actionGroupInvocationOutput: _json,
888
+ codeInterpreterInvocationOutput: _json,
604
889
  finalResponse: _json,
605
890
  knowledgeBaseLookupOutput: (_) => de_KnowledgeBaseLookupOutput(_, context),
606
891
  repromptResponse: _json,
@@ -631,6 +916,21 @@ const de_OrchestrationTrace = (output, context) => {
631
916
  }
632
917
  return { $unknown: Object.entries(output)[0] };
633
918
  };
919
+ const de_OutputFile = (output, context) => {
920
+ return take(output, {
921
+ bytes: context.base64Decoder,
922
+ name: __expectString,
923
+ type: __expectString,
924
+ });
925
+ };
926
+ const de_OutputFiles = (output, context) => {
927
+ const retVal = (output || [])
928
+ .filter((e) => e != null)
929
+ .map((entry) => {
930
+ return de_OutputFile(entry, context);
931
+ });
932
+ return retVal;
933
+ };
634
934
  const de_PayloadPart = (output, context) => {
635
935
  return take(output, {
636
936
  attribution: (_) => de_Attribution(_, context),
@@ -727,6 +1027,9 @@ const de_TracePart = (output, context) => {
727
1027
  trace: (_) => de_Trace(__expectUnion(_), context),
728
1028
  });
729
1029
  };
1030
+ const de_Document = (output, context) => {
1031
+ return output;
1032
+ };
730
1033
  const deserializeMetadata = (output) => ({
731
1034
  httpStatusCode: output.statusCode,
732
1035
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -740,6 +1043,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
740
1043
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
741
1044
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
742
1045
  const _cT = "contentType";
1046
+ const _mI = "memoryId";
1047
+ const _mIa = "maxItems";
1048
+ const _mT = "memoryType";
1049
+ const _nT = "nextToken";
743
1050
  const _sI = "sessionId";
744
1051
  const _xabact = "x-amzn-bedrock-agent-content-type";
1052
+ const _xabami = "x-amz-bedrock-agent-memory-id";
745
1053
  const _xabasi = "x-amz-bedrock-agent-session-id";
@@ -1,15 +1,36 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { BedrockAgentRuntimeClient } from "./BedrockAgentRuntimeClient";
3
+ import { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from "./commands/DeleteAgentMemoryCommand";
4
+ import { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "./commands/GetAgentMemoryCommand";
3
5
  import { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "./commands/InvokeAgentCommand";
6
+ import { InvokeFlowCommandInput, InvokeFlowCommandOutput } from "./commands/InvokeFlowCommand";
4
7
  import { RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput } from "./commands/RetrieveAndGenerateCommand";
5
8
  import { RetrieveCommandInput, RetrieveCommandOutput } from "./commands/RetrieveCommand";
6
9
  export interface BedrockAgentRuntime {
10
+ /**
11
+ * @see {@link DeleteAgentMemoryCommand}
12
+ */
13
+ deleteAgentMemory(args: DeleteAgentMemoryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAgentMemoryCommandOutput>;
14
+ deleteAgentMemory(args: DeleteAgentMemoryCommandInput, cb: (err: any, data?: DeleteAgentMemoryCommandOutput) => void): void;
15
+ deleteAgentMemory(args: DeleteAgentMemoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAgentMemoryCommandOutput) => void): void;
16
+ /**
17
+ * @see {@link GetAgentMemoryCommand}
18
+ */
19
+ getAgentMemory(args: GetAgentMemoryCommandInput, options?: __HttpHandlerOptions): Promise<GetAgentMemoryCommandOutput>;
20
+ getAgentMemory(args: GetAgentMemoryCommandInput, cb: (err: any, data?: GetAgentMemoryCommandOutput) => void): void;
21
+ getAgentMemory(args: GetAgentMemoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAgentMemoryCommandOutput) => void): void;
7
22
  /**
8
23
  * @see {@link InvokeAgentCommand}
9
24
  */
10
25
  invokeAgent(args: InvokeAgentCommandInput, options?: __HttpHandlerOptions): Promise<InvokeAgentCommandOutput>;
11
26
  invokeAgent(args: InvokeAgentCommandInput, cb: (err: any, data?: InvokeAgentCommandOutput) => void): void;
12
27
  invokeAgent(args: InvokeAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeAgentCommandOutput) => void): void;
28
+ /**
29
+ * @see {@link InvokeFlowCommand}
30
+ */
31
+ invokeFlow(args: InvokeFlowCommandInput, options?: __HttpHandlerOptions): Promise<InvokeFlowCommandOutput>;
32
+ invokeFlow(args: InvokeFlowCommandInput, cb: (err: any, data?: InvokeFlowCommandOutput) => void): void;
33
+ invokeFlow(args: InvokeFlowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeFlowCommandOutput) => void): void;
13
34
  /**
14
35
  * @see {@link RetrieveCommand}
15
36
  */
@@ -8,7 +8,10 @@ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol
8
8
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
9
9
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, 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";
10
10
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
11
+ import { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from "./commands/DeleteAgentMemoryCommand";
12
+ import { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "./commands/GetAgentMemoryCommand";
11
13
  import { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "./commands/InvokeAgentCommand";
14
+ import { InvokeFlowCommandInput, InvokeFlowCommandOutput } from "./commands/InvokeFlowCommand";
12
15
  import { RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput } from "./commands/RetrieveAndGenerateCommand";
13
16
  import { RetrieveCommandInput, RetrieveCommandOutput } from "./commands/RetrieveCommand";
14
17
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
@@ -17,11 +20,11 @@ export { __Client };
17
20
  /**
18
21
  * @public
19
22
  */
20
- export type ServiceInputTypes = InvokeAgentCommandInput | RetrieveAndGenerateCommandInput | RetrieveCommandInput;
23
+ export type ServiceInputTypes = DeleteAgentMemoryCommandInput | GetAgentMemoryCommandInput | InvokeAgentCommandInput | InvokeFlowCommandInput | RetrieveAndGenerateCommandInput | RetrieveCommandInput;
21
24
  /**
22
25
  * @public
23
26
  */
24
- export type ServiceOutputTypes = InvokeAgentCommandOutput | RetrieveAndGenerateCommandOutput | RetrieveCommandOutput;
27
+ export type ServiceOutputTypes = DeleteAgentMemoryCommandOutput | GetAgentMemoryCommandOutput | InvokeAgentCommandOutput | InvokeFlowCommandOutput | RetrieveAndGenerateCommandOutput | RetrieveCommandOutput;
25
28
  /**
26
29
  * @public
27
30
  */
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
+ import { DeleteAgentMemoryRequest, DeleteAgentMemoryResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteAgentMemoryCommand}.
14
+ */
15
+ export interface DeleteAgentMemoryCommandInput extends DeleteAgentMemoryRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteAgentMemoryCommand}.
21
+ */
22
+ export interface DeleteAgentMemoryCommandOutput extends DeleteAgentMemoryResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteAgentMemoryCommand_base: {
25
+ new (input: DeleteAgentMemoryCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteAgentMemoryCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes memory from the specified memory identifier.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BedrockAgentRuntimeClient, DeleteAgentMemoryCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
35
+ * // const { BedrockAgentRuntimeClient, DeleteAgentMemoryCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
36
+ * const client = new BedrockAgentRuntimeClient(config);
37
+ * const input = { // DeleteAgentMemoryRequest
38
+ * agentId: "STRING_VALUE", // required
39
+ * agentAliasId: "STRING_VALUE", // required
40
+ * memoryId: "STRING_VALUE",
41
+ * };
42
+ * const command = new DeleteAgentMemoryCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteAgentMemoryCommandInput - {@link DeleteAgentMemoryCommandInput}
49
+ * @returns {@link DeleteAgentMemoryCommandOutput}
50
+ * @see {@link DeleteAgentMemoryCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteAgentMemoryCommandOutput} for command's `response` shape.
52
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
56
+ *
57
+ * @throws {@link BadGatewayException} (server fault)
58
+ * <p>There was an issue with a dependency due to a server issue. Retry your request.</p>
59
+ *
60
+ * @throws {@link ConflictException} (client fault)
61
+ * <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
62
+ *
63
+ * @throws {@link DependencyFailedException} (client fault)
64
+ * <p>There was an issue with a dependency. Check the resource configurations and retry the request.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>An internal server error occurred. Retry your request.</p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
71
+ *
72
+ * @throws {@link ServiceQuotaExceededException} (client fault)
73
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
74
+ *
75
+ * @throws {@link ThrottlingException} (client fault)
76
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
80
+ *
81
+ * @throws {@link BedrockAgentRuntimeServiceException}
82
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
83
+ *
84
+ * @public
85
+ */
86
+ export declare class DeleteAgentMemoryCommand extends DeleteAgentMemoryCommand_base {
87
+ }