@aws-sdk/client-bedrock-agent-runtime 3.755.0 → 3.758.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 (92) hide show
  1. package/README.md +119 -7
  2. package/dist-cjs/index.js +941 -56
  3. package/dist-es/BedrockAgentRuntime.js +28 -0
  4. package/dist-es/commands/CreateInvocationCommand.js +22 -0
  5. package/dist-es/commands/CreateSessionCommand.js +22 -0
  6. package/dist-es/commands/DeleteSessionCommand.js +22 -0
  7. package/dist-es/commands/EndSessionCommand.js +22 -0
  8. package/dist-es/commands/GetInvocationStepCommand.js +23 -0
  9. package/dist-es/commands/GetSessionCommand.js +22 -0
  10. package/dist-es/commands/InvokeAgentCommand.js +2 -1
  11. package/dist-es/commands/InvokeInlineAgentCommand.js +2 -1
  12. package/dist-es/commands/ListInvocationStepsCommand.js +22 -0
  13. package/dist-es/commands/ListInvocationsCommand.js +22 -0
  14. package/dist-es/commands/ListSessionsCommand.js +22 -0
  15. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  16. package/dist-es/commands/PutInvocationStepCommand.js +23 -0
  17. package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -1
  18. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -1
  19. package/dist-es/commands/RetrieveCommand.js +2 -1
  20. package/dist-es/commands/TagResourceCommand.js +22 -0
  21. package/dist-es/commands/UntagResourceCommand.js +22 -0
  22. package/dist-es/commands/UpdateSessionCommand.js +22 -0
  23. package/dist-es/commands/index.js +14 -0
  24. package/dist-es/models/index.js +1 -0
  25. package/dist-es/models/models_0.js +54 -151
  26. package/dist-es/models/models_1.js +164 -0
  27. package/dist-es/pagination/ListInvocationStepsPaginator.js +4 -0
  28. package/dist-es/pagination/ListInvocationsPaginator.js +4 -0
  29. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +3 -0
  31. package/dist-es/protocols/Aws_restJson1.js +532 -8
  32. package/dist-types/BedrockAgentRuntime.d.ts +100 -0
  33. package/dist-types/BedrockAgentRuntimeClient.d.ts +16 -2
  34. package/dist-types/commands/CreateInvocationCommand.d.ts +115 -0
  35. package/dist-types/commands/CreateSessionCommand.d.ts +133 -0
  36. package/dist-types/commands/DeleteSessionCommand.d.ts +89 -0
  37. package/dist-types/commands/EndSessionCommand.d.ts +93 -0
  38. package/dist-types/commands/GetInvocationStepCommand.d.ts +109 -0
  39. package/dist-types/commands/GetSessionCommand.d.ts +94 -0
  40. package/dist-types/commands/InvokeAgentCommand.d.ts +2 -1
  41. package/dist-types/commands/InvokeInlineAgentCommand.d.ts +2 -1
  42. package/dist-types/commands/ListInvocationStepsCommand.d.ts +97 -0
  43. package/dist-types/commands/ListInvocationsCommand.d.ts +95 -0
  44. package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
  45. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  46. package/dist-types/commands/PutInvocationStepCommand.d.ts +134 -0
  47. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +2 -1
  48. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -1
  49. package/dist-types/commands/RetrieveCommand.d.ts +2 -1
  50. package/dist-types/commands/TagResourceCommand.d.ts +90 -0
  51. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  52. package/dist-types/commands/UpdateSessionCommand.d.ts +96 -0
  53. package/dist-types/commands/index.d.ts +14 -0
  54. package/dist-types/models/index.d.ts +1 -0
  55. package/dist-types/models/models_0.d.ts +494 -634
  56. package/dist-types/models/models_1.d.ts +919 -0
  57. package/dist-types/pagination/ListInvocationStepsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListInvocationsPaginator.d.ts +7 -0
  59. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  60. package/dist-types/pagination/index.d.ts +3 -0
  61. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  62. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +240 -0
  63. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +86 -2
  64. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +50 -0
  65. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
  66. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +50 -0
  67. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +47 -0
  68. package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +51 -0
  69. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
  70. package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
  71. package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
  72. package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +51 -0
  73. package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +50 -0
  74. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  75. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
  78. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
  79. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
  80. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  81. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  82. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +50 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  84. package/dist-types/ts3.4/models/index.d.ts +1 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +222 -365
  86. package/dist-types/ts3.4/models/models_1.d.ts +416 -0
  87. package/dist-types/ts3.4/pagination/ListInvocationStepsPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/ListInvocationsPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  91. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  92. package/package.json +12 -12
