@aws-sdk/client-bedrock-agent-runtime 3.1077.0 → 3.1078.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 (107) hide show
  1. package/dist-cjs/index.js +41 -357
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AgenticRetrieveStreamCommand.js +2 -18
  4. package/dist-es/commands/CreateInvocationCommand.js +2 -14
  5. package/dist-es/commands/CreateSessionCommand.js +2 -14
  6. package/dist-es/commands/DeleteAgentMemoryCommand.js +2 -14
  7. package/dist-es/commands/DeleteSessionCommand.js +2 -14
  8. package/dist-es/commands/EndSessionCommand.js +2 -14
  9. package/dist-es/commands/GenerateQueryCommand.js +2 -14
  10. package/dist-es/commands/GetAgentMemoryCommand.js +2 -14
  11. package/dist-es/commands/GetDocumentContentCommand.js +2 -14
  12. package/dist-es/commands/GetExecutionFlowSnapshotCommand.js +2 -14
  13. package/dist-es/commands/GetFlowExecutionCommand.js +2 -14
  14. package/dist-es/commands/GetInvocationStepCommand.js +2 -14
  15. package/dist-es/commands/GetSessionCommand.js +2 -14
  16. package/dist-es/commands/InvokeAgentCommand.js +2 -18
  17. package/dist-es/commands/InvokeFlowCommand.js +2 -18
  18. package/dist-es/commands/InvokeInlineAgentCommand.js +2 -18
  19. package/dist-es/commands/ListFlowExecutionEventsCommand.js +2 -14
  20. package/dist-es/commands/ListFlowExecutionsCommand.js +2 -14
  21. package/dist-es/commands/ListInvocationStepsCommand.js +2 -14
  22. package/dist-es/commands/ListInvocationsCommand.js +2 -14
  23. package/dist-es/commands/ListSessionsCommand.js +2 -14
  24. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  25. package/dist-es/commands/OptimizePromptCommand.js +2 -18
  26. package/dist-es/commands/PutInvocationStepCommand.js +2 -14
  27. package/dist-es/commands/RerankCommand.js +2 -14
  28. package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -14
  29. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -18
  30. package/dist-es/commands/RetrieveCommand.js +2 -14
  31. package/dist-es/commands/StartFlowExecutionCommand.js +2 -14
  32. package/dist-es/commands/StopFlowExecutionCommand.js +2 -14
  33. package/dist-es/commands/TagResourceCommand.js +2 -14
  34. package/dist-es/commands/UntagResourceCommand.js +2 -14
  35. package/dist-es/commands/UpdateSessionCommand.js +2 -14
  36. package/dist-es/index.js +1 -0
  37. package/dist-types/commandBuilder.d.ts +18 -0
  38. package/dist-types/commands/AgenticRetrieveStreamCommand.d.ts +3 -8
  39. package/dist-types/commands/CreateInvocationCommand.d.ts +3 -8
  40. package/dist-types/commands/CreateSessionCommand.d.ts +3 -8
  41. package/dist-types/commands/DeleteAgentMemoryCommand.d.ts +3 -8
  42. package/dist-types/commands/DeleteSessionCommand.d.ts +3 -8
  43. package/dist-types/commands/EndSessionCommand.d.ts +3 -8
  44. package/dist-types/commands/GenerateQueryCommand.d.ts +3 -8
  45. package/dist-types/commands/GetAgentMemoryCommand.d.ts +3 -8
  46. package/dist-types/commands/GetDocumentContentCommand.d.ts +3 -8
  47. package/dist-types/commands/GetExecutionFlowSnapshotCommand.d.ts +3 -8
  48. package/dist-types/commands/GetFlowExecutionCommand.d.ts +3 -8
  49. package/dist-types/commands/GetInvocationStepCommand.d.ts +3 -8
  50. package/dist-types/commands/GetSessionCommand.d.ts +3 -8
  51. package/dist-types/commands/InvokeAgentCommand.d.ts +3 -8
  52. package/dist-types/commands/InvokeFlowCommand.d.ts +3 -8
  53. package/dist-types/commands/InvokeInlineAgentCommand.d.ts +3 -8
  54. package/dist-types/commands/ListFlowExecutionEventsCommand.d.ts +3 -8
  55. package/dist-types/commands/ListFlowExecutionsCommand.d.ts +3 -8
  56. package/dist-types/commands/ListInvocationStepsCommand.d.ts +3 -8
  57. package/dist-types/commands/ListInvocationsCommand.d.ts +3 -8
  58. package/dist-types/commands/ListSessionsCommand.d.ts +3 -8
  59. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  60. package/dist-types/commands/OptimizePromptCommand.d.ts +3 -8
  61. package/dist-types/commands/PutInvocationStepCommand.d.ts +3 -8
  62. package/dist-types/commands/RerankCommand.d.ts +3 -8
  63. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +3 -8
  64. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +3 -8
  65. package/dist-types/commands/RetrieveCommand.d.ts +3 -8
  66. package/dist-types/commands/StartFlowExecutionCommand.d.ts +3 -8
  67. package/dist-types/commands/StopFlowExecutionCommand.d.ts +3 -8
  68. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  69. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  70. package/dist-types/commands/UpdateSessionCommand.d.ts +3 -8
  71. package/dist-types/index.d.ts +1 -0
  72. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  73. package/dist-types/ts3.4/commands/AgenticRetrieveStreamCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/DeleteAgentMemoryCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/GenerateQueryCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/GetAgentMemoryCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/GetDocumentContentCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/GetExecutionFlowSnapshotCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/GetFlowExecutionCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +7 -16
  85. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/InvokeFlowCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/ListFlowExecutionEventsCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/ListFlowExecutionsCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/OptimizePromptCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/RerankCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/StartFlowExecutionCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/StopFlowExecutionCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +7 -16
  106. package/dist-types/ts3.4/index.d.ts +1 -0
  107. package/package.json +8 -8
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetDocumentContent$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDocumentContentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "GetDocumentContent", {})
13
- .n("BedrockAgentRuntimeClient", "GetDocumentContentCommand")
14
- .sc(GetDocumentContent$)
15
- .build() {
3
+ export class GetDocumentContentCommand extends command(_ep0, _mw0, "GetDocumentContent", GetDocumentContent$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetExecutionFlowSnapshot$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetExecutionFlowSnapshotCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "GetExecutionFlowSnapshot", {})
13
- .n("BedrockAgentRuntimeClient", "GetExecutionFlowSnapshotCommand")
14
- .sc(GetExecutionFlowSnapshot$)
15
- .build() {
3
+ export class GetExecutionFlowSnapshotCommand extends command(_ep0, _mw0, "GetExecutionFlowSnapshot", GetExecutionFlowSnapshot$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetFlowExecution$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetFlowExecutionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "GetFlowExecution", {})
13
- .n("BedrockAgentRuntimeClient", "GetFlowExecutionCommand")
14
- .sc(GetFlowExecution$)
15
- .build() {
3
+ export class GetFlowExecutionCommand extends command(_ep0, _mw0, "GetFlowExecution", GetFlowExecution$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetInvocationStep$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetInvocationStepCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "GetInvocationStep", {})
13
- .n("BedrockAgentRuntimeClient", "GetInvocationStepCommand")
14
- .sc(GetInvocationStep$)
15
- .build() {
3
+ export class GetInvocationStepCommand extends command(_ep0, _mw0, "GetInvocationStep", GetInvocationStep$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetSession$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSessionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "GetSession", {})
13
- .n("BedrockAgentRuntimeClient", "GetSessionCommand")
14
- .sc(GetSession$)
15
- .build() {
3
+ export class GetSessionCommand extends command(_ep0, _mw0, "GetSession", GetSession$) {
16
4
  }
@@ -1,20 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { InvokeAgent$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class InvokeAgentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "InvokeAgent", {
13
- eventStream: {
14
- output: true,
15
- },
16
- })
17
- .n("BedrockAgentRuntimeClient", "InvokeAgentCommand")
18
- .sc(InvokeAgent$)
19
- .build() {
3
+ export class InvokeAgentCommand extends command(_ep0, _mw0, "InvokeAgent", InvokeAgent$) {
20
4
  }
@@ -1,20 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { InvokeFlow$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class InvokeFlowCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "InvokeFlow", {
13
- eventStream: {
14
- output: true,
15
- },
16
- })
17
- .n("BedrockAgentRuntimeClient", "InvokeFlowCommand")
18
- .sc(InvokeFlow$)
19
- .build() {
3
+ export class InvokeFlowCommand extends command(_ep0, _mw0, "InvokeFlow", InvokeFlow$) {
20
4
  }
@@ -1,20 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { InvokeInlineAgent$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class InvokeInlineAgentCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "InvokeInlineAgent", {
13
- eventStream: {
14
- output: true,
15
- },
16
- })
17
- .n("BedrockAgentRuntimeClient", "InvokeInlineAgentCommand")
18
- .sc(InvokeInlineAgent$)
19
- .build() {
3
+ export class InvokeInlineAgentCommand extends command(_ep0, _mw0, "InvokeInlineAgent", InvokeInlineAgent$) {
20
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListFlowExecutionEvents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListFlowExecutionEventsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "ListFlowExecutionEvents", {})
13
- .n("BedrockAgentRuntimeClient", "ListFlowExecutionEventsCommand")
14
- .sc(ListFlowExecutionEvents$)
15
- .build() {
3
+ export class ListFlowExecutionEventsCommand extends command(_ep0, _mw0, "ListFlowExecutionEvents", ListFlowExecutionEvents$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListFlowExecutions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListFlowExecutionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "ListFlowExecutions", {})
13
- .n("BedrockAgentRuntimeClient", "ListFlowExecutionsCommand")
14
- .sc(ListFlowExecutions$)
15
- .build() {
3
+ export class ListFlowExecutionsCommand extends command(_ep0, _mw0, "ListFlowExecutions", ListFlowExecutions$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListInvocationSteps$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListInvocationStepsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "ListInvocationSteps", {})
13
- .n("BedrockAgentRuntimeClient", "ListInvocationStepsCommand")
14
- .sc(ListInvocationSteps$)
15
- .build() {
3
+ export class ListInvocationStepsCommand extends command(_ep0, _mw0, "ListInvocationSteps", ListInvocationSteps$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListInvocations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListInvocationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "ListInvocations", {})
13
- .n("BedrockAgentRuntimeClient", "ListInvocationsCommand")
14
- .sc(ListInvocations$)
15
- .build() {
3
+ export class ListInvocationsCommand extends command(_ep0, _mw0, "ListInvocations", ListInvocations$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListSessions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSessionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "ListSessions", {})
13
- .n("BedrockAgentRuntimeClient", "ListSessionsCommand")
14
- .sc(ListSessions$)
15
- .build() {
3
+ export class ListSessionsCommand extends command(_ep0, _mw0, "ListSessions", ListSessions$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "ListTagsForResource", {})
13
- .n("BedrockAgentRuntimeClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,20 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { OptimizePrompt$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class OptimizePromptCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "OptimizePrompt", {
13
- eventStream: {
14
- output: true,
15
- },
16
- })
17
- .n("BedrockAgentRuntimeClient", "OptimizePromptCommand")
18
- .sc(OptimizePrompt$)
19
- .build() {
3
+ export class OptimizePromptCommand extends command(_ep0, _mw0, "OptimizePrompt", OptimizePrompt$) {
20
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutInvocationStep$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutInvocationStepCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "PutInvocationStep", {})
13
- .n("BedrockAgentRuntimeClient", "PutInvocationStepCommand")
14
- .sc(PutInvocationStep$)
15
- .build() {
3
+ export class PutInvocationStepCommand extends command(_ep0, _mw0, "PutInvocationStep", PutInvocationStep$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { Rerank$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RerankCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "Rerank", {})
13
- .n("BedrockAgentRuntimeClient", "RerankCommand")
14
- .sc(Rerank$)
15
- .build() {
3
+ export class RerankCommand extends command(_ep0, _mw0, "Rerank", Rerank$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RetrieveAndGenerate$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RetrieveAndGenerateCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerate", {})
13
- .n("BedrockAgentRuntimeClient", "RetrieveAndGenerateCommand")
14
- .sc(RetrieveAndGenerate$)
15
- .build() {
3
+ export class RetrieveAndGenerateCommand extends command(_ep0, _mw0, "RetrieveAndGenerate", RetrieveAndGenerate$) {
16
4
  }
@@ -1,20 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RetrieveAndGenerateStream$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RetrieveAndGenerateStreamCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "RetrieveAndGenerateStream", {
13
- eventStream: {
14
- output: true,
15
- },
16
- })
17
- .n("BedrockAgentRuntimeClient", "RetrieveAndGenerateStreamCommand")
18
- .sc(RetrieveAndGenerateStream$)
19
- .build() {
3
+ export class RetrieveAndGenerateStreamCommand extends command(_ep0, _mw0, "RetrieveAndGenerateStream", RetrieveAndGenerateStream$) {
20
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { Retrieve$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RetrieveCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "Retrieve", {})
13
- .n("BedrockAgentRuntimeClient", "RetrieveCommand")
14
- .sc(Retrieve$)
15
- .build() {
3
+ export class RetrieveCommand extends command(_ep0, _mw0, "Retrieve", Retrieve$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { StartFlowExecution$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartFlowExecutionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "StartFlowExecution", {})
13
- .n("BedrockAgentRuntimeClient", "StartFlowExecutionCommand")
14
- .sc(StartFlowExecution$)
15
- .build() {
3
+ export class StartFlowExecutionCommand extends command(_ep0, _mw0, "StartFlowExecution", StartFlowExecution$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { StopFlowExecution$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StopFlowExecutionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "StopFlowExecution", {})
13
- .n("BedrockAgentRuntimeClient", "StopFlowExecutionCommand")
14
- .sc(StopFlowExecution$)
15
- .build() {
3
+ export class StopFlowExecutionCommand extends command(_ep0, _mw0, "StopFlowExecution", StopFlowExecution$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "TagResource", {})
13
- .n("BedrockAgentRuntimeClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "UntagResource", {})
13
- .n("BedrockAgentRuntimeClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateSession$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateSessionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonBedrockAgentRunTimeService", "UpdateSession", {})
13
- .n("BedrockAgentRuntimeClient", "UpdateSessionCommand")
14
- .sc(UpdateSession$)
15
- .build() {
3
+ export class UpdateSessionCommand extends command(_ep0, _mw0, "UpdateSession", UpdateSession$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./BedrockAgentRuntimeClient";
2
2
  export * from "./BedrockAgentRuntime";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./BedrockAgentRuntimeClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,13 +1,10 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
2
  import type { AgenticRetrieveStreamResponse } from "../models/models_0";
5
3
  import type { AgenticRetrieveStreamRequest } from "../models/models_1";
6
4
  /**
7
5
  * @public
8
6
  */
9
7
  export type { __MetadataBearer };
10
- export { $Command };
11
8
  /**
12
9
  * @public
13
10
  *
@@ -23,11 +20,9 @@ export interface AgenticRetrieveStreamCommandInput extends AgenticRetrieveStream
23
20
  export interface AgenticRetrieveStreamCommandOutput extends AgenticRetrieveStreamResponse, __MetadataBearer {
24
21
  }
25
22
  declare const AgenticRetrieveStreamCommand_base: {
26
- new (input: AgenticRetrieveStreamCommandInput): import("@smithy/core/client").CommandImpl<AgenticRetrieveStreamCommandInput, AgenticRetrieveStreamCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- new (input: AgenticRetrieveStreamCommandInput): import("@smithy/core/client").CommandImpl<AgenticRetrieveStreamCommandInput, AgenticRetrieveStreamCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
28
- getEndpointParameterInstructions(): {
29
- [x: string]: unknown;
30
- };
23
+ new (input: AgenticRetrieveStreamCommandInput): import("@smithy/core/client").CommandImpl<AgenticRetrieveStreamCommandInput, AgenticRetrieveStreamCommandOutput, import("..").BedrockAgentRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ new (input: AgenticRetrieveStreamCommandInput): import("@smithy/core/client").CommandImpl<AgenticRetrieveStreamCommandInput, AgenticRetrieveStreamCommandOutput, import("..").BedrockAgentRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
31
26
  };
32
27
  /**
33
28
  * <p>Retrieves information from one or more knowledge bases using an agentic approach. Agentic retrieval uses a foundation model to intelligently decompose complex queries into sub-queries and iteratively retrieve relevant information from your knowledge bases. This approach improves retrieval accuracy for complex, multi-step questions that a single retrieval pass might not fully address.</p> <p>The operation returns results through a stream that includes retrieval results, trace events for visibility into the process, and a generated response synthesized from the results by default, which can be turned off.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
2
  import type { CreateInvocationRequest, CreateInvocationResponse } from "../models/models_0";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateInvocationCommandInput extends CreateInvocationRequest {
22
19
  export interface CreateInvocationCommandOutput extends CreateInvocationResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateInvocationCommand_base: {
25
- new (input: CreateInvocationCommandInput): import("@smithy/core/client").CommandImpl<CreateInvocationCommandInput, CreateInvocationCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateInvocationCommandInput): import("@smithy/core/client").CommandImpl<CreateInvocationCommandInput, CreateInvocationCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateInvocationCommandInput): import("@smithy/core/client").CommandImpl<CreateInvocationCommandInput, CreateInvocationCommandOutput, import("..").BedrockAgentRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateInvocationCommandInput): import("@smithy/core/client").CommandImpl<CreateInvocationCommandInput, CreateInvocationCommandOutput, import("..").BedrockAgentRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a new invocation within a session. An invocation groups the related invocation steps that store the content from a conversation. For more information about sessions, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/sessions.html">Store and retrieve conversation history and context with Amazon Bedrock sessions</a>.</p> <p>Related APIs</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html">ListInvocations</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListSessions.html">ListSessions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetSession.html">GetSession</a> </p> </li> </ul>