@aws-sdk/client-bedrock-agentcore 3.847.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 (211) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +413 -0
  3. package/dist-cjs/BedrockAgentCore.js +63 -0
  4. package/dist-cjs/BedrockAgentCoreClient.js +54 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateEventCommand.js +27 -0
  8. package/dist-cjs/commands/DeleteEventCommand.js +26 -0
  9. package/dist-cjs/commands/DeleteMemoryRecordCommand.js +26 -0
  10. package/dist-cjs/commands/GetBrowserSessionCommand.js +26 -0
  11. package/dist-cjs/commands/GetCodeInterpreterSessionCommand.js +26 -0
  12. package/dist-cjs/commands/GetEventCommand.js +27 -0
  13. package/dist-cjs/commands/GetMemoryRecordCommand.js +27 -0
  14. package/dist-cjs/commands/GetResourceApiKeyCommand.js +27 -0
  15. package/dist-cjs/commands/GetResourceOauth2TokenCommand.js +27 -0
  16. package/dist-cjs/commands/GetWorkloadAccessTokenCommand.js +27 -0
  17. package/dist-cjs/commands/GetWorkloadAccessTokenForJWTCommand.js +27 -0
  18. package/dist-cjs/commands/GetWorkloadAccessTokenForUserIdCommand.js +27 -0
  19. package/dist-cjs/commands/InvokeAgentRuntimeCommand.js +27 -0
  20. package/dist-cjs/commands/InvokeCodeInterpreterCommand.js +31 -0
  21. package/dist-cjs/commands/ListActorsCommand.js +26 -0
  22. package/dist-cjs/commands/ListBrowserSessionsCommand.js +26 -0
  23. package/dist-cjs/commands/ListCodeInterpreterSessionsCommand.js +26 -0
  24. package/dist-cjs/commands/ListEventsCommand.js +27 -0
  25. package/dist-cjs/commands/ListMemoryRecordsCommand.js +27 -0
  26. package/dist-cjs/commands/ListSessionsCommand.js +26 -0
  27. package/dist-cjs/commands/RetrieveMemoryRecordsCommand.js +27 -0
  28. package/dist-cjs/commands/StartBrowserSessionCommand.js +26 -0
  29. package/dist-cjs/commands/StartCodeInterpreterSessionCommand.js +26 -0
  30. package/dist-cjs/commands/StopBrowserSessionCommand.js +26 -0
  31. package/dist-cjs/commands/StopCodeInterpreterSessionCommand.js +26 -0
  32. package/dist-cjs/commands/UpdateBrowserStreamCommand.js +26 -0
  33. package/dist-cjs/commands/index.js +29 -0
  34. package/dist-cjs/endpoint/EndpointParameters.js +17 -0
  35. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  36. package/dist-cjs/endpoint/ruleset.js +7 -0
  37. package/dist-cjs/extensionConfiguration.js +2 -0
  38. package/dist-cjs/index.js +11 -0
  39. package/dist-cjs/models/BedrockAgentCoreServiceException.js +12 -0
  40. package/dist-cjs/models/index.js +4 -0
  41. package/dist-cjs/models/models_0.js +468 -0
  42. package/dist-cjs/pagination/Interfaces.js +2 -0
  43. package/dist-cjs/pagination/ListActorsPaginator.js +7 -0
  44. package/dist-cjs/pagination/ListEventsPaginator.js +7 -0
  45. package/dist-cjs/pagination/ListMemoryRecordsPaginator.js +7 -0
  46. package/dist-cjs/pagination/ListSessionsPaginator.js +7 -0
  47. package/dist-cjs/pagination/RetrieveMemoryRecordsPaginator.js +7 -0
  48. package/dist-cjs/pagination/index.js +9 -0
  49. package/dist-cjs/protocols/Aws_restJson1.js +1423 -0
  50. package/dist-cjs/runtimeConfig.browser.js +41 -0
  51. package/dist-cjs/runtimeConfig.js +58 -0
  52. package/dist-cjs/runtimeConfig.native.js +15 -0
  53. package/dist-cjs/runtimeConfig.shared.js +36 -0
  54. package/dist-cjs/runtimeExtensions.js +13 -0
  55. package/dist-es/BedrockAgentCore.js +59 -0
  56. package/dist-es/BedrockAgentCoreClient.js +50 -0
  57. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  58. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  59. package/dist-es/commands/CreateEventCommand.js +23 -0
  60. package/dist-es/commands/DeleteEventCommand.js +22 -0
  61. package/dist-es/commands/DeleteMemoryRecordCommand.js +22 -0
  62. package/dist-es/commands/GetBrowserSessionCommand.js +22 -0
  63. package/dist-es/commands/GetCodeInterpreterSessionCommand.js +22 -0
  64. package/dist-es/commands/GetEventCommand.js +23 -0
  65. package/dist-es/commands/GetMemoryRecordCommand.js +23 -0
  66. package/dist-es/commands/GetResourceApiKeyCommand.js +23 -0
  67. package/dist-es/commands/GetResourceOauth2TokenCommand.js +23 -0
  68. package/dist-es/commands/GetWorkloadAccessTokenCommand.js +23 -0
  69. package/dist-es/commands/GetWorkloadAccessTokenForJWTCommand.js +23 -0
  70. package/dist-es/commands/GetWorkloadAccessTokenForUserIdCommand.js +23 -0
  71. package/dist-es/commands/InvokeAgentRuntimeCommand.js +23 -0
  72. package/dist-es/commands/InvokeCodeInterpreterCommand.js +27 -0
  73. package/dist-es/commands/ListActorsCommand.js +22 -0
  74. package/dist-es/commands/ListBrowserSessionsCommand.js +22 -0
  75. package/dist-es/commands/ListCodeInterpreterSessionsCommand.js +22 -0
  76. package/dist-es/commands/ListEventsCommand.js +23 -0
  77. package/dist-es/commands/ListMemoryRecordsCommand.js +23 -0
  78. package/dist-es/commands/ListSessionsCommand.js +22 -0
  79. package/dist-es/commands/RetrieveMemoryRecordsCommand.js +23 -0
  80. package/dist-es/commands/StartBrowserSessionCommand.js +22 -0
  81. package/dist-es/commands/StartCodeInterpreterSessionCommand.js +22 -0
  82. package/dist-es/commands/StopBrowserSessionCommand.js +22 -0
  83. package/dist-es/commands/StopCodeInterpreterSessionCommand.js +22 -0
  84. package/dist-es/commands/UpdateBrowserStreamCommand.js +22 -0
  85. package/dist-es/commands/index.js +26 -0
  86. package/dist-es/endpoint/EndpointParameters.js +13 -0
  87. package/dist-es/endpoint/endpointResolver.js +14 -0
  88. package/dist-es/endpoint/ruleset.js +4 -0
  89. package/dist-es/extensionConfiguration.js +1 -0
  90. package/dist-es/index.js +6 -0
  91. package/dist-es/models/BedrockAgentCoreServiceException.js +8 -0
  92. package/dist-es/models/index.js +1 -0
  93. package/dist-es/models/models_0.js +421 -0
  94. package/dist-es/pagination/Interfaces.js +1 -0
  95. package/dist-es/pagination/ListActorsPaginator.js +4 -0
  96. package/dist-es/pagination/ListEventsPaginator.js +4 -0
  97. package/dist-es/pagination/ListMemoryRecordsPaginator.js +4 -0
  98. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  99. package/dist-es/pagination/RetrieveMemoryRecordsPaginator.js +4 -0
  100. package/dist-es/pagination/index.js +6 -0
  101. package/dist-es/protocols/Aws_restJson1.js +1367 -0
  102. package/dist-es/runtimeConfig.browser.js +36 -0
  103. package/dist-es/runtimeConfig.js +53 -0
  104. package/dist-es/runtimeConfig.native.js +11 -0
  105. package/dist-es/runtimeConfig.shared.js +32 -0
  106. package/dist-es/runtimeExtensions.js +9 -0
  107. package/dist-types/BedrockAgentCore.d.ts +192 -0
  108. package/dist-types/BedrockAgentCoreClient.d.ts +223 -0
  109. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  110. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  111. package/dist-types/commands/CreateEventCommand.d.ts +133 -0
  112. package/dist-types/commands/DeleteEventCommand.d.ts +96 -0
  113. package/dist-types/commands/DeleteMemoryRecordCommand.d.ts +94 -0
  114. package/dist-types/commands/GetBrowserSessionCommand.d.ts +108 -0
  115. package/dist-types/commands/GetCodeInterpreterSessionCommand.d.ts +93 -0
  116. package/dist-types/commands/GetEventCommand.d.ts +117 -0
  117. package/dist-types/commands/GetMemoryRecordCommand.d.ts +104 -0
  118. package/dist-types/commands/GetResourceApiKeyCommand.d.ts +91 -0
  119. package/dist-types/commands/GetResourceOauth2TokenCommand.d.ts +102 -0
  120. package/dist-types/commands/GetWorkloadAccessTokenCommand.d.ts +90 -0
  121. package/dist-types/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +91 -0
  122. package/dist-types/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +91 -0
  123. package/dist-types/commands/InvokeAgentRuntimeCommand.d.ts +126 -0
  124. package/dist-types/commands/InvokeCodeInterpreterCommand.d.ts +174 -0
  125. package/dist-types/commands/ListActorsCommand.d.ts +100 -0
  126. package/dist-types/commands/ListBrowserSessionsCommand.d.ts +100 -0
  127. package/dist-types/commands/ListCodeInterpreterSessionsCommand.d.ts +100 -0
  128. package/dist-types/commands/ListEventsCommand.d.ts +128 -0
  129. package/dist-types/commands/ListMemoryRecordsCommand.d.ts +111 -0
  130. package/dist-types/commands/ListSessionsCommand.d.ts +103 -0
  131. package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +115 -0
  132. package/dist-types/commands/StartBrowserSessionCommand.d.ts +111 -0
  133. package/dist-types/commands/StartCodeInterpreterSessionCommand.d.ts +98 -0
  134. package/dist-types/commands/StopBrowserSessionCommand.d.ts +97 -0
  135. package/dist-types/commands/StopCodeInterpreterSessionCommand.d.ts +97 -0
  136. package/dist-types/commands/UpdateBrowserStreamCommand.d.ts +111 -0
  137. package/dist-types/commands/index.d.ts +26 -0
  138. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  139. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  140. package/dist-types/endpoint/ruleset.d.ts +2 -0
  141. package/dist-types/extensionConfiguration.d.ts +9 -0
  142. package/dist-types/index.d.ts +14 -0
  143. package/dist-types/models/BedrockAgentCoreServiceException.d.ts +14 -0
  144. package/dist-types/models/index.d.ts +1 -0
  145. package/dist-types/models/models_0.d.ts +2440 -0
  146. package/dist-types/pagination/Interfaces.d.ts +8 -0
  147. package/dist-types/pagination/ListActorsPaginator.d.ts +7 -0
  148. package/dist-types/pagination/ListEventsPaginator.d.ts +7 -0
  149. package/dist-types/pagination/ListMemoryRecordsPaginator.d.ts +7 -0
  150. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  151. package/dist-types/pagination/RetrieveMemoryRecordsPaginator.d.ts +7 -0
  152. package/dist-types/pagination/index.d.ts +6 -0
  153. package/dist-types/protocols/Aws_restJson1.d.ts +236 -0
  154. package/dist-types/runtimeConfig.browser.d.ts +52 -0
  155. package/dist-types/runtimeConfig.d.ts +52 -0
  156. package/dist-types/runtimeConfig.native.d.ts +51 -0
  157. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  158. package/dist-types/runtimeExtensions.d.ts +17 -0
  159. package/dist-types/ts3.4/BedrockAgentCore.d.ts +449 -0
  160. package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +288 -0
  161. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  162. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  163. package/dist-types/ts3.4/commands/CreateEventCommand.d.ts +47 -0
  164. package/dist-types/ts3.4/commands/DeleteEventCommand.d.ts +47 -0
  165. package/dist-types/ts3.4/commands/DeleteMemoryRecordCommand.d.ts +51 -0
  166. package/dist-types/ts3.4/commands/GetBrowserSessionCommand.d.ts +51 -0
  167. package/dist-types/ts3.4/commands/GetCodeInterpreterSessionCommand.d.ts +51 -0
  168. package/dist-types/ts3.4/commands/GetEventCommand.d.ts +47 -0
  169. package/dist-types/ts3.4/commands/GetMemoryRecordCommand.d.ts +50 -0
  170. package/dist-types/ts3.4/commands/GetResourceApiKeyCommand.d.ts +51 -0
  171. package/dist-types/ts3.4/commands/GetResourceOauth2TokenCommand.d.ts +51 -0
  172. package/dist-types/ts3.4/commands/GetWorkloadAccessTokenCommand.d.ts +51 -0
  173. package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForJWTCommand.d.ts +51 -0
  174. package/dist-types/ts3.4/commands/GetWorkloadAccessTokenForUserIdCommand.d.ts +51 -0
  175. package/dist-types/ts3.4/commands/InvokeAgentRuntimeCommand.d.ts +66 -0
  176. package/dist-types/ts3.4/commands/InvokeCodeInterpreterCommand.d.ts +51 -0
  177. package/dist-types/ts3.4/commands/ListActorsCommand.d.ts +47 -0
  178. package/dist-types/ts3.4/commands/ListBrowserSessionsCommand.d.ts +51 -0
  179. package/dist-types/ts3.4/commands/ListCodeInterpreterSessionsCommand.d.ts +51 -0
  180. package/dist-types/ts3.4/commands/ListEventsCommand.d.ts +47 -0
  181. package/dist-types/ts3.4/commands/ListMemoryRecordsCommand.d.ts +50 -0
  182. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  183. package/dist-types/ts3.4/commands/RetrieveMemoryRecordsCommand.d.ts +51 -0
  184. package/dist-types/ts3.4/commands/StartBrowserSessionCommand.d.ts +51 -0
  185. package/dist-types/ts3.4/commands/StartCodeInterpreterSessionCommand.d.ts +51 -0
  186. package/dist-types/ts3.4/commands/StopBrowserSessionCommand.d.ts +51 -0
  187. package/dist-types/ts3.4/commands/StopCodeInterpreterSessionCommand.d.ts +51 -0
  188. package/dist-types/ts3.4/commands/UpdateBrowserStreamCommand.d.ts +51 -0
  189. package/dist-types/ts3.4/commands/index.d.ts +26 -0
  190. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  191. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  192. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  193. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  194. package/dist-types/ts3.4/index.d.ts +9 -0
  195. package/dist-types/ts3.4/models/BedrockAgentCoreServiceException.d.ts +9 -0
  196. package/dist-types/ts3.4/models/index.d.ts +1 -0
  197. package/dist-types/ts3.4/models/models_0.d.ts +872 -0
  198. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  199. package/dist-types/ts3.4/pagination/ListActorsPaginator.d.ts +11 -0
  200. package/dist-types/ts3.4/pagination/ListEventsPaginator.d.ts +11 -0
  201. package/dist-types/ts3.4/pagination/ListMemoryRecordsPaginator.d.ts +11 -0
  202. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  203. package/dist-types/ts3.4/pagination/RetrieveMemoryRecordsPaginator.d.ts +11 -0
  204. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  205. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +321 -0
  206. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  207. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  208. package/dist-types/ts3.4/runtimeConfig.native.d.ts +100 -0
  209. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +24 -0
  210. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  211. package/package.json +105 -0