@@ -1,23 +1,62 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { BedrockAgentRuntimeClient } from "./BedrockAgentRuntimeClient";
3
+ import { CreateInvocationCommandInput, CreateInvocationCommandOutput } from "./commands/CreateInvocationCommand";
4
+ import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
3
5
  import { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from "./commands/DeleteAgentMemoryCommand";
6
+ import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
7
+ import { EndSessionCommandInput, EndSessionCommandOutput } from "./commands/EndSessionCommand";
4
8
  import { GenerateQueryCommandInput, GenerateQueryCommandOutput } from "./commands/GenerateQueryCommand";
5
9
  import { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "./commands/GetAgentMemoryCommand";
10
+ import { GetInvocationStepCommandInput, GetInvocationStepCommandOutput } from "./commands/GetInvocationStepCommand";
11
+ import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
6
12
  import { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "./commands/InvokeAgentCommand";
7
13
  import { InvokeFlowCommandInput, InvokeFlowCommandOutput } from "./commands/InvokeFlowCommand";
8
14
  import { InvokeInlineAgentCommandInput, InvokeInlineAgentCommandOutput } from "./commands/InvokeInlineAgentCommand";
15
+ import { ListInvocationsCommandInput, ListInvocationsCommandOutput } from "./commands/ListInvocationsCommand";
16
+ import { ListInvocationStepsCommandInput, ListInvocationStepsCommandOutput } from "./commands/ListInvocationStepsCommand";
17
+ import { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
18
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
9
19
  import { OptimizePromptCommandInput, OptimizePromptCommandOutput } from "./commands/OptimizePromptCommand";
20
+ import { PutInvocationStepCommandInput, PutInvocationStepCommandOutput } from "./commands/PutInvocationStepCommand";
10
21
  import { RerankCommandInput, RerankCommandOutput } from "./commands/RerankCommand";
11
22
  import { RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput } from "./commands/RetrieveAndGenerateCommand";
12
23
  import { RetrieveAndGenerateStreamCommandInput, RetrieveAndGenerateStreamCommandOutput } from "./commands/RetrieveAndGenerateStreamCommand";
13
24
  import { RetrieveCommandInput, RetrieveCommandOutput } from "./commands/RetrieveCommand";
25
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
26
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
27
+ import { UpdateSessionCommandInput, UpdateSessionCommandOutput } from "./commands/UpdateSessionCommand";
14
28
  export interface BedrockAgentRuntime {
29
+ /**
30
+ * @see {@link CreateInvocationCommand}
31
+ */
32
+ createInvocation(args: CreateInvocationCommandInput, options?: __HttpHandlerOptions): Promise<CreateInvocationCommandOutput>;
33
+ createInvocation(args: CreateInvocationCommandInput, cb: (err: any, data?: CreateInvocationCommandOutput) => void): void;
34
+ createInvocation(args: CreateInvocationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateInvocationCommandOutput) => void): void;
35
+ /**
36
+ * @see {@link CreateSessionCommand}
37
+ */
38
+ createSession(): Promise<CreateSessionCommandOutput>;
39
+ createSession(args: CreateSessionCommandInput, options?: __HttpHandlerOptions): Promise<CreateSessionCommandOutput>;
40
+ createSession(args: CreateSessionCommandInput, cb: (err: any, data?: CreateSessionCommandOutput) => void): void;
41
+ createSession(args: CreateSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSessionCommandOutput) => void): void;
15
42
  /**
16
43
  * @see {@link DeleteAgentMemoryCommand}
17
44
  */
18
45
  deleteAgentMemory(args: DeleteAgentMemoryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAgentMemoryCommandOutput>;
19
46
  deleteAgentMemory(args: DeleteAgentMemoryCommandInput, cb: (err: any, data?: DeleteAgentMemoryCommandOutput) => void): void;
20
47
  deleteAgentMemory(args: DeleteAgentMemoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAgentMemoryCommandOutput) => void): void;
48
+ /**
49
+ * @see {@link DeleteSessionCommand}
50
+ */
51
+ deleteSession(args: DeleteSessionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSessionCommandOutput>;
52
+ deleteSession(args: DeleteSessionCommandInput, cb: (err: any, data?: DeleteSessionCommandOutput) => void): void;
53
+ deleteSession(args: DeleteSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSessionCommandOutput) => void): void;
54
+ /**
55
+ * @see {@link EndSessionCommand}
56
+ */
57
+ endSession(args: EndSessionCommandInput, options?: __HttpHandlerOptions): Promise<EndSessionCommandOutput>;
58
+ endSession(args: EndSessionCommandInput, cb: (err: any, data?: EndSessionCommandOutput) => void): void;
59
+ endSession(args: EndSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EndSessionCommandOutput) => void): void;
21
60
  /**
22
61
  * @see {@link GenerateQueryCommand}
23
62
  */
@@ -30,6 +69,18 @@ export interface BedrockAgentRuntime {
30
69
  getAgentMemory(args: GetAgentMemoryCommandInput, options?: __HttpHandlerOptions): Promise<GetAgentMemoryCommandOutput>;
31
70
  getAgentMemory(args: GetAgentMemoryCommandInput, cb: (err: any, data?: GetAgentMemoryCommandOutput) => void): void;
32
71
  getAgentMemory(args: GetAgentMemoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAgentMemoryCommandOutput) => void): void;
72
+ /**
73
+ * @see {@link GetInvocationStepCommand}
74
+ */
75
+ getInvocationStep(args: GetInvocationStepCommandInput, options?: __HttpHandlerOptions): Promise<GetInvocationStepCommandOutput>;
76
+ getInvocationStep(args: GetInvocationStepCommandInput, cb: (err: any, data?: GetInvocationStepCommandOutput) => void): void;
77
+ getInvocationStep(args: GetInvocationStepCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInvocationStepCommandOutput) => void): void;
78
+ /**
79
+ * @see {@link GetSessionCommand}
80
+ */
81
+ getSession(args: GetSessionCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionCommandOutput>;
82
+ getSession(args: GetSessionCommandInput, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
83
+ getSession(args: GetSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionCommandOutput) => void): void;
33
84
  /**
34
85
  * @see {@link InvokeAgentCommand}
35
86
  */
@@ -48,12 +99,43 @@ export interface BedrockAgentRuntime {
48
99
  invokeInlineAgent(args: InvokeInlineAgentCommandInput, options?: __HttpHandlerOptions): Promise<InvokeInlineAgentCommandOutput>;
49
100
  invokeInlineAgent(args: InvokeInlineAgentCommandInput, cb: (err: any, data?: InvokeInlineAgentCommandOutput) => void): void;
50
101
  invokeInlineAgent(args: InvokeInlineAgentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeInlineAgentCommandOutput) => void): void;
102
+ /**
103
+ * @see {@link ListInvocationsCommand}
104
+ */
105
+ listInvocations(args: ListInvocationsCommandInput, options?: __HttpHandlerOptions): Promise<ListInvocationsCommandOutput>;
106
+ listInvocations(args: ListInvocationsCommandInput, cb: (err: any, data?: ListInvocationsCommandOutput) => void): void;
107
+ listInvocations(args: ListInvocationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInvocationsCommandOutput) => void): void;
108
+ /**
109
+ * @see {@link ListInvocationStepsCommand}
110
+ */
111
+ listInvocationSteps(args: ListInvocationStepsCommandInput, options?: __HttpHandlerOptions): Promise<ListInvocationStepsCommandOutput>;
112
+ listInvocationSteps(args: ListInvocationStepsCommandInput, cb: (err: any, data?: ListInvocationStepsCommandOutput) => void): void;
113
+ listInvocationSteps(args: ListInvocationStepsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInvocationStepsCommandOutput) => void): void;
114
+ /**
115
+ * @see {@link ListSessionsCommand}
116
+ */
117
+ listSessions(): Promise<ListSessionsCommandOutput>;
118
+ listSessions(args: ListSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSessionsCommandOutput>;
119
+ listSessions(args: ListSessionsCommandInput, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
120
+ listSessions(args: ListSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSessionsCommandOutput) => void): void;
121
+ /**
122
+ * @see {@link ListTagsForResourceCommand}
123
+ */
124
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
125
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
126
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
51
127
  /**
52
128
  * @see {@link OptimizePromptCommand}
53
129
  */
54
130
  optimizePrompt(args: OptimizePromptCommandInput, options?: __HttpHandlerOptions): Promise<OptimizePromptCommandOutput>;
55
131
  optimizePrompt(args: OptimizePromptCommandInput, cb: (err: any, data?: OptimizePromptCommandOutput) => void): void;
56
132
  optimizePrompt(args: OptimizePromptCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: OptimizePromptCommandOutput) => void): void;
133
+ /**
134
+ * @see {@link PutInvocationStepCommand}
135
+ */
136
+ putInvocationStep(args: PutInvocationStepCommandInput, options?: __HttpHandlerOptions): Promise<PutInvocationStepCommandOutput>;
137
+ putInvocationStep(args: PutInvocationStepCommandInput, cb: (err: any, data?: PutInvocationStepCommandOutput) => void): void;
138
+ putInvocationStep(args: PutInvocationStepCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutInvocationStepCommandOutput) => void): void;
57
139
  /**
58
140
  * @see {@link RerankCommand}
59
141
  */
@@ -78,6 +160,24 @@ export interface BedrockAgentRuntime {
78
160
  retrieveAndGenerateStream(args: RetrieveAndGenerateStreamCommandInput, options?: __HttpHandlerOptions): Promise<RetrieveAndGenerateStreamCommandOutput>;
79
161
  retrieveAndGenerateStream(args: RetrieveAndGenerateStreamCommandInput, cb: (err: any, data?: RetrieveAndGenerateStreamCommandOutput) => void): void;
80
162
  retrieveAndGenerateStream(args: RetrieveAndGenerateStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RetrieveAndGenerateStreamCommandOutput) => void): void;
163
+ /**
164
+ * @see {@link TagResourceCommand}
165
+ */
166
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
167
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
168
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
169
+ /**
170
+ * @see {@link UntagResourceCommand}
171
+ */
172
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
173
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
174
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
175
+ /**
176
+ * @see {@link UpdateSessionCommand}
177
+ */
178
+ updateSession(args: UpdateSessionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSessionCommandOutput>;
179
+ updateSession(args: UpdateSessionCommandInput, cb: (err: any, data?: UpdateSessionCommandOutput) => void): void;
180
+ updateSession(args: UpdateSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSessionCommandOutput) => void): void;
81
181
  }