@@ -0,0 +1,2440 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { DocumentType as __DocumentType, StreamingBlobTypes } from "@smithy/types";
3
+ import { BedrockAgentCoreServiceException as __BaseException } from "./BedrockAgentCoreServiceException";
4
+ /**
5
+ * <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
6
+ * @public
7
+ */
8
+ export declare class AccessDeniedException extends __BaseException {
9
+ readonly name: "AccessDeniedException";
10
+ readonly $fault: "client";
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>Contains summary information about an actor in a memory store.</p>
18
+ * @public
19
+ */
20
+ export interface ActorSummary {
21
+ /**
22
+ * <p>The unique identifier of the actor.</p>
23
+ * @public
24
+ */
25
+ actorId: string | undefined;
26
+ }
27
+ /**
28
+ * <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
29
+ * @public
30
+ */
31
+ export declare class InternalServerException extends __BaseException {
32
+ readonly name: "InternalServerException";
33
+ readonly $fault: "server";
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
38
+ }
39
+ /**
40
+ * @public
41
+ */
42
+ export interface InvokeAgentRuntimeRequest {
43
+ /**
44
+ * <p>The MIME type of the input data in the payload. This tells the agent runtime how to interpret the payload data. Common values include application/json for JSON data.</p>
45
+ * @public
46
+ */
47
+ contentType?: string | undefined;
48
+ /**
49
+ * <p>The desired MIME type for the response from the agent runtime. This tells the agent runtime what format to use for the response data. Common values include application/json for JSON data.</p>
50
+ * @public
51
+ */
52
+ accept?: string | undefined;
53
+ /**
54
+ * <p>The identifier of the MCP session.</p>
55
+ * @public
56
+ */
57
+ mcpSessionId?: string | undefined;
58
+ /**
59
+ * <p>The identifier of the runtime session.</p>
60
+ * @public
61
+ */
62
+ runtimeSessionId?: string | undefined;
63
+ /**
64
+ * <p>The version of the MCP protocol being used.</p>
65
+ * @public
66
+ */
67
+ mcpProtocolVersion?: string | undefined;
68
+ /**
69
+ * <p>The identifier of the runtime user.</p>
70
+ * @public
71
+ */
72
+ runtimeUserId?: string | undefined;
73
+ /**
74
+ * <p>The trace identifier for request tracking.</p>
75
+ * @public
76
+ */
77
+ traceId?: string | undefined;
78
+ /**
79
+ * <p>The parent trace information for distributed tracing.</p>
80
+ * @public
81
+ */
82
+ traceParent?: string | undefined;
83
+ /**
84
+ * <p>The trace state information for distributed tracing.</p>
85
+ * @public
86
+ */
87
+ traceState?: string | undefined;
88
+ /**
89
+ * <p>Additional context information for distributed tracing.</p>
90
+ * @public
91
+ */
92
+ baggage?: string | undefined;
93
+ /**
94
+ * <p>The Amazon Web Services Resource Name (ARN) of the agent runtime to invoke. The ARN uniquely identifies the agent runtime resource in Amazon Bedrock.</p>
95
+ * @public
96
+ */
97
+ agentRuntimeArn: string | undefined;
98
+ /**
99
+ * <p>The qualifier to use for the agent runtime. This can be a version number or an alias name that points to a specific version. If not specified, Amazon Bedrock uses the default version of the agent runtime.</p>
100
+ * @public
101
+ */
102
+ qualifier?: string | undefined;
103
+ /**
104
+ * <p>The input data to send to the agent runtime. The format of this data depends on the specific agent configuration and must match the specified content type. For most agents, this is a JSON object containing the user's request.</p>
105
+ * @public
106
+ */
107
+ payload: Uint8Array | undefined;
108
+ }
109
+ /**
110
+ * @public
111
+ */
112
+ export interface InvokeAgentRuntimeResponse {
113
+ /**
114
+ * <p>The identifier of the runtime session.</p>
115
+ * @public
116
+ */
117
+ runtimeSessionId?: string | undefined;
118
+ /**
119
+ * <p>The identifier of the MCP session.</p>
120
+ * @public
121
+ */
122
+ mcpSessionId?: string | undefined;
123
+ /**
124
+ * <p>The version of the MCP protocol being used.</p>
125
+ * @public
126
+ */
127
+ mcpProtocolVersion?: string | undefined;
128
+ /**
129
+ * <p>The trace identifier for request tracking.</p>
130
+ * @public
131
+ */
132
+ traceId?: string | undefined;
133
+ /**
134
+ * <p>The parent trace information for distributed tracing.</p>
135
+ * @public
136
+ */
137
+ traceParent?: string | undefined;
138
+ /**
139
+ * <p>The trace state information for distributed tracing.</p>
140
+ * @public
141
+ */
142
+ traceState?: string | undefined;
143
+ /**
144
+ * <p>Additional context information for distributed tracing.</p>
145
+ * @public
146
+ */
147
+ baggage?: string | undefined;
148
+ /**
149
+ * <p>The MIME type of the response data. This indicates how to interpret the response data. Common values include application/json for JSON data.</p>
150
+ * @public
151
+ */
152
+ contentType: string | undefined;
153
+ /**
154
+ * <p>The response data from the agent runtime. The format of this data depends on the specific agent configuration and the requested accept type. For most agents, this is a JSON object containing the agent's response to the user's request.</p>
155
+ * @public
156
+ */
157
+ response?: StreamingBlobTypes | undefined;
158
+ /**
159
+ * <p>The HTTP status code of the response. A status code of 200 indicates a successful operation. Other status codes indicate various error conditions.</p>
160
+ * @public
161
+ */
162
+ statusCode?: number | undefined;
163
+ }
164
+ /**
165
+ * <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
166
+ * @public
167
+ */
168
+ export declare class ResourceNotFoundException extends __BaseException {
169
+ readonly name: "ResourceNotFoundException";
170
+ readonly $fault: "client";
171
+ /**
172
+ * @internal
173
+ */
174
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
175
+ }
176
+ /**
177
+ * <p>The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.</p>
178
+ * @public
179
+ */
180
+ export declare class RuntimeClientError extends __BaseException {
181
+ readonly name: "RuntimeClientError";
182
+ readonly $fault: "client";
183
+ /**
184
+ * @internal
185
+ */
186
+ constructor(opts: __ExceptionOptionType<RuntimeClientError, __BaseException>);
187
+ }
188
+ /**
189
+ * <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
190
+ * @public
191
+ */
192
+ export declare class ServiceQuotaExceededException extends __BaseException {
193
+ readonly name: "ServiceQuotaExceededException";
194
+ readonly $fault: "client";
195
+ /**
196
+ * @internal
197
+ */
198
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
199
+ }
200
+ /**
201
+ * <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
202
+ * @public
203
+ */
204
+ export declare class ThrottlingException extends __BaseException {
205
+ readonly name: "ThrottlingException";
206
+ readonly $fault: "client";
207
+ /**
208
+ * @internal
209
+ */
210
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
211
+ }
212
+ /**
213
+ * <p>Stores information about a field passed inside a request that resulted in an exception.</p>
214
+ * @public
215
+ */
216
+ export interface ValidationExceptionField {
217
+ /**
218
+ * <p>The name of the field.</p>
219
+ * @public
220
+ */
221
+ name: string | undefined;
222
+ /**
223
+ * <p>A message describing why this field failed validation.</p>
224
+ * @public
225
+ */
226
+ message: string | undefined;
227
+ }
228
+ /**
229
+ * @public
230
+ * @enum
231
+ */
232
+ export declare const ValidationExceptionReason: {
233
+ readonly CANNOT_PARSE: "CannotParse";
234
+ readonly FIELD_VALIDATION_FAILED: "FieldValidationFailed";
235
+ readonly IDEMPOTENT_PARAMETER_MISMATCH_EXCEPTION: "IdempotentParameterMismatchException";
236
+ readonly RESOURCE_CONFLICT: "ResourceConflict";
237
+ readonly ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession";
238
+ };
239
+ /**
240
+ * @public
241
+ */
242
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
243
+ /**
244
+ * <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
245
+ * @public
246
+ */
247
+ export declare class ValidationException extends __BaseException {
248
+ readonly name: "ValidationException";
249
+ readonly $fault: "client";
250
+ reason: ValidationExceptionReason | undefined;
251
+ fieldList?: ValidationExceptionField[] | undefined;
252
+ /**
253
+ * @internal
254
+ */
255
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
256
+ }
257
+ /**
258
+ * @public
259
+ */
260
+ export interface GetBrowserSessionRequest {
261
+ /**
262
+ * <p>The unique identifier of the browser associated with the session.</p>
263
+ * @public
264
+ */
265
+ browserIdentifier: string | undefined;
266
+ /**
267
+ * <p>The unique identifier of the browser session to retrieve.</p>
268
+ * @public
269
+ */
270
+ sessionId: string | undefined;
271
+ }
272
+ /**
273
+ * @public
274
+ * @enum
275
+ */
276
+ export declare const BrowserSessionStatus: {
277
+ readonly READY: "READY";
278
+ readonly TERMINATED: "TERMINATED";
279
+ };
280
+ /**
281
+ * @public
282
+ */
283
+ export type BrowserSessionStatus = (typeof BrowserSessionStatus)[keyof typeof BrowserSessionStatus];
284
+ /**
285
+ * @public
286
+ * @enum
287
+ */
288
+ export declare const AutomationStreamStatus: {
289
+ readonly DISABLED: "DISABLED";
290
+ readonly ENABLED: "ENABLED";
291
+ };
292
+ /**
293
+ * @public
294
+ */
295
+ export type AutomationStreamStatus = (typeof AutomationStreamStatus)[keyof typeof AutomationStreamStatus];
296
+ /**
297
+ * <p>The configuration for a stream that enables programmatic control of a browser session in Amazon Bedrock. This stream provides a bidirectional communication channel for sending commands to the browser and receiving responses, allowing agents to automate web interactions such as navigation, form filling, and element clicking.</p>
298
+ * @public
299
+ */
300
+ export interface AutomationStream {
301
+ /**
302
+ * <p>The endpoint URL for the automation stream. This URL is used to establish a WebSocket connection to the stream for sending commands and receiving responses.</p>
303
+ * @public
304
+ */
305
+ streamEndpoint: string | undefined;
306
+ /**
307
+ * <p>The current status of the automation stream. This indicates whether the stream is available for use. Possible values include ACTIVE, CONNECTING, and DISCONNECTED.</p>
308
+ * @public
309
+ */
310
+ streamStatus: AutomationStreamStatus | undefined;
311
+ }
312
+ /**
313
+ * <p>The configuration for a stream that provides a visual representation of a browser session in Amazon Bedrock. This stream enables agents to observe the current state of the browser, including rendered web pages, visual elements, and the results of interactions.</p>
314
+ * @public
315
+ */
316
+ export interface LiveViewStream {
317
+ /**
318
+ * <p>The endpoint URL for the live view stream. This URL is used to establish a connection to receive visual updates from the browser session.</p>
319
+ * @public
320
+ */
321
+ streamEndpoint?: string | undefined;
322
+ }
323
+ /**
324
+ * <p>The collection of streams associated with a browser session in Amazon Bedrock. These streams provide different ways to interact with and observe the browser session, including programmatic control and visual representation of the browser content.</p>
325
+ * @public
326
+ */
327
+ export interface BrowserSessionStream {
328
+ /**
329
+ * <p>The stream that enables programmatic control of the browser. This stream allows agents to perform actions such as navigating to URLs, clicking elements, and filling forms.</p>
330
+ * @public
331
+ */
332
+ automationStream: AutomationStream | undefined;
333
+ /**
334
+ * <p>The stream that provides a visual representation of the browser content. This stream allows agents to observe the current state of the browser, including rendered web pages and visual elements.</p>
335
+ * @public
336
+ */
337
+ liveViewStream?: LiveViewStream | undefined;
338
+ }
339
+ /**
340
+ * <p>The configuration that defines the dimensions of a browser viewport in a browser session. The viewport determines the visible area of web content and affects how web pages are rendered and displayed. Proper viewport configuration ensures that web content is displayed correctly for the agent's browsing tasks.</p>
341
+ * @public
342
+ */
343
+ export interface ViewPort {
344
+ /**
345
+ * <p>The width of the viewport in pixels. This value determines the horizontal dimension of the visible area. Valid values range from 800 to 1920 pixels.</p>
346
+ * @public
347
+ */
348
+ width: number | undefined;
349
+ /**
350
+ * <p>The height of the viewport in pixels. This value determines the vertical dimension of the visible area. Valid values range from 600 to 1080 pixels.</p>
351
+ * @public
352
+ */
353
+ height: number | undefined;
354
+ }
355
+ /**
356
+ * @public
357
+ */
358
+ export interface GetBrowserSessionResponse {
359
+ /**
360
+ * <p>The identifier of the browser.</p>
361
+ * @public
362
+ */
363
+ browserIdentifier: string | undefined;
364
+ /**
365
+ * <p>The identifier of the browser session.</p>
366
+ * @public
367
+ */
368
+ sessionId: string | undefined;
369
+ /**
370
+ * <p>The name of the browser session.</p>
371
+ * @public
372
+ */
373
+ name?: string | undefined;
374
+ /**
375
+ * <p>The time at which the browser session was created.</p>
376
+ * @public
377
+ */
378
+ createdAt: Date | undefined;
379
+ /**
380
+ * <p>The configuration that defines the dimensions of a browser viewport in a browser session. The viewport determines the visible area of web content and affects how web pages are rendered and displayed. Proper viewport configuration ensures that web content is displayed correctly for the agent's browsing tasks.</p>
381
+ * @public
382
+ */
383
+ viewPort?: ViewPort | undefined;
384
+ /**
385
+ * <p>The timeout period for the browser session in seconds.</p>
386
+ * @public
387
+ */
388
+ sessionTimeoutSeconds?: number | undefined;
389
+ /**
390
+ * <p>The current status of the browser session. Possible values include ACTIVE, STOPPING, and STOPPED.</p>
391
+ * @public
392
+ */
393
+ status?: BrowserSessionStatus | undefined;
394
+ /**
395
+ * <p>The streams associated with this browser session. These include the automation stream and live view stream.</p>
396
+ * @public
397
+ */
398
+ streams?: BrowserSessionStream | undefined;
399
+ /**
400
+ * <p>The artifact containing the session replay information.</p>
401
+ * @public
402
+ */
403
+ sessionReplayArtifact?: string | undefined;
404
+ /**
405
+ * <p>The time at which the browser session was last updated.</p>
406
+ * @public
407
+ */
408
+ lastUpdatedAt?: Date | undefined;
409
+ }
410
+ /**
411
+ * @public
412
+ */
413
+ export interface ListBrowserSessionsRequest {
414
+ /**
415
+ * <p>The unique identifier of the browser to list sessions for. If specified, only sessions for this browser are returned. If not specified, sessions for all browsers are returned.</p>
416
+ * @public
417
+ */
418
+ browserIdentifier: string | undefined;
419
+ /**
420
+ * <p>The maximum number of results to return in a single call. The default value is 10. Valid values range from 1 to 100. To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
421
+ * @public
422
+ */
423
+ maxResults?: number | undefined;
424
+ /**
425
+ * <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. If not specified, Amazon Bedrock returns the first page of results.</p>
426
+ * @public
427
+ */
428
+ nextToken?: string | undefined;
429
+ /**
430
+ * <p>The status of the browser sessions to list. Valid values include ACTIVE, STOPPING, and STOPPED. If not specified, sessions with any status are returned.</p>
431
+ * @public
432
+ */
433
+ status?: BrowserSessionStatus | undefined;
434
+ }
435
+ /**
436
+ * <p>A condensed representation of a browser session in Amazon Bedrock. This structure contains key information about a browser session, including identifiers, status, and timestamps, without the full details of the session configuration and streams.</p>
437
+ * @public
438
+ */
439
+ export interface BrowserSessionSummary {
440
+ /**
441
+ * <p>The unique identifier of the browser associated with the session. This identifier specifies which browser environment is used for the session.</p>
442
+ * @public
443
+ */
444
+ browserIdentifier: string | undefined;
445
+ /**
446
+ * <p>The unique identifier of the browser session. This identifier is used in operations that interact with the session.</p>
447
+ * @public
448
+ */
449
+ sessionId: string | undefined;
450
+ /**
451
+ * <p>The name of the browser session. This name helps identify and manage the session.</p>
452
+ * @public
453
+ */
454
+ name?: string | undefined;
455
+ /**
456
+ * <p>The current status of the browser session. Possible values include ACTIVE, STOPPING, and STOPPED.</p>
457
+ * @public
458
+ */
459
+ status: BrowserSessionStatus | undefined;
460
+ /**
461
+ * <p>The timestamp when the browser session was created. This value is in ISO 8601 format.</p>
462
+ * @public
463
+ */
464
+ createdAt: Date | undefined;
465
+ /**
466
+ * <p>The timestamp when the browser session was last updated. This value is in ISO 8601 format.</p>
467
+ * @public
468
+ */
469
+ lastUpdatedAt?: Date | undefined;
470
+ }
471
+ /**
472
+ * @public
473
+ */
474
+ export interface ListBrowserSessionsResponse {
475
+ /**
476
+ * <p>The list of browser sessions that match the specified criteria.</p>
477
+ * @public
478
+ */
479
+ items: BrowserSessionSummary[] | undefined;
480
+ /**
481
+ * <p>The token to use in a subsequent <code>ListBrowserSessions</code> request to get the next set of results.</p>
482
+ * @public
483
+ */
484
+ nextToken?: string | undefined;
485
+ }
486
+ /**
487
+ * <p>The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.</p>
488
+ * @public
489
+ */
490
+ export declare class ConflictException extends __BaseException {
491
+ readonly name: "ConflictException";
492
+ readonly $fault: "client";
493
+ /**
494
+ * @internal
495
+ */
496
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
497
+ }
498
+ /**
499
+ * @public
500
+ */
501
+ export interface StartBrowserSessionRequest {
502
+ /**
503
+ * <p>The unique identifier of the browser to use for this session. This identifier specifies which browser environment to initialize for the session.</p>
504
+ * @public
505
+ */
506
+ browserIdentifier: string | undefined;
507
+ /**
508
+ * <p>The name of the browser session. This name helps you identify and manage the session. The name does not need to be unique.</p>
509
+ * @public
510
+ */
511
+ name?: string | undefined;
512
+ /**
513
+ * <p>The time in seconds after which the session automatically terminates if there is no activity. The default value is 3600 seconds (1 hour). The minimum allowed value is 60 seconds, and the maximum allowed value is 28800 seconds (8 hours).</p>
514
+ * @public
515
+ */
516
+ sessionTimeoutSeconds?: number | undefined;
517
+ /**
518
+ * <p>The dimensions of the browser viewport for this session. This determines the visible area of the web content and affects how web pages are rendered. If not specified, Amazon Bedrock uses a default viewport size.</p>
519
+ * @public
520
+ */
521
+ viewPort?: ViewPort | undefined;
522
+ /**
523
+ * <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. This parameter helps prevent the creation of duplicate sessions if there are temporary network issues.</p>
524
+ * @public
525
+ */
526
+ clientToken?: string | undefined;
527
+ }
528
+ /**
529
+ * @public
530
+ */
531
+ export interface StartBrowserSessionResponse {
532
+ /**
533
+ * <p>The identifier of the browser.</p>
534
+ * @public
535
+ */
536
+ browserIdentifier: string | undefined;
537
+ /**
538
+ * <p>The unique identifier of the created browser session.</p>
539
+ * @public
540
+ */
541
+ sessionId: string | undefined;
542
+ /**
543
+ * <p>The timestamp when the browser session was created.</p>
544
+ * @public
545
+ */
546
+ createdAt: Date | undefined;
547
+ /**
548
+ * <p>The streams associated with this browser session. These include the automation stream and live view stream.</p>
549
+ * @public
550
+ */
551
+ streams?: BrowserSessionStream | undefined;
552
+ }
553
+ /**
554
+ * @public
555
+ */
556
+ export interface StopBrowserSessionRequest {
557
+ /**
558
+ * <p>The unique identifier of the browser associated with the session.</p>
559
+ * @public
560
+ */
561
+ browserIdentifier: string | undefined;
562
+ /**
563
+ * <p>The unique identifier of the browser session to stop.</p>
564
+ * @public
565
+ */
566
+ sessionId: string | undefined;
567
+ /**
568
+ * <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.</p>
569
+ * @public
570
+ */
571
+ clientToken?: string | undefined;
572
+ }
573
+ /**
574
+ * @public
575
+ */
576
+ export interface StopBrowserSessionResponse {
577
+ /**
578
+ * <p>The identifier of the browser.</p>
579
+ * @public
580
+ */
581
+ browserIdentifier: string | undefined;
582
+ /**
583
+ * <p>The identifier of the browser session.</p>
584
+ * @public
585
+ */
586
+ sessionId: string | undefined;
587
+ /**
588
+ * <p>The time at which the browser session was last updated.</p>
589
+ * @public
590
+ */
591
+ lastUpdatedAt: Date | undefined;
592
+ }
593
+ /**
594
+ * <p>Contains information about an update to an automation stream.</p>
595
+ * @public
596
+ */
597
+ export interface AutomationStreamUpdate {
598
+ /**
599
+ * <p>The status of the automation stream.</p>
600
+ * @public
601
+ */
602
+ streamStatus?: AutomationStreamStatus | undefined;
603
+ }
604
+ /**
605
+ * <p>Contains information about an update to a stream.</p>
606
+ * @public
607
+ */
608
+ export type StreamUpdate = StreamUpdate.AutomationStreamUpdateMember | StreamUpdate.$UnknownMember;
609
+ /**
610
+ * @public
611
+ */
612
+ export declare namespace StreamUpdate {
613
+ /**
614
+ * <p>The update to an automation stream.</p>
615
+ * @public
616
+ */
617
+ interface AutomationStreamUpdateMember {
618
+ automationStreamUpdate: AutomationStreamUpdate;
619
+ $unknown?: never;
620
+ }
621
+ /**
622
+ * @public
623
+ */
624
+ interface $UnknownMember {
625
+ automationStreamUpdate?: never;
626
+ $unknown: [string, any];
627
+ }
628
+ interface Visitor<T> {
629
+ automationStreamUpdate: (value: AutomationStreamUpdate) => T;
630
+ _: (name: string, value: any) => T;
631
+ }
632
+ const visit: <T>(value: StreamUpdate, visitor: Visitor<T>) => T;
633
+ }
634
+ /**
635
+ * @public
636
+ */
637
+ export interface UpdateBrowserStreamRequest {
638
+ /**
639
+ * <p>The identifier of the browser.</p>
640
+ * @public
641
+ */
642
+ browserIdentifier: string | undefined;
643
+ /**
644
+ * <p>The identifier of the browser session.</p>
645
+ * @public
646
+ */
647
+ sessionId: string | undefined;
648
+ /**
649
+ * <p>The update to apply to the browser stream.</p>
650
+ * @public
651
+ */
652
+ streamUpdate: StreamUpdate | undefined;
653
+ /**
654
+ * <p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.</p>
655
+ * @public
656
+ */
657
+ clientToken?: string | undefined;
658
+ }
659
+ /**
660
+ * @public
661
+ */
662
+ export interface UpdateBrowserStreamResponse {
663
+ /**
664
+ * <p>The identifier of the browser.</p>
665
+ * @public
666
+ */
667
+ browserIdentifier: string | undefined;
668
+ /**
669
+ * <p>The identifier of the browser session.</p>
670
+ * @public
671
+ */
672
+ sessionId: string | undefined;
673
+ /**
674
+ * <p>The collection of streams associated with a browser session in Amazon Bedrock. These streams provide different ways to interact with and observe the browser session, including programmatic control and visual representation of the browser content.</p>
675
+ * @public
676
+ */
677
+ streams: BrowserSessionStream | undefined;
678
+ /**
679
+ * <p>The time at which the browser stream was updated.</p>
680
+ * @public
681
+ */
682
+ updatedAt: Date | undefined;
683
+ }
684
+ /**
685
+ * @public
686
+ */
687
+ export interface GetCodeInterpreterSessionRequest {
688
+ /**
689
+ * <p>The unique identifier of the code interpreter associated with the session.</p>
690
+ * @public
691
+ */
692
+ codeInterpreterIdentifier: string | undefined;
693
+ /**
694
+ * <p>The unique identifier of the code interpreter session to retrieve.</p>
695
+ * @public
696
+ */
697
+ sessionId: string | undefined;
698
+ }
699
+ /**
700
+ * @public
701
+ * @enum
702
+ */
703
+ export declare const CodeInterpreterSessionStatus: {
704
+ readonly READY: "READY";
705
+ readonly TERMINATED: "TERMINATED";
706
+ };
707
+ /**
708
+ * @public
709
+ */
710
+ export type CodeInterpreterSessionStatus = (typeof CodeInterpreterSessionStatus)[keyof typeof CodeInterpreterSessionStatus];
711
+ /**
712
+ * @public
713
+ */
714
+ export interface GetCodeInterpreterSessionResponse {
715
+ /**
716
+ * <p>The identifier of the code interpreter.</p>
717
+ * @public
718
+ */
719
+ codeInterpreterIdentifier: string | undefined;
720
+ /**
721
+ * <p>The identifier of the code interpreter session.</p>
722
+ * @public
723
+ */
724
+ sessionId: string | undefined;
725
+ /**
726
+ * <p>The name of the code interpreter session.</p>
727
+ * @public
728
+ */
729
+ name?: string | undefined;
730
+ /**
731
+ * <p>The time at which the code interpreter session was created.</p>
732
+ * @public
733
+ */
734
+ createdAt: Date | undefined;
735
+ /**
736
+ * <p>The timeout period for the code interpreter session in seconds.</p>
737
+ * @public
738
+ */
739
+ sessionTimeoutSeconds?: number | undefined;
740
+ /**
741
+ * <p>The current status of the code interpreter session. Possible values include ACTIVE, STOPPING, and STOPPED.</p>
742
+ * @public
743
+ */
744
+ status?: CodeInterpreterSessionStatus | undefined;
745
+ }
746
+ /**
747
+ * @public
748
+ */
749
+ export interface ListCodeInterpreterSessionsRequest {
750
+ /**
751
+ * <p>The unique identifier of the code interpreter to list sessions for. If specified, only sessions for this code interpreter are returned. If not specified, sessions for all code interpreters are returned.</p>
752
+ * @public
753
+ */
754
+ codeInterpreterIdentifier: string | undefined;
755
+ /**
756
+ * <p>The maximum number of results to return in a single call. The default value is 10. Valid values range from 1 to 100. To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
757
+ * @public
758
+ */
759
+ maxResults?: number | undefined;
760
+ /**
761
+ * <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results. If not specified, Amazon Bedrock returns the first page of results.</p>
762
+ * @public
763
+ */
764
+ nextToken?: string | undefined;
765
+ /**
766
+ * <p>The status of the code interpreter sessions to list. Valid values include ACTIVE, STOPPING, and STOPPED. If not specified, sessions with any status are returned.</p>
767
+ * @public
768
+ */
769
+ status?: CodeInterpreterSessionStatus | undefined;
770
+ }
771
+ /**
772
+ * <p>A condensed representation of a code interpreter session in Amazon Bedrock. This structure contains key information about a code interpreter session, including identifiers, status, and timestamps, without the full details of the session configuration.</p>
773
+ * @public
774
+ */
775
+ export interface CodeInterpreterSessionSummary {
776
+ /**
777
+ * <p>The unique identifier of the code interpreter associated with the session. This identifier specifies which code interpreter environment is used for the session.</p>
778
+ * @public
779
+ */
780
+ codeInterpreterIdentifier: string | undefined;
781
+ /**
782
+ * <p>The unique identifier of the code interpreter session. This identifier is used in operations that interact with the session.</p>
783
+ * @public
784
+ */
785
+ sessionId: string | undefined;
786
+ /**
787
+ * <p>The name of the code interpreter session. This name helps identify and manage the session.</p>
788
+ * @public
789
+ */
790
+ name?: string | undefined;
791
+ /**
792
+ * <p>The current status of the code interpreter session. Possible values include ACTIVE, STOPPING, and STOPPED.</p>
793
+ * @public
794
+ */
795
+ status: CodeInterpreterSessionStatus | undefined;
796
+ /**
797
+ * <p>The timestamp when the code interpreter session was created. This value is in ISO 8601 format.</p>
798
+ * @public
799
+ */
800
+ createdAt: Date | undefined;
801
+ /**
802
+ * <p>The timestamp when the code interpreter session was last updated. This value is in ISO 8601 format.</p>
803
+ * @public
804
+ */
805
+ lastUpdatedAt?: Date | undefined;
806
+ }
807
+ /**
808
+ * @public
809
+ */
810
+ export interface ListCodeInterpreterSessionsResponse {
811
+ /**
812
+ * <p>The list of code interpreter sessions that match the specified criteria.</p>
813
+ * @public
814
+ */
815
+ items: CodeInterpreterSessionSummary[] | undefined;
816
+ /**
817
+ * <p>The token to use in a subsequent <code>ListCodeInterpreterSessions</code> request to get the next set of results.</p>
818
+ * @public
819
+ */
820
+ nextToken?: string | undefined;
821
+ }
822
+ /**
823
+ * @public
824
+ */
825
+ export interface StartCodeInterpreterSessionRequest {
826
+ /**
827
+ * <p>The unique identifier of the code interpreter to use for this session. This identifier specifies which code interpreter environment to initialize for the session.</p>
828
+ * @public
829
+ */
830
+ codeInterpreterIdentifier: string | undefined;
831
+ /**
832
+ * <p>The name of the code interpreter session. This name helps you identify and manage the session. The name does not need to be unique.</p>
833
+ * @public
834
+ */
835
+ name?: string | undefined;
836
+ /**
837
+ * <p>The time in seconds after which the session automatically terminates if there is no activity. The default value is 3600 seconds (1 hour). The minimum allowed value is 60 seconds, and the maximum allowed value is 28800 seconds (8 hours).</p>
838
+ * @public
839
+ */
840
+ sessionTimeoutSeconds?: number | undefined;
841
+ /**
842
+ * <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. This parameter helps prevent the creation of duplicate sessions if there are temporary network issues.</p>
843
+ * @public
844
+ */
845
+ clientToken?: string | undefined;
846
+ }
847
+ /**
848
+ * @public
849
+ */
850
+ export interface StartCodeInterpreterSessionResponse {
851
+ /**
852
+ * <p>The identifier of the code interpreter.</p>
853
+ * @public
854
+ */
855
+ codeInterpreterIdentifier: string | undefined;
856
+ /**
857
+ * <p>The unique identifier of the created code interpreter session.</p>
858
+ * @public
859
+ */
860
+ sessionId: string | undefined;
861
+ /**
862
+ * <p>The time at which the code interpreter session was created.</p>
863
+ * @public
864
+ */
865
+ createdAt: Date | undefined;
866
+ }
867
+ /**
868
+ * @public
869
+ */
870
+ export interface StopCodeInterpreterSessionRequest {
871
+ /**
872
+ * <p>The unique identifier of the code interpreter associated with the session.</p>
873
+ * @public
874
+ */
875
+ codeInterpreterIdentifier: string | undefined;
876
+ /**
877
+ * <p>The unique identifier of the code interpreter session to stop.</p>
878
+ * @public
879
+ */
880
+ sessionId: string | undefined;
881
+ /**
882
+ * <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.</p>
883
+ * @public
884
+ */
885
+ clientToken?: string | undefined;
886
+ }
887
+ /**
888
+ * @public
889
+ */
890
+ export interface StopCodeInterpreterSessionResponse {
891
+ /**
892
+ * <p>The identifier of the code interpreter.</p>
893
+ * @public
894
+ */
895
+ codeInterpreterIdentifier: string | undefined;
896
+ /**
897
+ * <p>The identifier of the code interpreter session.</p>
898
+ * @public
899
+ */
900
+ sessionId: string | undefined;
901
+ /**
902
+ * <p>The timestamp when the code interpreter session was last updated.</p>
903
+ * @public
904
+ */
905
+ lastUpdatedAt: Date | undefined;
906
+ }
907
+ /**
908
+ * @public
909
+ */
910
+ export interface GetResourceApiKeyRequest {
911
+ /**
912
+ * <p>The identity token of the workload you want to get the API Key of.</p>
913
+ * @public
914
+ */
915
+ workloadIdentityToken: string | undefined;
916
+ /**
917
+ * <p>The credential provider name of the resource you are retrieving the API Key of.</p>
918
+ * @public
919
+ */
920
+ resourceCredentialProviderName: string | undefined;
921
+ }
922
+ /**
923
+ * @public
924
+ */
925
+ export interface GetResourceApiKeyResponse {
926
+ /**
927
+ * <p>The API Key associated with the resource requested.</p>
928
+ * @public
929
+ */
930
+ apiKey: string | undefined;
931
+ }
932
+ /**
933
+ * <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
934
+ * @public
935
+ */
936
+ export declare class UnauthorizedException extends __BaseException {
937
+ readonly name: "UnauthorizedException";
938
+ readonly $fault: "client";
939
+ /**
940
+ * @internal
941
+ */
942
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
943
+ }
944
+ /**
945
+ * @public
946
+ * @enum
947
+ */
948
+ export declare const Oauth2FlowType: {
949
+ readonly M2M: "M2M";
950
+ readonly USER_FEDERATION: "USER_FEDERATION";
951
+ };
952
+ /**
953
+ * @public
954
+ */
955
+ export type Oauth2FlowType = (typeof Oauth2FlowType)[keyof typeof Oauth2FlowType];
956
+ /**
957
+ * @public
958
+ */
959
+ export interface GetResourceOauth2TokenRequest {
960
+ /**
961
+ * <p>The identity token of the workload you want to retrive the Oauth2 Token of.</p>
962
+ * @public
963
+ */
964
+ workloadIdentityToken: string | undefined;
965
+ /**
966
+ * <p>The user ID of the user you're retrieving the token on behalf of.</p>
967
+ * @public
968
+ */
969
+ userId?: string | undefined;
970
+ /**
971
+ * <p>Reference to the credential provider</p>
972
+ * @public
973
+ */
974
+ resourceCredentialProviderName: string | undefined;
975
+ /**
976
+ * <p>The OAuth scopes requested</p>
977
+ * @public
978
+ */
979
+ scopes: string[] | undefined;
980
+ /**
981
+ * <p>The type of flow to be performed</p>
982
+ * @public
983
+ */
984
+ oauth2Flow: Oauth2FlowType | undefined;
985
+ /**
986
+ * <p>Callback url to redirect after token retrieval completes. Should be one of the provideded urls during WorkloadIdentity creation</p>
987
+ * @public
988
+ */
989
+ resourceOauth2ReturnUrl?: string | undefined;
990
+ /**
991
+ * <p>If true, always initiate a new 3LO flow</p>
992
+ * @public
993
+ */
994
+ forceAuthentication?: boolean | undefined;
995
+ /**
996
+ * <p>Gives the ability to send extra/custom parameters to the resource credentials provider during the authorization process. Standard OAuth2 flow parameters will not be overriden.</p>
997
+ * @public
998
+ */
999
+ customParameters?: Record<string, string> | undefined;
1000
+ }
1001
+ /**
1002
+ * @public
1003
+ */
1004
+ export interface GetResourceOauth2TokenResponse {
1005
+ /**
1006
+ * <p>The URL for the authorization process, provided if the Access token requires user Authorization.</p>
1007
+ * @public
1008
+ */
1009
+ authorizationUrl?: string | undefined;
1010
+ /**
1011
+ * <p>OAuth2 token ready for use</p>
1012
+ * @public
1013
+ */
1014
+ accessToken?: string | undefined;
1015
+ }
1016
+ /**
1017
+ * @public
1018
+ */
1019
+ export interface GetWorkloadAccessTokenRequest {
1020
+ /**
1021
+ * <p>Unique identifier for the registered agent</p>
1022
+ * @public
1023
+ */
1024
+ workloadName: string | undefined;
1025
+ }
1026
+ /**
1027
+ * @public
1028
+ */
1029
+ export interface GetWorkloadAccessTokenResponse {
1030
+ /**
1031
+ * <p>Opaque token representing both agent and user identity</p>
1032
+ * @public
1033
+ */
1034
+ workloadAccessToken: string | undefined;
1035
+ }
1036
+ /**
1037
+ * @public
1038
+ */
1039
+ export interface GetWorkloadAccessTokenForJWTRequest {
1040
+ /**
1041
+ * <p>Unique identifier for the registered agent</p>
1042
+ * @public
1043
+ */
1044
+ workloadName: string | undefined;
1045
+ /**
1046
+ * <p>OAuth2 token issued by the user's identity provider</p>
1047
+ * @public
1048
+ */
1049
+ userToken: string | undefined;
1050
+ }
1051
+ /**
1052
+ * @public
1053
+ */
1054
+ export interface GetWorkloadAccessTokenForJWTResponse {
1055
+ /**
1056
+ * <p>Opaque token representing both agent and user identity</p>
1057
+ * @public
1058
+ */
1059
+ workloadAccessToken: string | undefined;
1060
+ }
1061
+ /**
1062
+ * @public
1063
+ */
1064
+ export interface GetWorkloadAccessTokenForUserIdRequest {
1065
+ /**
1066
+ * <p>The name of the worklaod you want to get the access token of.</p>
1067
+ * @public
1068
+ */
1069
+ workloadName: string | undefined;
1070
+ /**
1071
+ * <p>The user id of the user you are retrieving the access token for.</p>
1072
+ * @public
1073
+ */
1074
+ userId: string | undefined;
1075
+ }
1076
+ /**
1077
+ * @public
1078
+ */
1079
+ export interface GetWorkloadAccessTokenForUserIdResponse {
1080
+ /**
1081
+ * <p>The workload access token of the named workload.</p>
1082
+ * @public
1083
+ */
1084
+ workloadAccessToken: string | undefined;
1085
+ }
1086
+ /**
1087
+ * <p>A block of input content.</p>
1088
+ * @public
1089
+ */
1090
+ export interface InputContentBlock {
1091
+ /**
1092
+ * <p>The path to the input content.</p>
1093
+ * @public
1094
+ */
1095
+ path: string | undefined;
1096
+ /**
1097
+ * <p>The text input content.</p>
1098
+ * @public
1099
+ */
1100
+ text?: string | undefined;
1101
+ /**
1102
+ * <p>The binary input content.</p>
1103
+ * @public
1104
+ */
1105
+ blob?: Uint8Array | undefined;
1106
+ }
1107
+ /**
1108
+ * @public
1109
+ * @enum
1110
+ */
1111
+ export declare const ProgrammingLanguage: {
1112
+ readonly JAVASCRIPT: "javascript";
1113
+ readonly PYTHON: "python";
1114
+ readonly TYPESCRIPT: "typescript";
1115
+ };
1116
+ /**
1117
+ * @public
1118
+ */
1119
+ export type ProgrammingLanguage = (typeof ProgrammingLanguage)[keyof typeof ProgrammingLanguage];
1120
+ /**
1121
+ * <p>The collection of arguments that specify the operation to perform and its parameters when invoking a tool in Amazon Bedrock. Different tools require different arguments, and this structure provides a flexible way to pass the appropriate arguments to each tool type.</p>
1122
+ * @public
1123
+ */
1124
+ export interface ToolArguments {
1125
+ /**
1126
+ * <p>The code to execute in a code interpreter session. This is the source code in the specified programming language that will be executed by the code interpreter.</p>
1127
+ * @public
1128
+ */
1129
+ code?: string | undefined;
1130
+ /**
1131
+ * <p>The programming language of the code to execute. This tells the code interpreter which language runtime to use for execution. Common values include 'python', 'javascript', and 'r'.</p>
1132
+ * @public
1133
+ */
1134
+ language?: ProgrammingLanguage | undefined;
1135
+ /**
1136
+ * <p>Whether to clear the context for the tool.</p>
1137
+ * @public
1138
+ */
1139
+ clearContext?: boolean | undefined;
1140
+ /**
1141
+ * <p>The command to execute with the tool.</p>
1142
+ * @public
1143
+ */
1144
+ command?: string | undefined;
1145
+ /**
1146
+ * <p>The path for the tool operation.</p>
1147
+ * @public
1148
+ */
1149
+ path?: string | undefined;
1150
+ /**
1151
+ * <p>The paths for the tool operation.</p>
1152
+ * @public
1153
+ */
1154
+ paths?: string[] | undefined;
1155
+ /**
1156
+ * <p>The content for the tool operation.</p>
1157
+ * @public
1158
+ */
1159
+ content?: InputContentBlock[] | undefined;
1160
+ /**
1161
+ * <p>The directory path for the tool operation.</p>
1162
+ * @public
1163
+ */
1164
+ directoryPath?: string | undefined;
1165
+ /**
1166
+ * <p>The identifier of the task for the tool operation.</p>
1167
+ * @public
1168
+ */
1169
+ taskId?: string | undefined;
1170
+ }
1171
+ /**
1172
+ * @public
1173
+ * @enum
1174
+ */
1175
+ export declare const ToolName: {
1176
+ readonly EXECUTE_CODE: "executeCode";
1177
+ readonly EXECUTE_COMMAND: "executeCommand";
1178
+ readonly GET_TASK: "getTask";
1179
+ readonly LIST_FILES: "listFiles";
1180
+ readonly READ_FILES: "readFiles";
1181
+ readonly REMOVE_FILES: "removeFiles";
1182
+ readonly START_COMMAND_EXECUTION: "startCommandExecution";
1183
+ readonly STOP_TASK: "stopTask";
1184
+ readonly WRITE_FILES: "writeFiles";
1185
+ };
1186
+ /**
1187
+ * @public
1188
+ */
1189
+ export type ToolName = (typeof ToolName)[keyof typeof ToolName];
1190
+ /**
1191
+ * @public
1192
+ */
1193
+ export interface InvokeCodeInterpreterRequest {
1194
+ /**
1195
+ * <p>The unique identifier of the code interpreter associated with the session. This must match the identifier used when creating the session with <code>StartCodeInterpreterSession</code>.</p>
1196
+ * @public
1197
+ */
1198
+ codeInterpreterIdentifier: string | undefined;
1199
+ /**
1200
+ * <p>The unique identifier of the code interpreter session to use. This must be an active session created with <code>StartCodeInterpreterSession</code>. If the session has expired or been stopped, the request will fail.</p>
1201
+ * @public
1202
+ */
1203
+ sessionId?: string | undefined;
1204
+ /**
1205
+ * <p>The name of the code interpreter to invoke.</p>
1206
+ * @public
1207
+ */
1208
+ name: ToolName | undefined;
1209
+ /**
1210
+ * <p>The arguments for the code interpreter. This includes the code to execute and any additional parameters such as the programming language, whether to clear the execution context, and other execution options. The structure of this parameter depends on the specific code interpreter being used.</p>
1211
+ * @public
1212
+ */
1213
+ arguments?: ToolArguments | undefined;
1214
+ }
1215
+ /**
1216
+ * @public
1217
+ * @enum
1218
+ */
1219
+ export declare const ResourceContentType: {
1220
+ readonly BLOB: "blob";
1221
+ readonly TEXT: "text";
1222
+ };
1223
+ /**
1224
+ * @public
1225
+ */
1226
+ export type ResourceContentType = (typeof ResourceContentType)[keyof typeof ResourceContentType];
1227
+ /**
1228
+ * <p>Contains information about resource content.</p>
1229
+ * @public
1230
+ */
1231
+ export interface ResourceContent {
1232
+ /**
1233
+ * <p>The type of resource content.</p>
1234
+ * @public
1235
+ */
1236
+ type: ResourceContentType | undefined;
1237
+ /**
1238
+ * <p>The URI of the resource content.</p>
1239
+ * @public
1240
+ */
1241
+ uri?: string | undefined;
1242
+ /**
1243
+ * <p>The MIME type of the resource content.</p>
1244
+ * @public
1245
+ */
1246
+ mimeType?: string | undefined;
1247
+ /**
1248
+ * <p>The text resource content.</p>
1249
+ * @public
1250
+ */
1251
+ text?: string | undefined;
1252
+ /**
1253
+ * <p>The binary resource content.</p>
1254
+ * @public
1255
+ */
1256
+ blob?: Uint8Array | undefined;
1257
+ }
1258
+ /**
1259
+ * @public
1260
+ * @enum
1261
+ */
1262
+ export declare const ContentBlockType: {
1263
+ readonly EMBEDDED_RESOURCE: "resource";
1264
+ readonly IMAGE: "image";
1265
+ readonly RESOURCE_LINK: "resource_link";
1266
+ readonly TEXT: "text";
1267
+ };
1268
+ /**
1269
+ * @public
1270
+ */
1271
+ export type ContentBlockType = (typeof ContentBlockType)[keyof typeof ContentBlockType];
1272
+ /**
1273
+ * <p>A block of content in a response.</p>
1274
+ * @public
1275
+ */
1276
+ export interface ContentBlock {
1277
+ /**
1278
+ * <p>The type of content in the block.</p>
1279
+ * @public
1280
+ */
1281
+ type: ContentBlockType | undefined;
1282
+ /**
1283
+ * <p>The text content of the block.</p>
1284
+ * @public
1285
+ */
1286
+ text?: string | undefined;
1287
+ /**
1288
+ * <p>The binary data content of the block.</p>
1289
+ * @public
1290
+ */
1291
+ data?: Uint8Array | undefined;
1292
+ /**
1293
+ * <p>The MIME type of the content.</p>
1294
+ * @public
1295
+ */
1296
+ mimeType?: string | undefined;
1297
+ /**
1298
+ * <p>The URI of the content.</p>
1299
+ * @public
1300
+ */
1301
+ uri?: string | undefined;
1302
+ /**
1303
+ * <p>The name of the content block.</p>
1304
+ * @public
1305
+ */
1306
+ name?: string | undefined;
1307
+ /**
1308
+ * <p>The description of the content block.</p>
1309
+ * @public
1310
+ */
1311
+ description?: string | undefined;
1312
+ /**
1313
+ * <p>The size of the content in bytes.</p>
1314
+ * @public
1315
+ */
1316
+ size?: number | undefined;
1317
+ /**
1318
+ * <p>The resource associated with the content block.</p>
1319
+ * @public
1320
+ */
1321
+ resource?: ResourceContent | undefined;
1322
+ }
1323
+ /**
1324
+ * @public
1325
+ * @enum
1326
+ */
1327
+ export declare const TaskStatus: {
1328
+ readonly CANCELED: "canceled";
1329
+ readonly COMPLETED: "completed";
1330
+ readonly FAILED: "failed";
1331
+ readonly SUBMITTED: "submitted";
1332
+ readonly WORKING: "working";
1333
+ };
1334
+ /**
1335
+ * @public
1336
+ */
1337
+ export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus];
1338
+ /**
1339
+ * <p>Contains structured content from a tool result.</p>
1340
+ * @public
1341
+ */
1342
+ export interface ToolResultStructuredContent {
1343
+ /**
1344
+ * <p>The identifier of the task that produced the result.</p>
1345
+ * @public
1346
+ */
1347
+ taskId?: string | undefined;
1348
+ /**
1349
+ * <p>The status of the task that produced the result.</p>
1350
+ * @public
1351
+ */
1352
+ taskStatus?: TaskStatus | undefined;
1353
+ /**
1354
+ * <p>The standard output from the tool execution.</p>
1355
+ * @public
1356
+ */
1357
+ stdout?: string | undefined;
1358
+ /**
1359
+ * <p>The standard error output from the tool execution.</p>
1360
+ * @public
1361
+ */
1362
+ stderr?: string | undefined;
1363
+ /**
1364
+ * <p>The exit code from the tool execution.</p>
1365
+ * @public
1366
+ */
1367
+ exitCode?: number | undefined;
1368
+ /**
1369
+ * <p>The execution time of the tool operation in milliseconds.</p>
1370
+ * @public
1371
+ */
1372
+ executionTime?: number | undefined;
1373
+ }
1374
+ /**
1375
+ * <p>The output produced by executing code in a code interpreter session in Amazon Bedrock. This structure contains the results of code execution, including textual output, structured data, and error information. Agents use these results to generate responses that incorporate computation, data analysis, and visualization.</p>
1376
+ * @public
1377
+ */
1378
+ export interface CodeInterpreterResult {
1379
+ /**
1380
+ * <p>The textual content of the execution result. This includes standard output from the code execution, such as print statements, console output, and text representations of results.</p>
1381
+ * @public
1382
+ */
1383
+ content: ContentBlock[] | undefined;
1384
+ /**
1385
+ * <p>The structured content of the execution result. This includes additional metadata about the execution, such as execution time, memory usage, and structured representations of output data. The format depends on the specific code interpreter and execution context.</p>
1386
+ * @public
1387
+ */
1388
+ structuredContent?: ToolResultStructuredContent | undefined;
1389
+ /**
1390
+ * <p>Indicates whether the result represents an error. If true, the content contains error messages or exception information. If false, the content contains successful execution results.</p>
1391
+ * @public
1392
+ */
1393
+ isError?: boolean | undefined;
1394
+ }
1395
+ /**
1396
+ * <p>Contains output from a code interpreter stream.</p>
1397
+ * @public
1398
+ */
1399
+ export type CodeInterpreterStreamOutput = CodeInterpreterStreamOutput.AccessDeniedExceptionMember | CodeInterpreterStreamOutput.ConflictExceptionMember | CodeInterpreterStreamOutput.InternalServerExceptionMember | CodeInterpreterStreamOutput.ResourceNotFoundExceptionMember | CodeInterpreterStreamOutput.ResultMember | CodeInterpreterStreamOutput.ServiceQuotaExceededExceptionMember | CodeInterpreterStreamOutput.ThrottlingExceptionMember | CodeInterpreterStreamOutput.ValidationExceptionMember | CodeInterpreterStreamOutput.$UnknownMember;
1400
+ /**
1401
+ * @public
1402
+ */
1403
+ export declare namespace CodeInterpreterStreamOutput {
1404
+ /**
1405
+ * <p>The output produced by executing code in a code interpreter session in Amazon Bedrock. This structure contains the results of code execution, including textual output, structured data, and error information. Agents use these results to generate responses that incorporate computation, data analysis, and visualization.</p>
1406
+ * @public
1407
+ */
1408
+ interface ResultMember {
1409
+ result: CodeInterpreterResult;
1410
+ accessDeniedException?: never;
1411
+ conflictException?: never;
1412
+ internalServerException?: never;
1413
+ resourceNotFoundException?: never;
1414
+ serviceQuotaExceededException?: never;
1415
+ throttlingException?: never;
1416
+ validationException?: never;
1417
+ $unknown?: never;
1418
+ }
1419
+ /**
1420
+ * <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
1421
+ * @public
1422
+ */
1423
+ interface AccessDeniedExceptionMember {
1424
+ result?: never;
1425
+ accessDeniedException: AccessDeniedException;
1426
+ conflictException?: never;
1427
+ internalServerException?: never;
1428
+ resourceNotFoundException?: never;
1429
+ serviceQuotaExceededException?: never;
1430
+ throttlingException?: never;
1431
+ validationException?: never;
1432
+ $unknown?: never;
1433
+ }
1434
+ /**
1435
+ * <p>The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.</p>
1436
+ * @public
1437
+ */
1438
+ interface ConflictExceptionMember {
1439
+ result?: never;
1440
+ accessDeniedException?: never;
1441
+ conflictException: ConflictException;
1442
+ internalServerException?: never;
1443
+ resourceNotFoundException?: never;
1444
+ serviceQuotaExceededException?: never;
1445
+ throttlingException?: never;
1446
+ validationException?: never;
1447
+ $unknown?: never;
1448
+ }
1449
+ /**
1450
+ * <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
1451
+ * @public
1452
+ */
1453
+ interface InternalServerExceptionMember {
1454
+ result?: never;
1455
+ accessDeniedException?: never;
1456
+ conflictException?: never;
1457
+ internalServerException: InternalServerException;
1458
+ resourceNotFoundException?: never;
1459
+ serviceQuotaExceededException?: never;
1460
+ throttlingException?: never;
1461
+ validationException?: never;
1462
+ $unknown?: never;
1463
+ }
1464
+ /**
1465
+ * <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
1466
+ * @public
1467
+ */
1468
+ interface ResourceNotFoundExceptionMember {
1469
+ result?: never;
1470
+ accessDeniedException?: never;
1471
+ conflictException?: never;
1472
+ internalServerException?: never;
1473
+ resourceNotFoundException: ResourceNotFoundException;
1474
+ serviceQuotaExceededException?: never;
1475
+ throttlingException?: never;
1476
+ validationException?: never;
1477
+ $unknown?: never;
1478
+ }
1479
+ /**
1480
+ * <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
1481
+ * @public
1482
+ */
1483
+ interface ServiceQuotaExceededExceptionMember {
1484
+ result?: never;
1485
+ accessDeniedException?: never;
1486
+ conflictException?: never;
1487
+ internalServerException?: never;
1488
+ resourceNotFoundException?: never;
1489
+ serviceQuotaExceededException: ServiceQuotaExceededException;
1490
+ throttlingException?: never;
1491
+ validationException?: never;
1492
+ $unknown?: never;
1493
+ }
1494
+ /**
1495
+ * <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
1496
+ * @public
1497
+ */
1498
+ interface ThrottlingExceptionMember {
1499
+ result?: never;
1500
+ accessDeniedException?: never;
1501
+ conflictException?: never;
1502
+ internalServerException?: never;
1503
+ resourceNotFoundException?: never;
1504
+ serviceQuotaExceededException?: never;
1505
+ throttlingException: ThrottlingException;
1506
+ validationException?: never;
1507
+ $unknown?: never;
1508
+ }
1509
+ /**
1510
+ * <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
1511
+ * @public
1512
+ */
1513
+ interface ValidationExceptionMember {
1514
+ result?: never;
1515
+ accessDeniedException?: never;
1516
+ conflictException?: never;
1517
+ internalServerException?: never;
1518
+ resourceNotFoundException?: never;
1519
+ serviceQuotaExceededException?: never;
1520
+ throttlingException?: never;
1521
+ validationException: ValidationException;
1522
+ $unknown?: never;
1523
+ }
1524
+ /**
1525
+ * @public
1526
+ */
1527
+ interface $UnknownMember {
1528
+ result?: never;
1529
+ accessDeniedException?: never;
1530
+ conflictException?: never;
1531
+ internalServerException?: never;
1532
+ resourceNotFoundException?: never;
1533
+ serviceQuotaExceededException?: never;
1534
+ throttlingException?: never;
1535
+ validationException?: never;
1536
+ $unknown: [string, any];
1537
+ }
1538
+ interface Visitor<T> {
1539
+ result: (value: CodeInterpreterResult) => T;
1540
+ accessDeniedException: (value: AccessDeniedException) => T;
1541
+ conflictException: (value: ConflictException) => T;
1542
+ internalServerException: (value: InternalServerException) => T;
1543
+ resourceNotFoundException: (value: ResourceNotFoundException) => T;
1544
+ serviceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
1545
+ throttlingException: (value: ThrottlingException) => T;
1546
+ validationException: (value: ValidationException) => T;
1547
+ _: (name: string, value: any) => T;
1548
+ }
1549
+ const visit: <T>(value: CodeInterpreterStreamOutput, visitor: Visitor<T>) => T;
1550
+ }
1551
+ /**
1552
+ * @public
1553
+ */
1554
+ export interface InvokeCodeInterpreterResponse {
1555
+ /**
1556
+ * <p>The identifier of the code interpreter session.</p>
1557
+ * @public
1558
+ */
1559
+ sessionId?: string | undefined;
1560
+ /**
1561
+ * <p>The stream containing the results of the code execution. This includes output, errors, and execution status.</p>
1562
+ * @public
1563
+ */
1564
+ stream: AsyncIterable<CodeInterpreterStreamOutput> | undefined;
1565
+ }
1566
+ /**
1567
+ * <p>Contains information about a branch in a memory store. Branches allow for organizing events into different conversation threads or paths.</p>
1568
+ * @public
1569
+ */
1570
+ export interface Branch {
1571
+ /**
1572
+ * <p>The identifier of the root event for this branch.</p>
1573
+ * @public
1574
+ */
1575
+ rootEventId?: string | undefined;
1576
+ /**
1577
+ * <p>The name of the branch.</p>
1578
+ * @public
1579
+ */
1580
+ name: string | undefined;
1581
+ }
1582
+ /**
1583
+ * <p>Contains the content of a memory item.</p>
1584
+ * @public
1585
+ */
1586
+ export type Content = Content.TextMember | Content.$UnknownMember;
1587
+ /**
1588
+ * @public
1589
+ */
1590
+ export declare namespace Content {
1591
+ /**
1592
+ * <p>The text content of the memory item.</p>
1593
+ * @public
1594
+ */
1595
+ interface TextMember {
1596
+ text: string;
1597
+ $unknown?: never;
1598
+ }
1599
+ /**
1600
+ * @public
1601
+ */
1602
+ interface $UnknownMember {
1603
+ text?: never;
1604
+ $unknown: [string, any];
1605
+ }
1606
+ interface Visitor<T> {
1607
+ text: (value: string) => T;
1608
+ _: (name: string, value: any) => T;
1609
+ }
1610
+ const visit: <T>(value: Content, visitor: Visitor<T>) => T;
1611
+ }
1612
+ /**
1613
+ * @public
1614
+ * @enum
1615
+ */
1616
+ export declare const Role: {
1617
+ readonly ASSISTANT: "ASSISTANT";
1618
+ readonly OTHER: "OTHER";
1619
+ readonly TOOL: "TOOL";
1620
+ readonly USER: "USER";
1621
+ };
1622
+ /**
1623
+ * @public
1624
+ */
1625
+ export type Role = (typeof Role)[keyof typeof Role];
1626
+ /**
1627
+ * <p>Contains conversational content for an event payload.</p>
1628
+ * @public
1629
+ */
1630
+ export interface Conversational {
1631
+ /**
1632
+ * <p>The content of the conversation message.</p>
1633
+ * @public
1634
+ */
1635
+ content: Content | undefined;
1636
+ /**
1637
+ * <p>The role of the participant in the conversation (for example, "user" or "assistant").</p>
1638
+ * @public
1639
+ */
1640
+ role: Role | undefined;
1641
+ }
1642
+ /**
1643
+ * <p>Contains the payload content for an event.</p>
1644
+ * @public
1645
+ */
1646
+ export type PayloadType = PayloadType.BlobMember | PayloadType.ConversationalMember | PayloadType.$UnknownMember;
1647
+ /**
1648
+ * @public
1649
+ */
1650
+ export declare namespace PayloadType {
1651
+ /**
1652
+ * <p>The conversational content of the payload.</p>
1653
+ * @public
1654
+ */
1655
+ interface ConversationalMember {
1656
+ conversational: Conversational;
1657
+ blob?: never;
1658
+ $unknown?: never;
1659
+ }
1660
+ /**
1661
+ * <p>The binary content of the payload.</p>
1662
+ * @public
1663
+ */
1664
+ interface BlobMember {
1665
+ conversational?: never;
1666
+ blob: __DocumentType;
1667
+ $unknown?: never;
1668
+ }
1669
+ /**
1670
+ * @public
1671
+ */
1672
+ interface $UnknownMember {
1673
+ conversational?: never;
1674
+ blob?: never;
1675
+ $unknown: [string, any];
1676
+ }
1677
+ interface Visitor<T> {
1678
+ conversational: (value: Conversational) => T;
1679
+ blob: (value: __DocumentType) => T;
1680
+ _: (name: string, value: any) => T;
1681
+ }
1682
+ const visit: <T>(value: PayloadType, visitor: Visitor<T>) => T;
1683
+ }
1684
+ /**
1685
+ * @public
1686
+ */
1687
+ export interface CreateEventInput {
1688
+ /**
1689
+ * <p>The identifier of the memory store in which to create the event.</p>
1690
+ * @public
1691
+ */
1692
+ memoryId: string | undefined;
1693
+ /**
1694
+ * <p>The identifier of the actor associated with this event. An actor represents an entity that participates in sessions and generates events.</p>
1695
+ * @public
1696
+ */
1697
+ actorId: string | undefined;
1698
+ /**
1699
+ * <p>The identifier of the session in which this event occurs. A session represents a sequence of related events.</p>
1700
+ * @public
1701
+ */
1702
+ sessionId?: string | undefined;
1703
+ /**
1704
+ * <p>The timestamp when the event occurred. If not specified, the current time is used.</p>
1705
+ * @public
1706
+ */
1707
+ eventTimestamp: Date | undefined;
1708
+ /**
1709
+ * <p>The content payload of the event. This can include conversational data or binary content.</p>
1710
+ * @public
1711
+ */
1712
+ payload: PayloadType[] | undefined;
1713
+ /**
1714
+ * <p>The branch information for this event. Branches allow for organizing events into different conversation threads or paths.</p>
1715
+ * @public
1716
+ */
1717
+ branch?: Branch | undefined;
1718
+ /**
1719
+ * <p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, AgentCore ignores the request, but does not return an error.</p>
1720
+ * @public
1721
+ */
1722
+ clientToken?: string | undefined;
1723
+ }
1724
+ /**
1725
+ * <p>Contains information about an event in a memory store.</p>
1726
+ * @public
1727
+ */
1728
+ export interface Event {
1729
+ /**
1730
+ * <p>The identifier of the memory store containing the event.</p>
1731
+ * @public
1732
+ */
1733
+ memoryId: string | undefined;
1734
+ /**
1735
+ * <p>The identifier of the actor associated with the event.</p>
1736
+ * @public
1737
+ */
1738
+ actorId: string | undefined;
1739
+ /**
1740
+ * <p>The identifier of the session containing the event.</p>
1741
+ * @public
1742
+ */
1743
+ sessionId: string | undefined;
1744
+ /**
1745
+ * <p>The unique identifier of the event.</p>
1746
+ * @public
1747
+ */
1748
+ eventId: string | undefined;
1749
+ /**
1750
+ * <p>The timestamp when the event occurred.</p>
1751
+ * @public
1752
+ */
1753
+ eventTimestamp: Date | undefined;
1754
+ /**
1755
+ * <p>The content payload of the event.</p>
1756
+ * @public
1757
+ */
1758
+ payload: PayloadType[] | undefined;
1759
+ /**
1760
+ * <p>The branch information for the event.</p>
1761
+ * @public
1762
+ */
1763
+ branch?: Branch | undefined;
1764
+ }
1765
+ /**
1766
+ * @public
1767
+ */
1768
+ export interface CreateEventOutput {
1769
+ /**
1770
+ * <p>The event that was created.</p>
1771
+ * @public
1772
+ */
1773
+ event: Event | undefined;
1774
+ }
1775
+ /**
1776
+ * <p>The input fails to satisfy the constraints specified by AgentCore. Check your input values and try again.</p>
1777
+ * @public
1778
+ */
1779
+ export declare class InvalidInputException extends __BaseException {
1780
+ readonly name: "InvalidInputException";
1781
+ readonly $fault: "client";
1782
+ /**
1783
+ * @internal
1784
+ */
1785
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
1786
+ }
1787
+ /**
1788
+ * <p>The service encountered an internal error. Try your request again later.</p>
1789
+ * @public
1790
+ */
1791
+ export declare class ServiceException extends __BaseException {
1792
+ readonly name: "ServiceException";
1793
+ readonly $fault: "server";
1794
+ /**
1795
+ * @internal
1796
+ */
1797
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
1798
+ }
1799
+ /**
1800
+ * <p>The request was denied due to request throttling. Reduce the frequency of requests and try again.</p>
1801
+ * @public
1802
+ */
1803
+ export declare class ThrottledException extends __BaseException {
1804
+ readonly name: "ThrottledException";
1805
+ readonly $fault: "client";
1806
+ /**
1807
+ * @internal
1808
+ */
1809
+ constructor(opts: __ExceptionOptionType<ThrottledException, __BaseException>);
1810
+ }
1811
+ /**
1812
+ * @public
1813
+ */
1814
+ export interface DeleteEventInput {
1815
+ /**
1816
+ * <p>The identifier of the memory store from which to delete the event.</p>
1817
+ * @public
1818
+ */
1819
+ memoryId: string | undefined;
1820
+ /**
1821
+ * <p>The identifier of the session containing the event to delete.</p>
1822
+ * @public
1823
+ */
1824
+ sessionId: string | undefined;
1825
+ /**
1826
+ * <p>The identifier of the event to delete.</p>
1827
+ * @public
1828
+ */
1829
+ eventId: string | undefined;
1830
+ /**
1831
+ * <p>The identifier of the actor associated with the event to delete.</p>
1832
+ * @public
1833
+ */
1834
+ actorId: string | undefined;
1835
+ }
1836
+ /**
1837
+ * @public
1838
+ */
1839
+ export interface DeleteEventOutput {
1840
+ /**
1841
+ * <p>The identifier of the event that was deleted.</p>
1842
+ * @public
1843
+ */
1844
+ eventId: string | undefined;
1845
+ }
1846
+ /**
1847
+ * @public
1848
+ */
1849
+ export interface DeleteMemoryRecordInput {
1850
+ /**
1851
+ * <p>The identifier of the memory store from which to delete the memory record.</p>
1852
+ * @public
1853
+ */
1854
+ memoryId: string | undefined;
1855
+ /**
1856
+ * <p>The identifier of the memory record to delete.</p>
1857
+ * @public
1858
+ */
1859
+ memoryRecordId: string | undefined;
1860
+ }
1861
+ /**
1862
+ * @public
1863
+ */
1864
+ export interface DeleteMemoryRecordOutput {
1865
+ /**
1866
+ * <p>The identifier of the memory record that was deleted.</p>
1867
+ * @public
1868
+ */
1869
+ memoryRecordId: string | undefined;
1870
+ }
1871
+ /**
1872
+ * @public
1873
+ */
1874
+ export interface GetEventInput {
1875
+ /**
1876
+ * <p>The identifier of the memory store containing the event.</p>
1877
+ * @public
1878
+ */
1879
+ memoryId: string | undefined;
1880
+ /**
1881
+ * <p>The identifier of the session containing the event.</p>
1882
+ * @public
1883
+ */
1884
+ sessionId: string | undefined;
1885
+ /**
1886
+ * <p>The identifier of the actor associated with the event.</p>
1887
+ * @public
1888
+ */
1889
+ actorId: string | undefined;
1890
+ /**
1891
+ * <p>The identifier of the event to retrieve.</p>
1892
+ * @public
1893
+ */
1894
+ eventId: string | undefined;
1895
+ }
1896
+ /**
1897
+ * @public
1898
+ */
1899
+ export interface GetEventOutput {
1900
+ /**
1901
+ * <p>The requested event information.</p>
1902
+ * @public
1903
+ */
1904
+ event: Event | undefined;
1905
+ }
1906
+ /**
1907
+ * @public
1908
+ */
1909
+ export interface GetMemoryRecordInput {
1910
+ /**
1911
+ * <p>The identifier of the memory store containing the memory record.</p>
1912
+ * @public
1913
+ */
1914
+ memoryId: string | undefined;
1915
+ /**
1916
+ * <p>The identifier of the memory record to retrieve.</p>
1917
+ * @public
1918
+ */
1919
+ memoryRecordId: string | undefined;
1920
+ }
1921
+ /**
1922
+ * <p>Contains the content of a memory record.</p>
1923
+ * @public
1924
+ */
1925
+ export type MemoryContent = MemoryContent.TextMember | MemoryContent.$UnknownMember;
1926
+ /**
1927
+ * @public
1928
+ */
1929
+ export declare namespace MemoryContent {
1930
+ /**
1931
+ * <p>The text content of the memory record.</p>
1932
+ * @public
1933
+ */
1934
+ interface TextMember {
1935
+ text: string;
1936
+ $unknown?: never;
1937
+ }
1938
+ /**
1939
+ * @public
1940
+ */
1941
+ interface $UnknownMember {
1942
+ text?: never;
1943
+ $unknown: [string, any];
1944
+ }
1945
+ interface Visitor<T> {
1946
+ text: (value: string) => T;
1947
+ _: (name: string, value: any) => T;
1948
+ }
1949
+ const visit: <T>(value: MemoryContent, visitor: Visitor<T>) => T;
1950
+ }
1951
+ /**
1952
+ * <p>Contains information about a memory record in a memory store.</p>
1953
+ * @public
1954
+ */
1955
+ export interface MemoryRecord {
1956
+ /**
1957
+ * <p>The unique identifier of the memory record.</p>
1958
+ * @public
1959
+ */
1960
+ memoryRecordId: string | undefined;
1961
+ /**
1962
+ * <p>The content of the memory record.</p>
1963
+ * @public
1964
+ */
1965
+ content: MemoryContent | undefined;
1966
+ /**
1967
+ * <p>The identifier of the memory strategy associated with this record.</p>
1968
+ * @public
1969
+ */
1970
+ memoryStrategyId: string | undefined;
1971
+ /**
1972
+ * <p>The namespaces associated with this memory record. Namespaces help organize and categorize memory records.</p>
1973
+ * @public
1974
+ */
1975
+ namespaces: string[] | undefined;
1976
+ /**
1977
+ * <p>The timestamp when the memory record was created.</p>
1978
+ * @public
1979
+ */
1980
+ createdAt: Date | undefined;
1981
+ }
1982
+ /**
1983
+ * @public
1984
+ */
1985
+ export interface GetMemoryRecordOutput {
1986
+ /**
1987
+ * <p>The requested memory record.</p>
1988
+ * @public
1989
+ */
1990
+ memoryRecord: MemoryRecord | undefined;
1991
+ }
1992
+ /**
1993
+ * @public
1994
+ */
1995
+ export interface ListActorsInput {
1996
+ /**
1997
+ * <p>The identifier of the memory store for which to list actors.</p>
1998
+ * @public
1999
+ */
2000
+ memoryId: string | undefined;
2001
+ /**
2002
+ * <p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 100. Default is 20.</p>
2003
+ * @public
2004
+ */
2005
+ maxResults?: number | undefined;
2006
+ /**
2007
+ * <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
2008
+ * @public
2009
+ */
2010
+ nextToken?: string | undefined;
2011
+ }
2012
+ /**
2013
+ * @public
2014
+ */
2015
+ export interface ListActorsOutput {
2016
+ /**
2017
+ * <p>The list of actor summaries.</p>
2018
+ * @public
2019
+ */
2020
+ actorSummaries: ActorSummary[] | undefined;
2021
+ /**
2022
+ * <p>The token to use in a subsequent request to get the next set of results. This value is null when there are no more results to return.</p>
2023
+ * @public
2024
+ */
2025
+ nextToken?: string | undefined;
2026
+ }
2027
+ /**
2028
+ * <p>Contains filter criteria for branches when listing events.</p>
2029
+ * @public
2030
+ */
2031
+ export interface BranchFilter {
2032
+ /**
2033
+ * <p>The name of the branch to filter by.</p>
2034
+ * @public
2035
+ */
2036
+ name: string | undefined;
2037
+ /**
2038
+ * <p>Specifies whether to include parent branches in the results. Set to true to include parent branches, or false to exclude them.</p>
2039
+ * @public
2040
+ */
2041
+ includeParentBranches?: boolean | undefined;
2042
+ }
2043
+ /**
2044
+ * <p>Contains filter criteria for listing events.</p>
2045
+ * @public
2046
+ */
2047
+ export interface FilterInput {
2048
+ /**
2049
+ * <p>The branch filter criteria to apply when listing events.</p>
2050
+ * @public
2051
+ */
2052
+ branch?: BranchFilter | undefined;
2053
+ }
2054
+ /**
2055
+ * @public
2056
+ */
2057
+ export interface ListEventsInput {
2058
+ /**
2059
+ * <p>The identifier of the memory store for which to list events.</p>
2060
+ * @public
2061
+ */
2062
+ memoryId: string | undefined;
2063
+ /**
2064
+ * <p>The identifier of the session for which to list events. If specified, only events from this session are returned.</p>
2065
+ * @public
2066
+ */
2067
+ sessionId: string | undefined;
2068
+ /**
2069
+ * <p>The identifier of the actor for which to list events. If specified, only events from this actor are returned.</p>
2070
+ * @public
2071
+ */
2072
+ actorId: string | undefined;
2073
+ /**
2074
+ * <p>Specifies whether to include event payloads in the response. Set to true to include payloads, or false to exclude them.</p>
2075
+ * @public
2076
+ */
2077
+ includePayloads?: boolean | undefined;
2078
+ /**
2079
+ * <p>Filter criteria to apply when listing events.</p>
2080
+ * @public
2081
+ */
2082
+ filter?: FilterInput | undefined;
2083
+ /**
2084
+ * <p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 100. Default is 20.</p>
2085
+ * @public
2086
+ */
2087
+ maxResults?: number | undefined;
2088
+ /**
2089
+ * <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
2090
+ * @public
2091
+ */
2092
+ nextToken?: string | undefined;
2093
+ }
2094
+ /**
2095
+ * @public
2096
+ */
2097
+ export interface ListEventsOutput {
2098
+ /**
2099
+ * <p>The list of events that match the specified criteria.</p>
2100
+ * @public
2101
+ */
2102
+ events: Event[] | undefined;
2103
+ /**
2104
+ * <p>The token to use in a subsequent request to get the next set of results. This value is null when there are no more results to return.</p>
2105
+ * @public
2106
+ */
2107
+ nextToken?: string | undefined;
2108
+ }
2109
+ /**
2110
+ * @public
2111
+ */
2112
+ export interface ListMemoryRecordsInput {
2113
+ /**
2114
+ * <p>The identifier of the memory store for which to list memory records.</p>
2115
+ * @public
2116
+ */
2117
+ memoryId: string | undefined;
2118
+ /**
2119
+ * <p>The namespace to filter memory records by. If specified, only memory records in this namespace are returned.</p>
2120
+ * @public
2121
+ */
2122
+ namespace: string | undefined;
2123
+ /**
2124
+ * <p>The memory strategy identifier to filter memory records by. If specified, only memory records with this strategy ID are returned.</p>
2125
+ * @public
2126
+ */
2127
+ memoryStrategyId?: string | undefined;
2128
+ /**
2129
+ * <p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 100. Default is 20.</p>
2130
+ * @public
2131
+ */
2132
+ maxResults?: number | undefined;
2133
+ /**
2134
+ * <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
2135
+ * @public
2136
+ */
2137
+ nextToken?: string | undefined;
2138
+ }
2139
+ /**
2140
+ * <p>Contains summary information about a memory record.</p>
2141
+ * @public
2142
+ */
2143
+ export interface MemoryRecordSummary {
2144
+ /**
2145
+ * <p>The unique identifier of the memory record.</p>
2146
+ * @public
2147
+ */
2148
+ memoryRecordId: string | undefined;
2149
+ /**
2150
+ * <p>The content of the memory record.</p>
2151
+ * @public
2152
+ */
2153
+ content: MemoryContent | undefined;
2154
+ /**
2155
+ * <p>The identifier of the memory strategy associated with this record.</p>
2156
+ * @public
2157
+ */
2158
+ memoryStrategyId: string | undefined;
2159
+ /**
2160
+ * <p>The namespaces associated with this memory record.</p>
2161
+ * @public
2162
+ */
2163
+ namespaces: string[] | undefined;
2164
+ /**
2165
+ * <p>The timestamp when the memory record was created.</p>
2166
+ * @public
2167
+ */
2168
+ createdAt: Date | undefined;
2169
+ /**
2170
+ * <p>The relevance score of the memory record when returned as part of a search result. Higher values indicate greater relevance to the search query.</p>
2171
+ * @public
2172
+ */
2173
+ score?: number | undefined;
2174
+ }
2175
+ /**
2176
+ * @public
2177
+ */
2178
+ export interface ListMemoryRecordsOutput {
2179
+ /**
2180
+ * <p>The list of memory record summaries that match the specified criteria.</p>
2181
+ * @public
2182
+ */
2183
+ memoryRecordSummaries: MemoryRecordSummary[] | undefined;
2184
+ /**
2185
+ * <p>The token to use in a subsequent request to get the next set of results. This value is null when there are no more results to return.</p>
2186
+ * @public
2187
+ */
2188
+ nextToken?: string | undefined;
2189
+ }
2190
+ /**
2191
+ * @public
2192
+ */
2193
+ export interface ListSessionsInput {
2194
+ /**
2195
+ * <p>The identifier of the memory store for which to list sessions.</p>
2196
+ * @public
2197
+ */
2198
+ memoryId: string | undefined;
2199
+ /**
2200
+ * <p>The identifier of the actor for which to list sessions. If specified, only sessions involving this actor are returned.</p>
2201
+ * @public
2202
+ */
2203
+ actorId: string | undefined;
2204
+ /**
2205
+ * <p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 100. Default is 20.</p>
2206
+ * @public
2207
+ */
2208
+ maxResults?: number | undefined;
2209
+ /**
2210
+ * <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
2211
+ * @public
2212
+ */
2213
+ nextToken?: string | undefined;
2214
+ }
2215
+ /**
2216
+ * <p>Contains summary information about a session in a memory store.</p>
2217
+ * @public
2218
+ */
2219
+ export interface SessionSummary {
2220
+ /**
2221
+ * <p>The unique identifier of the session.</p>
2222
+ * @public
2223
+ */
2224
+ sessionId: string | undefined;
2225
+ /**
2226
+ * <p>The identifier of the actor associated with the session.</p>
2227
+ * @public
2228
+ */
2229
+ actorId: string | undefined;
2230
+ /**
2231
+ * <p>The timestamp when the session was created.</p>
2232
+ * @public
2233
+ */
2234
+ createdAt: Date | undefined;
2235
+ }
2236
+ /**
2237
+ * @public
2238
+ */
2239
+ export interface ListSessionsOutput {
2240
+ /**
2241
+ * <p>The list of session summaries that match the specified criteria.</p>
2242
+ * @public
2243
+ */
2244
+ sessionSummaries: SessionSummary[] | undefined;
2245
+ /**
2246
+ * <p>The token to use in a subsequent request to get the next set of results. This value is null when there are no more results to return.</p>
2247
+ * @public
2248
+ */
2249
+ nextToken?: string | undefined;
2250
+ }
2251
+ /**
2252
+ * <p>Contains search criteria for retrieving memory records.</p>
2253
+ * @public
2254
+ */
2255
+ export interface SearchCriteria {
2256
+ /**
2257
+ * <p>The search query to use for finding relevant memory records.</p>
2258
+ * @public
2259
+ */
2260
+ searchQuery: string | undefined;
2261
+ /**
2262
+ * <p>The memory strategy identifier to filter memory records by.</p>
2263
+ * @public
2264
+ */
2265
+ memoryStrategyId?: string | undefined;
2266
+ /**
2267
+ * <p>The maximum number of top-scoring memory records to return. This value is used for semantic search ranking.</p>
2268
+ * @public
2269
+ */
2270
+ topK?: number | undefined;
2271
+ }
2272
+ /**
2273
+ * @public
2274
+ */
2275
+ export interface RetrieveMemoryRecordsInput {
2276
+ /**
2277
+ * <p>The identifier of the memory store from which to retrieve memory records.</p>
2278
+ * @public
2279
+ */
2280
+ memoryId: string | undefined;
2281
+ /**
2282
+ * <p>The namespace to filter memory records by. If specified, only memory records in this namespace are searched.</p>
2283
+ * @public
2284
+ */
2285
+ namespace: string | undefined;
2286
+ /**
2287
+ * <p>The search criteria to use for finding relevant memory records. This includes the search query, memory strategy ID, and other search parameters.</p>
2288
+ * @public
2289
+ */
2290
+ searchCriteria: SearchCriteria | undefined;
2291
+ /**
2292
+ * <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
2293
+ * @public
2294
+ */
2295
+ nextToken?: string | undefined;
2296
+ /**
2297
+ * <p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 100. Default is 20.</p>
2298
+ * @public
2299
+ */
2300
+ maxResults?: number | undefined;
2301
+ }
2302
+ /**
2303
+ * @public
2304
+ */
2305
+ export interface RetrieveMemoryRecordsOutput {
2306
+ /**
2307
+ * <p>The list of memory record summaries that match the search criteria, ordered by relevance.</p>
2308
+ * @public
2309
+ */
2310
+ memoryRecordSummaries: MemoryRecordSummary[] | undefined;
2311
+ /**
2312
+ * <p>The token to use in a subsequent request to get the next set of results. This value is null when there are no more results to return.</p>
2313
+ * @public
2314
+ */
2315
+ nextToken?: string | undefined;
2316
+ }
2317
+ /**
2318
+ * @internal
2319
+ */
2320
+ export declare const InvokeAgentRuntimeRequestFilterSensitiveLog: (obj: InvokeAgentRuntimeRequest) => any;
2321
+ /**
2322
+ * @internal
2323
+ */
2324
+ export declare const InvokeAgentRuntimeResponseFilterSensitiveLog: (obj: InvokeAgentRuntimeResponse) => any;
2325
+ /**
2326
+ * @internal
2327
+ */
2328
+ export declare const GetResourceApiKeyRequestFilterSensitiveLog: (obj: GetResourceApiKeyRequest) => any;
2329
+ /**
2330
+ * @internal
2331
+ */
2332
+ export declare const GetResourceApiKeyResponseFilterSensitiveLog: (obj: GetResourceApiKeyResponse) => any;
2333
+ /**
2334
+ * @internal
2335
+ */
2336
+ export declare const GetResourceOauth2TokenRequestFilterSensitiveLog: (obj: GetResourceOauth2TokenRequest) => any;
2337
+ /**
2338
+ * @internal
2339
+ */
2340
+ export declare const GetResourceOauth2TokenResponseFilterSensitiveLog: (obj: GetResourceOauth2TokenResponse) => any;
2341
+ /**
2342
+ * @internal
2343
+ */
2344
+ export declare const GetWorkloadAccessTokenResponseFilterSensitiveLog: (obj: GetWorkloadAccessTokenResponse) => any;
2345
+ /**
2346
+ * @internal
2347
+ */
2348
+ export declare const GetWorkloadAccessTokenForJWTRequestFilterSensitiveLog: (obj: GetWorkloadAccessTokenForJWTRequest) => any;
2349
+ /**
2350
+ * @internal
2351
+ */
2352
+ export declare const GetWorkloadAccessTokenForJWTResponseFilterSensitiveLog: (obj: GetWorkloadAccessTokenForJWTResponse) => any;
2353
+ /**
2354
+ * @internal
2355
+ */
2356
+ export declare const GetWorkloadAccessTokenForUserIdResponseFilterSensitiveLog: (obj: GetWorkloadAccessTokenForUserIdResponse) => any;
2357
+ /**
2358
+ * @internal
2359
+ */
2360
+ export declare const InputContentBlockFilterSensitiveLog: (obj: InputContentBlock) => any;
2361
+ /**
2362
+ * @internal
2363
+ */
2364
+ export declare const ToolArgumentsFilterSensitiveLog: (obj: ToolArguments) => any;
2365
+ /**
2366
+ * @internal
2367
+ */
2368
+ export declare const InvokeCodeInterpreterRequestFilterSensitiveLog: (obj: InvokeCodeInterpreterRequest) => any;
2369
+ /**
2370
+ * @internal
2371
+ */
2372
+ export declare const CodeInterpreterStreamOutputFilterSensitiveLog: (obj: CodeInterpreterStreamOutput) => any;
2373
+ /**
2374
+ * @internal
2375
+ */
2376
+ export declare const InvokeCodeInterpreterResponseFilterSensitiveLog: (obj: InvokeCodeInterpreterResponse) => any;
2377
+ /**
2378
+ * @internal
2379
+ */
2380
+ export declare const ContentFilterSensitiveLog: (obj: Content) => any;
2381
+ /**
2382
+ * @internal
2383
+ */
2384
+ export declare const ConversationalFilterSensitiveLog: (obj: Conversational) => any;
2385
+ /**
2386
+ * @internal
2387
+ */
2388
+ export declare const PayloadTypeFilterSensitiveLog: (obj: PayloadType) => any;
2389
+ /**
2390
+ * @internal
2391
+ */
2392
+ export declare const CreateEventInputFilterSensitiveLog: (obj: CreateEventInput) => any;
2393
+ /**
2394
+ * @internal
2395
+ */
2396
+ export declare const EventFilterSensitiveLog: (obj: Event) => any;
2397
+ /**
2398
+ * @internal
2399
+ */
2400
+ export declare const CreateEventOutputFilterSensitiveLog: (obj: CreateEventOutput) => any;
2401
+ /**
2402
+ * @internal
2403
+ */
2404
+ export declare const GetEventOutputFilterSensitiveLog: (obj: GetEventOutput) => any;
2405
+ /**
2406
+ * @internal
2407
+ */
2408
+ export declare const MemoryContentFilterSensitiveLog: (obj: MemoryContent) => any;
2409
+ /**
2410
+ * @internal
2411
+ */
2412
+ export declare const MemoryRecordFilterSensitiveLog: (obj: MemoryRecord) => any;
2413
+ /**
2414
+ * @internal
2415
+ */
2416
+ export declare const GetMemoryRecordOutputFilterSensitiveLog: (obj: GetMemoryRecordOutput) => any;
2417
+ /**
2418
+ * @internal
2419
+ */
2420
+ export declare const ListEventsOutputFilterSensitiveLog: (obj: ListEventsOutput) => any;
2421
+ /**
2422
+ * @internal
2423
+ */
2424
+ export declare const MemoryRecordSummaryFilterSensitiveLog: (obj: MemoryRecordSummary) => any;
2425
+ /**
2426
+ * @internal
2427
+ */
2428
+ export declare const ListMemoryRecordsOutputFilterSensitiveLog: (obj: ListMemoryRecordsOutput) => any;
2429
+ /**
2430
+ * @internal
2431
+ */
2432
+ export declare const SearchCriteriaFilterSensitiveLog: (obj: SearchCriteria) => any;
2433
+ /**
2434
+ * @internal
2435
+ */
2436
+ export declare const RetrieveMemoryRecordsInputFilterSensitiveLog: (obj: RetrieveMemoryRecordsInput) => any;
2437
+ /**
2438
+ * @internal
2439
+ */
2440
+ export declare const RetrieveMemoryRecordsOutputFilterSensitiveLog: (obj: RetrieveMemoryRecordsOutput) => any;