82
182
  /**
83
183
  * <p>Contains APIs related to model invocation and querying of knowledge bases.</p>
@@ -8,28 +8,42 @@ 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 { CreateInvocationCommandInput, CreateInvocationCommandOutput } from "./commands/CreateInvocationCommand";
12
+ import { CreateSessionCommandInput, CreateSessionCommandOutput } from "./commands/CreateSessionCommand";
11
13
  import { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from "./commands/DeleteAgentMemoryCommand";
14
+ import { DeleteSessionCommandInput, DeleteSessionCommandOutput } from "./commands/DeleteSessionCommand";
15
+ import { EndSessionCommandInput, EndSessionCommandOutput } from "./commands/EndSessionCommand";
12
16
  import { GenerateQueryCommandInput, GenerateQueryCommandOutput } from "./commands/GenerateQueryCommand";
13
17
  import { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "./commands/GetAgentMemoryCommand";
18
+ import { GetInvocationStepCommandInput, GetInvocationStepCommandOutput } from "./commands/GetInvocationStepCommand";
19
+ import { GetSessionCommandInput, GetSessionCommandOutput } from "./commands/GetSessionCommand";
14
20
  import { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "./commands/InvokeAgentCommand";
15
21
  import { InvokeFlowCommandInput, InvokeFlowCommandOutput } from "./commands/InvokeFlowCommand";
16
22
  import { InvokeInlineAgentCommandInput, InvokeInlineAgentCommandOutput } from "./commands/InvokeInlineAgentCommand";
23
+ import { ListInvocationsCommandInput, ListInvocationsCommandOutput } from "./commands/ListInvocationsCommand";
24
+ import { ListInvocationStepsCommandInput, ListInvocationStepsCommandOutput } from "./commands/ListInvocationStepsCommand";
25
+ import { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
26
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
17
27
  import { OptimizePromptCommandInput, OptimizePromptCommandOutput } from "./commands/OptimizePromptCommand";
28
+ import { PutInvocationStepCommandInput, PutInvocationStepCommandOutput } from "./commands/PutInvocationStepCommand";
18
29
  import { RerankCommandInput, RerankCommandOutput } from "./commands/RerankCommand";
19
30
  import { RetrieveAndGenerateCommandInput, RetrieveAndGenerateCommandOutput } from "./commands/RetrieveAndGenerateCommand";
20
31
  import { RetrieveAndGenerateStreamCommandInput, RetrieveAndGenerateStreamCommandOutput } from "./commands/RetrieveAndGenerateStreamCommand";
21
32
  import { RetrieveCommandInput, RetrieveCommandOutput } from "./commands/RetrieveCommand";
33
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
34
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
+ import { UpdateSessionCommandInput, UpdateSessionCommandOutput } from "./commands/UpdateSessionCommand";
22
36
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
23
37
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
24
38
  export { __Client };
25
39
  /**
26
40
  * @public
27
41
  */
28
- export type ServiceInputTypes = DeleteAgentMemoryCommandInput | GenerateQueryCommandInput | GetAgentMemoryCommandInput | InvokeAgentCommandInput | InvokeFlowCommandInput | InvokeInlineAgentCommandInput | OptimizePromptCommandInput | RerankCommandInput | RetrieveAndGenerateCommandInput | RetrieveAndGenerateStreamCommandInput | RetrieveCommandInput;
42
+ export type ServiceInputTypes = CreateInvocationCommandInput | CreateSessionCommandInput | DeleteAgentMemoryCommandInput | DeleteSessionCommandInput | EndSessionCommandInput | GenerateQueryCommandInput | GetAgentMemoryCommandInput | GetInvocationStepCommandInput | GetSessionCommandInput | InvokeAgentCommandInput | InvokeFlowCommandInput | InvokeInlineAgentCommandInput | ListInvocationStepsCommandInput | ListInvocationsCommandInput | ListSessionsCommandInput | ListTagsForResourceCommandInput | OptimizePromptCommandInput | PutInvocationStepCommandInput | RerankCommandInput | RetrieveAndGenerateCommandInput | RetrieveAndGenerateStreamCommandInput | RetrieveCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSessionCommandInput;
29
43
  /**
30
44
  * @public
31
45
  */
32
- export type ServiceOutputTypes = DeleteAgentMemoryCommandOutput | GenerateQueryCommandOutput | GetAgentMemoryCommandOutput | InvokeAgentCommandOutput | InvokeFlowCommandOutput | InvokeInlineAgentCommandOutput | OptimizePromptCommandOutput | RerankCommandOutput | RetrieveAndGenerateCommandOutput | RetrieveAndGenerateStreamCommandOutput | RetrieveCommandOutput;
46
+ export type ServiceOutputTypes = CreateInvocationCommandOutput | CreateSessionCommandOutput | DeleteAgentMemoryCommandOutput | DeleteSessionCommandOutput | EndSessionCommandOutput | GenerateQueryCommandOutput | GetAgentMemoryCommandOutput | GetInvocationStepCommandOutput | GetSessionCommandOutput | InvokeAgentCommandOutput | InvokeFlowCommandOutput | InvokeInlineAgentCommandOutput | ListInvocationStepsCommandOutput | ListInvocationsCommandOutput | ListSessionsCommandOutput | ListTagsForResourceCommandOutput | OptimizePromptCommandOutput | PutInvocationStepCommandOutput | RerankCommandOutput | RetrieveAndGenerateCommandOutput | RetrieveAndGenerateStreamCommandOutput | RetrieveCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSessionCommandOutput;
33
47
  /**
34
48
  * @public
35
49
  */
@@ -0,0 +1,115 @@
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 { CreateInvocationRequest, CreateInvocationResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateInvocationCommand}.
14
+ */
15
+ export interface CreateInvocationCommandInput extends CreateInvocationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateInvocationCommand}.
21
+ */
22
+ export interface CreateInvocationCommandOutput extends CreateInvocationResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateInvocationCommand_base: {
25
+ new (input: CreateInvocationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateInvocationCommandInput, CreateInvocationCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateInvocationCommandInput): import("@smithy/smithy-client").CommandImpl<CreateInvocationCommandInput, CreateInvocationCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a new invocation within a session. An invocation groups the related invocation steps that store the content from
31
+ * 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>
32
+ * <p>Related APIs</p>
33
+ * <ul>
34
+ * <li>
35
+ * <p>
36
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListInvocations.html">ListInvocations</a>
37
+ * </p>
38
+ * </li>
39
+ * <li>
40
+ * <p>
41
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListSessions.html">ListSessions</a>
42
+ * </p>
43
+ * </li>
44
+ * <li>
45
+ * <p>
46
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetSession.html">GetSession</a>
47
+ * </p>
48
+ * </li>
49
+ * </ul>
50
+ * @example
51
+ * Use a bare-bones client and the command you need to make an API call.
52
+ * ```javascript
53
+ * import { BedrockAgentRuntimeClient, CreateInvocationCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
54
+ * // const { BedrockAgentRuntimeClient, CreateInvocationCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
55
+ * const client = new BedrockAgentRuntimeClient(config);
56
+ * const input = { // CreateInvocationRequest
57
+ * invocationId: "STRING_VALUE",
58
+ * description: "STRING_VALUE",
59
+ * sessionIdentifier: "STRING_VALUE", // required
60
+ * };
61
+ * const command = new CreateInvocationCommand(input);
62
+ * const response = await client.send(command);
63
+ * // { // CreateInvocationResponse
64
+ * // sessionId: "STRING_VALUE", // required
65
+ * // invocationId: "STRING_VALUE", // required
66
+ * // createdAt: new Date("TIMESTAMP"), // required
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param CreateInvocationCommandInput - {@link CreateInvocationCommandInput}
72
+ * @returns {@link CreateInvocationCommandOutput}
73
+ * @see {@link CreateInvocationCommandInput} for command's `input` shape.
74
+ * @see {@link CreateInvocationCommandOutput} for command's `response` shape.
75
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
79
+ *
80
+ * @throws {@link ConflictException} (client fault)
81
+ * <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
82
+ *
83
+ * @throws {@link InternalServerException} (server fault)
84
+ * <p>An internal server error occurred. Retry your request.</p>
85
+ *
86
+ * @throws {@link ResourceNotFoundException} (client fault)
87
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
88
+ *
89
+ * @throws {@link ServiceQuotaExceededException} (client fault)
90
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
91
+ *
92
+ * @throws {@link ThrottlingException} (client fault)
93
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
94
+ *
95
+ * @throws {@link ValidationException} (client fault)
96
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
97
+ *
98
+ * @throws {@link BedrockAgentRuntimeServiceException}
99
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
100
+ *
101
+ * @public
102
+ */
103
+ export declare class CreateInvocationCommand extends CreateInvocationCommand_base {
104
+ /** @internal type navigation helper, not in runtime. */
105
+ protected static __types: {
106
+ api: {
107
+ input: CreateInvocationRequest;
108
+ output: CreateInvocationResponse;
109
+ };
110
+ sdk: {
111
+ input: CreateInvocationCommandInput;
112
+ output: CreateInvocationCommandOutput;
113
+ };
114
+ };
115
+ }
@@ -0,0 +1,133 @@
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 { CreateSessionRequest, CreateSessionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateSessionCommand}.
14
+ */
15
+ export interface CreateSessionCommandInput extends CreateSessionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateSessionCommand}.
21
+ */
22
+ export interface CreateSessionCommandOutput extends CreateSessionResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateSessionCommand_base: {
25
+ new (input: CreateSessionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSessionCommandInput, CreateSessionCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [CreateSessionCommandInput]): import("@smithy/smithy-client").CommandImpl<CreateSessionCommandInput, CreateSessionCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a session to temporarily store conversations for generative AI (GenAI) applications built with open-source
31
+ * frameworks such as LangGraph and LlamaIndex. Sessions enable you to save the state of
32
+ * conversations at checkpoints, with the added security and infrastructure of Amazon Web Services. For more information, see
33
+ * <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>
34
+ * <p>By default, Amazon Bedrock uses Amazon Web Services-managed keys for session encryption, including session metadata,
35
+ * or you can use your own KMS key. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/session-encryption.html">Amazon Bedrock session encryption</a>.</p>
36
+ * <note>
37
+ * <p>
38
+ * You use a session to store state and conversation history for generative AI applications built with open-source frameworks.
39
+ * For Amazon Bedrock Agents, the service automatically manages conversation context and associates them with the agent-specific sessionId you specify in the
40
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> API operation.
41
+ * </p>
42
+ * </note>
43
+ * <p>Related APIs:</p>
44
+ * <ul>
45
+ * <li>
46
+ * <p>
47
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_ListSessions.html">ListSessions</a>
48
+ * </p>
49
+ * </li>
50
+ * <li>
51
+ * <p>
52
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_GetSession.html">GetSession</a>
53
+ * </p>
54
+ * </li>
55
+ * <li>
56
+ * <p>
57
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_EndSession.html">EndSession</a>
58
+ * </p>
59
+ * </li>
60
+ * <li>
61
+ * <p>
62
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_DeleteSession.html">DeleteSession</a>
63
+ * </p>
64
+ * </li>
65
+ * </ul>
66
+ * @example
67
+ * Use a bare-bones client and the command you need to make an API call.
68
+ * ```javascript
69
+ * import { BedrockAgentRuntimeClient, CreateSessionCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
70
+ * // const { BedrockAgentRuntimeClient, CreateSessionCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
71
+ * const client = new BedrockAgentRuntimeClient(config);
72
+ * const input = { // CreateSessionRequest
73
+ * sessionMetadata: { // SessionMetadataMap
74
+ * "<keys>": "STRING_VALUE",
75
+ * },
76
+ * encryptionKeyArn: "STRING_VALUE",
77
+ * tags: { // TagsMap
78
+ * "<keys>": "STRING_VALUE",
79
+ * },
80
+ * };
81
+ * const command = new CreateSessionCommand(input);
82
+ * const response = await client.send(command);
83
+ * // { // CreateSessionResponse
84
+ * // sessionId: "STRING_VALUE", // required
85
+ * // sessionArn: "STRING_VALUE", // required
86
+ * // sessionStatus: "ACTIVE" || "EXPIRED" || "ENDED", // required
87
+ * // createdAt: new Date("TIMESTAMP"), // required
88
+ * // };
89
+ *
90
+ * ```
91
+ *
92
+ * @param CreateSessionCommandInput - {@link CreateSessionCommandInput}
93
+ * @returns {@link CreateSessionCommandOutput}
94
+ * @see {@link CreateSessionCommandInput} for command's `input` shape.
95
+ * @see {@link CreateSessionCommandOutput} for command's `response` shape.
96
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
97
+ *
98
+ * @throws {@link AccessDeniedException} (client fault)
99
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
100
+ *
101
+ * @throws {@link ConflictException} (client fault)
102
+ * <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
103
+ *
104
+ * @throws {@link InternalServerException} (server fault)
105
+ * <p>An internal server error occurred. Retry your request.</p>
106
+ *
107
+ * @throws {@link ServiceQuotaExceededException} (client fault)
108
+ * <p>The number of requests exceeds the service quota. Resubmit your request later.</p>
109
+ *
110
+ * @throws {@link ThrottlingException} (client fault)
111
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
112
+ *
113
+ * @throws {@link ValidationException} (client fault)
114
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
115
+ *
116
+ * @throws {@link BedrockAgentRuntimeServiceException}
117
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
118
+ *
119
+ * @public
120
+ */
121
+ export declare class CreateSessionCommand extends CreateSessionCommand_base {
122
+ /** @internal type navigation helper, not in runtime. */
123
+ protected static __types: {
124
+ api: {
125
+ input: CreateSessionRequest;
126
+ output: CreateSessionResponse;
127
+ };
128
+ sdk: {
129
+ input: CreateSessionCommandInput;
130
+ output: CreateSessionCommandOutput;
131
+ };
132
+ };
133
+ }
@@ -0,0 +1,89 @@
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 { DeleteSessionRequest, DeleteSessionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteSessionCommand}.
14
+ */
15
+ export interface DeleteSessionCommandInput extends DeleteSessionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteSessionCommand}.
21
+ */
22
+ export interface DeleteSessionCommandOutput extends DeleteSessionResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteSessionCommand_base: {
25
+ new (input: DeleteSessionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteSessionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSessionCommandInput, DeleteSessionCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a session that you ended. You can't delete a session with an <code>ACTIVE</code> status. To delete an active session, you must first end it with the
31
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_EndSession.html">EndSession</a> API operation.
32
+ * 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>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { BedrockAgentRuntimeClient, DeleteSessionCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
37
+ * // const { BedrockAgentRuntimeClient, DeleteSessionCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
38
+ * const client = new BedrockAgentRuntimeClient(config);
39
+ * const input = { // DeleteSessionRequest
40
+ * sessionIdentifier: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteSessionCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteSessionCommandInput - {@link DeleteSessionCommandInput}
49
+ * @returns {@link DeleteSessionCommandOutput}
50
+ * @see {@link DeleteSessionCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteSessionCommandOutput} 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 ConflictException} (client fault)
58
+ * <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>An internal server error occurred. Retry your request.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
71
+ *
72
+ * @throws {@link BedrockAgentRuntimeServiceException}
73
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
74
+ *
75
+ * @public
76
+ */
77
+ export declare class DeleteSessionCommand extends DeleteSessionCommand_base {
78
+ /** @internal type navigation helper, not in runtime. */
79
+ protected static __types: {
80
+ api: {
81
+ input: DeleteSessionRequest;
82
+ output: {};
83
+ };
84
+ sdk: {
85
+ input: DeleteSessionCommandInput;
86
+ output: DeleteSessionCommandOutput;
87
+ };
88
+ };
89
+ }
@@ -0,0 +1,93 @@
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 { EndSessionRequest, EndSessionResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link EndSessionCommand}.
14
+ */
15
+ export interface EndSessionCommandInput extends EndSessionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link EndSessionCommand}.
21
+ */
22
+ export interface EndSessionCommandOutput extends EndSessionResponse, __MetadataBearer {
23
+ }
24
+ declare const EndSessionCommand_base: {
25
+ new (input: EndSessionCommandInput): import("@smithy/smithy-client").CommandImpl<EndSessionCommandInput, EndSessionCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: EndSessionCommandInput): import("@smithy/smithy-client").CommandImpl<EndSessionCommandInput, EndSessionCommandOutput, BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Ends the session.
31
+ * After you end a session, you can still access its content but you can’t add to it. To delete the session and it's content, you use the DeleteSession API operation.
32
+ * 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>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { BedrockAgentRuntimeClient, EndSessionCommand } from "@aws-sdk/client-bedrock-agent-runtime"; // ES Modules import
37
+ * // const { BedrockAgentRuntimeClient, EndSessionCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
38
+ * const client = new BedrockAgentRuntimeClient(config);
39
+ * const input = { // EndSessionRequest
40
+ * sessionIdentifier: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new EndSessionCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // EndSessionResponse
45
+ * // sessionId: "STRING_VALUE", // required
46
+ * // sessionArn: "STRING_VALUE", // required
47
+ * // sessionStatus: "ACTIVE" || "EXPIRED" || "ENDED", // required
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param EndSessionCommandInput - {@link EndSessionCommandInput}
53
+ * @returns {@link EndSessionCommandOutput}
54
+ * @see {@link EndSessionCommandInput} for command's `input` shape.
55
+ * @see {@link EndSessionCommandOutput} for command's `response` shape.
56
+ * @see {@link BedrockAgentRuntimeClientResolvedConfig | config} for BedrockAgentRuntimeClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>The request is denied because of missing access permissions. Check your permissions and retry your request.</p>
60
+ *
61
+ * @throws {@link ConflictException} (client fault)
62
+ * <p>There was a conflict performing an operation. Resolve the conflict and retry your request.</p>
63
+ *
64
+ * @throws {@link InternalServerException} (server fault)
65
+ * <p>An internal server error occurred. Retry your request.</p>
66
+ *
67
+ * @throws {@link ResourceNotFoundException} (client fault)
68
+ * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The number of requests exceeds the limit. Resubmit your request later.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>Input validation failed. Check your request parameters and retry the request.</p>
75
+ *
76
+ * @throws {@link BedrockAgentRuntimeServiceException}
77
+ * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
78
+ *
79
+ * @public
80
+ */
81
+ export declare class EndSessionCommand extends EndSessionCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: EndSessionRequest;
86
+ output: EndSessionResponse;
87
+ };
88
+ sdk: {
89
+ input: EndSessionCommandInput;
90
+ output: EndSessionCommandOutput;
91
+ };
92
+ };
93
+ }