@aws/lsp-codewhisperer 0.0.96 → 0.0.98
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.
- package/CHANGELOG.md +40 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/README.md +259 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/QDeveloperStreamingClient.js +14 -11
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/GenerateCodeFromCommandsCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/commands/SendMessageCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/EndpointParameters.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/endpointResolver.js +19 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoint/ruleset.js +61 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/models/models_0.js +148 -64
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/protocols/Aws_json1_0.js +92 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/runtimeConfig.shared.js +2 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/QDeveloperStreamingClient.js +16 -13
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/GenerateCodeFromCommandsCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/commands/SendMessageCommand.js +4 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/EndpointParameters.js +11 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/endpointResolver.js +15 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoint/ruleset.js +58 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/models/models_0.js +138 -57
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/protocols/Aws_json1_0.js +94 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/runtimeConfig.shared.js +2 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/QDeveloperStreamingClient.d.ts +6 -9
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/GenerateCodeFromCommandsCommand.d.ts +6 -6
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/commands/SendMessageCommand.d.ts +68 -11
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/EndpointParameters.d.ts +28 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoint/ruleset.d.ts +2 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/index.d.ts +1 -0
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/models_0.d.ts +472 -87
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.browser.d.ts +5 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.d.ts +5 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.native.d.ts +5 -2
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/node_modules/@amzn/amazon-q-developer-streaming-client/package.json +3 -0
- package/node_modules/@amzn/codewhisperer-streaming/README.md +266 -7
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/CodeWhispererStreaming.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/InvokeMCPCommand.js +22 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/commands/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/models/models_0.js +172 -58
- package/node_modules/@amzn/codewhisperer-streaming/dist-cjs/protocols/Aws_restJson1.js +164 -3
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/CodeWhispererStreaming.js +2 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/InvokeMCPCommand.js +18 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/commands/index.js +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/models/models_0.js +159 -51
- package/node_modules/@amzn/codewhisperer-streaming/dist-es/protocols/Aws_restJson1.js +163 -4
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreaming.d.ts +7 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/CodeWhispererStreamingClient.d.ts +3 -2
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/ExportResultArchiveCommand.d.ts +5 -5
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateAssistantResponseCommand.d.ts +68 -3
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/GenerateTaskAssistPlanCommand.d.ts +63 -6
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/InvokeMCPCommand.d.ts +93 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/SendMessageCommand.d.ts +68 -11
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/commands/index.d.ts +1 -0
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/models/models_0.d.ts +585 -80
- package/node_modules/@amzn/codewhisperer-streaming/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/out/language-server/agenticChat/agenticChatController.d.ts +3 -1
- package/out/language-server/agenticChat/agenticChatController.js +55 -22
- package/out/language-server/agenticChat/agenticChatController.js.map +1 -1
- package/out/language-server/agenticChat/constants/constants.d.ts +0 -3
- package/out/language-server/agenticChat/constants/constants.js +1 -7
- package/out/language-server/agenticChat/constants/constants.js.map +1 -1
- package/out/language-server/agenticChat/constants/modelSelection.d.ts +1 -0
- package/out/language-server/agenticChat/constants/modelSelection.js +5 -1
- package/out/language-server/agenticChat/constants/modelSelection.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js +21 -13
- package/out/language-server/agenticChat/tools/mcp/mcpEventHandler.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpManager.d.ts +12 -4
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js +192 -37
- package/out/language-server/agenticChat/tools/mcp/mcpManager.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpOauthClient.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js +42 -20
- package/out/language-server/agenticChat/tools/mcp/mcpRegistryService.js.map +1 -1
- package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js +4 -0
- package/out/language-server/agenticChat/tools/mcp/profileStatusMonitor.js.map +1 -1
- package/out/language-server/agenticChat/tools/toolServer.js +57 -12
- package/out/language-server/agenticChat/tools/toolServer.js.map +1 -1
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.d.ts +48 -0
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js +48 -0
- package/out/language-server/agenticChat/utils/tokenLimitsCalculator.js.map +1 -0
- package/out/language-server/chat/chatSessionService.d.ts +17 -1
- package/out/language-server/chat/chatSessionService.js +28 -1
- package/out/language-server/chat/chatSessionService.js.map +1 -1
- package/out/language-server/configuration/transformConfigurationServer.d.ts +0 -13
- package/out/language-server/configuration/transformConfigurationServer.js +4 -112
- package/out/language-server/configuration/transformConfigurationServer.js.map +1 -1
- package/out/language-server/netTransform/atxTransformHandler.d.ts +2 -33
- package/out/language-server/netTransform/atxTransformHandler.js +130 -428
- package/out/language-server/netTransform/atxTransformHandler.js.map +1 -1
- package/out/language-server/netTransform/transformHandler.d.ts +0 -4
- package/out/language-server/netTransform/transformHandler.js +11 -39
- package/out/language-server/netTransform/transformHandler.js.map +1 -1
- package/out/language-server/netTransform/utils.d.ts +49 -0
- package/out/language-server/netTransform/utils.js +185 -0
- package/out/language-server/netTransform/utils.js.map +1 -0
- package/out/shared/amazonQServiceManager/AtxTokenServiceManager.d.ts +0 -1
- package/out/shared/amazonQServiceManager/AtxTokenServiceManager.js +14 -38
- package/out/shared/amazonQServiceManager/AtxTokenServiceManager.js.map +1 -1
- package/out/shared/codeWhispererService.js +2 -1
- package/out/shared/codeWhispererService.js.map +1 -1
- package/out/shared/telemetry/telemetryService.js +2 -1
- package/out/shared/telemetry/telemetryService.js.map +1 -1
- package/out/shared/utils.js +6 -4
- package/out/shared/utils.js.map +1 -1
- package/package.json +5 -4
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-cjs/endpoints.js +0 -211
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-es/endpoints.js +0 -207
- package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/endpoints.d.ts +0 -2
package/node_modules/@amzn/amazon-q-developer-streaming-client/dist-types/models/models_0.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { DocumentType as __DocumentType } from "@smithy/types";
|
|
|
6
6
|
* @enum
|
|
7
7
|
*/
|
|
8
8
|
export declare const AccessDeniedExceptionReason: {
|
|
9
|
+
readonly FEATURE_NOT_SUPPORTED: "FEATURE_NOT_SUPPORTED";
|
|
10
|
+
readonly TEMPORARILY_SUSPENDED: "TEMPORARILY_SUSPENDED";
|
|
9
11
|
readonly UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS: "UNAUTHORIZED_CUSTOMIZATION_RESOURCE_ACCESS";
|
|
10
12
|
readonly UNAUTHORIZED_WORKSPACE_CONTEXT_FEATURE_ACCESS: "UNAUTHORIZED_WORKSPACE_CONTEXT_FEATURE_ACCESS";
|
|
11
13
|
};
|
|
@@ -31,30 +33,35 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
31
33
|
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
32
34
|
}
|
|
33
35
|
/**
|
|
34
|
-
* Structure representing a single entry of additional contextual content
|
|
35
36
|
* @public
|
|
37
|
+
* @enum
|
|
36
38
|
*/
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
export declare const ConflictExceptionReason: {
|
|
40
|
+
readonly CUSTOMER_KMS_KEY_DISABLED: "CUSTOMER_KMS_KEY_DISABLED";
|
|
41
|
+
readonly CUSTOMER_KMS_KEY_INVALID_KEY_POLICY: "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY";
|
|
42
|
+
readonly MISMATCHED_KMS_KEY: "MISMATCHED_KMS_KEY";
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
export type ConflictExceptionReason = typeof ConflictExceptionReason[keyof typeof ConflictExceptionReason];
|
|
48
|
+
/**
|
|
49
|
+
* This exception is thrown when the action to perform could not be completed because the resource is in a conflicting state.
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare class ConflictException extends __BaseException {
|
|
53
|
+
readonly name: "ConflictException";
|
|
54
|
+
readonly $fault: "client";
|
|
43
55
|
/**
|
|
44
|
-
*
|
|
56
|
+
* Reason for ConflictException
|
|
45
57
|
* @public
|
|
46
58
|
*/
|
|
47
|
-
|
|
59
|
+
reason?: ConflictExceptionReason | undefined;
|
|
48
60
|
/**
|
|
49
|
-
*
|
|
50
|
-
* @public
|
|
61
|
+
* @internal
|
|
51
62
|
*/
|
|
52
|
-
|
|
63
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
53
64
|
}
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
export declare const AdditionalContentEntryFilterSensitiveLog: (obj: AdditionalContentEntry) => any;
|
|
58
65
|
/**
|
|
59
66
|
* @public
|
|
60
67
|
* @enum
|
|
@@ -84,23 +91,13 @@ export declare class InternalServerException extends __BaseException {
|
|
|
84
91
|
*/
|
|
85
92
|
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
86
93
|
}
|
|
87
|
-
/**
|
|
88
|
-
* This exception is thrown when describing a resource that does not exist.
|
|
89
|
-
* @public
|
|
90
|
-
*/
|
|
91
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
92
|
-
readonly name: "ResourceNotFoundException";
|
|
93
|
-
readonly $fault: "client";
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
98
|
-
}
|
|
99
94
|
/**
|
|
100
95
|
* @public
|
|
101
96
|
* @enum
|
|
102
97
|
*/
|
|
103
98
|
export declare const ThrottlingExceptionReason: {
|
|
99
|
+
readonly DAILY_REQUEST_COUNT: "DAILY_REQUEST_COUNT";
|
|
100
|
+
readonly INSUFFICIENT_MODEL_CAPACITY: "INSUFFICIENT_MODEL_CAPACITY";
|
|
104
101
|
readonly MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT";
|
|
105
102
|
};
|
|
106
103
|
/**
|
|
@@ -135,6 +132,7 @@ export declare const ValidationExceptionReason: {
|
|
|
135
132
|
readonly CONTENT_LENGTH_EXCEEDS_THRESHOLD: "CONTENT_LENGTH_EXCEEDS_THRESHOLD";
|
|
136
133
|
readonly INVALID_CONVERSATION_ID: "INVALID_CONVERSATION_ID";
|
|
137
134
|
readonly INVALID_KMS_GRANT: "INVALID_KMS_GRANT";
|
|
135
|
+
readonly INVALID_MODEL_ID: "INVALID_MODEL_ID";
|
|
138
136
|
};
|
|
139
137
|
/**
|
|
140
138
|
* @public
|
|
@@ -157,6 +155,85 @@ export declare class ValidationException extends __BaseException {
|
|
|
157
155
|
*/
|
|
158
156
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
159
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* This exception is thrown when describing a resource that does not exist.
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
163
|
+
readonly name: "ResourceNotFoundException";
|
|
164
|
+
readonly $fault: "client";
|
|
165
|
+
/**
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* @public
|
|
172
|
+
* @enum
|
|
173
|
+
*/
|
|
174
|
+
export declare const ServiceQuotaExceededExceptionReason: {
|
|
175
|
+
readonly CONVERSATION_LIMIT_EXCEEDED: "CONVERSATION_LIMIT_EXCEEDED";
|
|
176
|
+
readonly MONTHLY_REQUEST_COUNT: "MONTHLY_REQUEST_COUNT";
|
|
177
|
+
readonly OVERAGE_REQUEST_LIMIT_EXCEEDED: "OVERAGE_REQUEST_LIMIT_EXCEEDED";
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
export type ServiceQuotaExceededExceptionReason = typeof ServiceQuotaExceededExceptionReason[keyof typeof ServiceQuotaExceededExceptionReason];
|
|
183
|
+
/**
|
|
184
|
+
* This exception is thrown when request was denied due to caller exceeding their usage limits
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
188
|
+
readonly name: "ServiceQuotaExceededException";
|
|
189
|
+
readonly $fault: "client";
|
|
190
|
+
/**
|
|
191
|
+
* Reason for ServiceQuotaExceededException
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
reason?: ServiceQuotaExceededExceptionReason | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Structure representing a single entry of additional contextual content
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
export interface AdditionalContentEntry {
|
|
205
|
+
/**
|
|
206
|
+
* The name/identifier for this context entry
|
|
207
|
+
* @public
|
|
208
|
+
*/
|
|
209
|
+
name: string | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* A description of what this context entry represents
|
|
212
|
+
* @public
|
|
213
|
+
*/
|
|
214
|
+
description: string | undefined;
|
|
215
|
+
/**
|
|
216
|
+
* The actual contextual content
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
innerContext?: string | undefined;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
224
|
+
export declare const AdditionalContentEntryFilterSensitiveLog: (obj: AdditionalContentEntry) => any;
|
|
225
|
+
/**
|
|
226
|
+
* @public
|
|
227
|
+
* @enum
|
|
228
|
+
*/
|
|
229
|
+
export declare const AgentTaskType: {
|
|
230
|
+
readonly SPEC_TASK: "spectask";
|
|
231
|
+
readonly VIBE: "vibe";
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
export type AgentTaskType = typeof AgentTaskType[keyof typeof AgentTaskType];
|
|
160
237
|
/**
|
|
161
238
|
* Description of a user's context when they are calling Q Chat from AppStudio
|
|
162
239
|
* @public
|
|
@@ -207,6 +284,23 @@ export interface AssistantResponseEvent {
|
|
|
207
284
|
* @internal
|
|
208
285
|
*/
|
|
209
286
|
export declare const AssistantResponseEventFilterSensitiveLog: (obj: AssistantResponseEvent) => any;
|
|
287
|
+
/**
|
|
288
|
+
* @public
|
|
289
|
+
* @enum
|
|
290
|
+
*/
|
|
291
|
+
export declare const CachePointType: {
|
|
292
|
+
readonly DEFAULT: "default";
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* @public
|
|
296
|
+
*/
|
|
297
|
+
export type CachePointType = typeof CachePointType[keyof typeof CachePointType];
|
|
298
|
+
/**
|
|
299
|
+
* @public
|
|
300
|
+
*/
|
|
301
|
+
export interface CachePoint {
|
|
302
|
+
type: CachePointType | undefined;
|
|
303
|
+
}
|
|
210
304
|
/**
|
|
211
305
|
* @public
|
|
212
306
|
* @enum
|
|
@@ -277,6 +371,63 @@ export interface FollowupPrompt {
|
|
|
277
371
|
* @internal
|
|
278
372
|
*/
|
|
279
373
|
export declare const FollowupPromptFilterSensitiveLog: (obj: FollowupPrompt) => any;
|
|
374
|
+
/**
|
|
375
|
+
* @public
|
|
376
|
+
*/
|
|
377
|
+
export interface ReasoningText {
|
|
378
|
+
text: string | undefined;
|
|
379
|
+
/**
|
|
380
|
+
* A token that verifies that the reasoning text was generated by the model
|
|
381
|
+
* @public
|
|
382
|
+
*/
|
|
383
|
+
signature?: string | undefined;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* @internal
|
|
387
|
+
*/
|
|
388
|
+
export declare const ReasoningTextFilterSensitiveLog: (obj: ReasoningText) => any;
|
|
389
|
+
/**
|
|
390
|
+
* The entire reasoning content that the model used to return the output
|
|
391
|
+
* @public
|
|
392
|
+
*/
|
|
393
|
+
export type ReasoningContent = ReasoningContent.ReasoningTextMember | ReasoningContent.RedactedContentMember | ReasoningContent.$UnknownMember;
|
|
394
|
+
/**
|
|
395
|
+
* @public
|
|
396
|
+
*/
|
|
397
|
+
export declare namespace ReasoningContent {
|
|
398
|
+
interface ReasoningTextMember {
|
|
399
|
+
reasoningText: ReasoningText;
|
|
400
|
+
redactedContent?: never;
|
|
401
|
+
$unknown?: never;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Reasoning content that was encrypted by the model provider
|
|
405
|
+
* @public
|
|
406
|
+
*/
|
|
407
|
+
interface RedactedContentMember {
|
|
408
|
+
reasoningText?: never;
|
|
409
|
+
redactedContent: Uint8Array;
|
|
410
|
+
$unknown?: never;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* @public
|
|
414
|
+
*/
|
|
415
|
+
interface $UnknownMember {
|
|
416
|
+
reasoningText?: never;
|
|
417
|
+
redactedContent?: never;
|
|
418
|
+
$unknown: [string, any];
|
|
419
|
+
}
|
|
420
|
+
interface Visitor<T> {
|
|
421
|
+
reasoningText: (value: ReasoningText) => T;
|
|
422
|
+
redactedContent: (value: Uint8Array) => T;
|
|
423
|
+
_: (name: string, value: any) => T;
|
|
424
|
+
}
|
|
425
|
+
const visit: <T>(value: ReasoningContent, visitor: Visitor<T>) => T;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* @internal
|
|
429
|
+
*/
|
|
430
|
+
export declare const ReasoningContentFilterSensitiveLog: (obj: ReasoningContent) => any;
|
|
280
431
|
/**
|
|
281
432
|
* Represents span in a text.
|
|
282
433
|
* @public
|
|
@@ -396,41 +547,21 @@ export interface AssistantResponseMessage {
|
|
|
396
547
|
* @public
|
|
397
548
|
*/
|
|
398
549
|
toolUses?: (ToolUse)[] | undefined;
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* @internal
|
|
402
|
-
*/
|
|
403
|
-
export declare const AssistantResponseMessageFilterSensitiveLog: (obj: AssistantResponseMessage) => any;
|
|
404
|
-
/**
|
|
405
|
-
* @public
|
|
406
|
-
* @enum
|
|
407
|
-
*/
|
|
408
|
-
export declare const ConflictExceptionReason: {
|
|
409
|
-
readonly CUSTOMER_KMS_KEY_DISABLED: "CUSTOMER_KMS_KEY_DISABLED";
|
|
410
|
-
readonly CUSTOMER_KMS_KEY_INVALID_KEY_POLICY: "CUSTOMER_KMS_KEY_INVALID_KEY_POLICY";
|
|
411
|
-
readonly MISMATCHED_KMS_KEY: "MISMATCHED_KMS_KEY";
|
|
412
|
-
};
|
|
413
|
-
/**
|
|
414
|
-
* @public
|
|
415
|
-
*/
|
|
416
|
-
export type ConflictExceptionReason = typeof ConflictExceptionReason[keyof typeof ConflictExceptionReason];
|
|
417
|
-
/**
|
|
418
|
-
* This exception is thrown when the action to perform could not be completed because the resource is in a conflicting state.
|
|
419
|
-
* @public
|
|
420
|
-
*/
|
|
421
|
-
export declare class ConflictException extends __BaseException {
|
|
422
|
-
readonly name: "ConflictException";
|
|
423
|
-
readonly $fault: "client";
|
|
424
550
|
/**
|
|
425
|
-
*
|
|
551
|
+
* Indicates whether this message is a cache point
|
|
426
552
|
* @public
|
|
427
553
|
*/
|
|
428
|
-
|
|
554
|
+
cachePoint?: CachePoint | undefined;
|
|
429
555
|
/**
|
|
430
|
-
*
|
|
556
|
+
* Model's internal reasoning process, either as readable text or redacted binary content
|
|
557
|
+
* @public
|
|
431
558
|
*/
|
|
432
|
-
|
|
559
|
+
reasoningContent?: ReasoningContent | undefined;
|
|
433
560
|
}
|
|
561
|
+
/**
|
|
562
|
+
* @internal
|
|
563
|
+
*/
|
|
564
|
+
export declare const AssistantResponseMessageFilterSensitiveLog: (obj: AssistantResponseMessage) => any;
|
|
434
565
|
/**
|
|
435
566
|
* Programming Languages supported by CodeWhisperer
|
|
436
567
|
* @public
|
|
@@ -438,6 +569,12 @@ export declare class ConflictException extends __BaseException {
|
|
|
438
569
|
export interface ProgrammingLanguage {
|
|
439
570
|
languageName: string | undefined;
|
|
440
571
|
}
|
|
572
|
+
/**
|
|
573
|
+
* @public
|
|
574
|
+
*/
|
|
575
|
+
export interface ClientCacheConfig {
|
|
576
|
+
useClientCachingOnly?: boolean | undefined;
|
|
577
|
+
}
|
|
441
578
|
/**
|
|
442
579
|
* @public
|
|
443
580
|
* @enum
|
|
@@ -531,6 +668,14 @@ export declare const Origin: {
|
|
|
531
668
|
* Any IDE caller.
|
|
532
669
|
*/
|
|
533
670
|
readonly IDE: "IDE";
|
|
671
|
+
/**
|
|
672
|
+
* Q Developer Inline Chat.
|
|
673
|
+
*/
|
|
674
|
+
readonly INLINE_CHAT: "INLINE_CHAT";
|
|
675
|
+
/**
|
|
676
|
+
* KIRO CLI
|
|
677
|
+
*/
|
|
678
|
+
readonly KIRO_CLI: "KIRO_CLI";
|
|
534
679
|
/**
|
|
535
680
|
* AWS Marketing Website (https://aws.amazon.com)
|
|
536
681
|
*/
|
|
@@ -539,6 +684,10 @@ export declare const Origin: {
|
|
|
539
684
|
* MD.
|
|
540
685
|
*/
|
|
541
686
|
readonly MD: "MD";
|
|
687
|
+
/**
|
|
688
|
+
* SageMaker Unified Studio/MaxDome CodeEditor Chat
|
|
689
|
+
*/
|
|
690
|
+
readonly MD_CE: "MD_CE";
|
|
542
691
|
/**
|
|
543
692
|
* SageMaker Unified Studio/MaxDome IDE Chat
|
|
544
693
|
*/
|
|
@@ -563,6 +712,10 @@ export declare const Origin: {
|
|
|
563
712
|
* Internal Service Traffic (Integ Tests, Canaries, etc.). This is the default when no Origin header present in request.
|
|
564
713
|
*/
|
|
565
714
|
readonly SERVICE_INTERNAL: "SERVICE_INTERNAL";
|
|
715
|
+
/**
|
|
716
|
+
* SageMaker AI Studio IDE Chat
|
|
717
|
+
*/
|
|
718
|
+
readonly SM_AI_STUDIO_IDE: "SM_AI_STUDIO_IDE";
|
|
566
719
|
/**
|
|
567
720
|
* Unified Search in AWS Management Console (https://<region>.console.aws.amazon.com)
|
|
568
721
|
*/
|
|
@@ -1262,7 +1415,7 @@ export declare const ToolSpecificationFilterSensitiveLog: (obj: ToolSpecificatio
|
|
|
1262
1415
|
* Information about a tool that can be used.
|
|
1263
1416
|
* @public
|
|
1264
1417
|
*/
|
|
1265
|
-
export type Tool = Tool.ToolSpecificationMember | Tool.$UnknownMember;
|
|
1418
|
+
export type Tool = Tool.CachePointMember | Tool.ToolSpecificationMember | Tool.$UnknownMember;
|
|
1266
1419
|
/**
|
|
1267
1420
|
* @public
|
|
1268
1421
|
*/
|
|
@@ -1273,6 +1426,12 @@ export declare namespace Tool {
|
|
|
1273
1426
|
*/
|
|
1274
1427
|
interface ToolSpecificationMember {
|
|
1275
1428
|
toolSpecification: ToolSpecification;
|
|
1429
|
+
cachePoint?: never;
|
|
1430
|
+
$unknown?: never;
|
|
1431
|
+
}
|
|
1432
|
+
interface CachePointMember {
|
|
1433
|
+
toolSpecification?: never;
|
|
1434
|
+
cachePoint: CachePoint;
|
|
1276
1435
|
$unknown?: never;
|
|
1277
1436
|
}
|
|
1278
1437
|
/**
|
|
@@ -1280,10 +1439,12 @@ export declare namespace Tool {
|
|
|
1280
1439
|
*/
|
|
1281
1440
|
interface $UnknownMember {
|
|
1282
1441
|
toolSpecification?: never;
|
|
1442
|
+
cachePoint?: never;
|
|
1283
1443
|
$unknown: [string, any];
|
|
1284
1444
|
}
|
|
1285
1445
|
interface Visitor<T> {
|
|
1286
1446
|
toolSpecification: (value: ToolSpecification) => T;
|
|
1447
|
+
cachePoint: (value: CachePoint) => T;
|
|
1287
1448
|
_: (name: string, value: any) => T;
|
|
1288
1449
|
}
|
|
1289
1450
|
const visit: <T>(value: Tool, visitor: Visitor<T>) => T;
|
|
@@ -1399,6 +1560,16 @@ export interface UserInputMessage {
|
|
|
1399
1560
|
* @public
|
|
1400
1561
|
*/
|
|
1401
1562
|
modelId?: string | undefined;
|
|
1563
|
+
/**
|
|
1564
|
+
* Indicates whether to add a cache point after the current message
|
|
1565
|
+
* @public
|
|
1566
|
+
*/
|
|
1567
|
+
cachePoint?: CachePoint | undefined;
|
|
1568
|
+
/**
|
|
1569
|
+
* Client cache config
|
|
1570
|
+
* @public
|
|
1571
|
+
*/
|
|
1572
|
+
clientCacheConfig?: ClientCacheConfig | undefined;
|
|
1402
1573
|
}
|
|
1403
1574
|
/**
|
|
1404
1575
|
* @internal
|
|
@@ -1542,6 +1713,16 @@ export interface CodeReferenceEvent {
|
|
|
1542
1713
|
*/
|
|
1543
1714
|
references?: (Reference)[] | undefined;
|
|
1544
1715
|
}
|
|
1716
|
+
/**
|
|
1717
|
+
* @public
|
|
1718
|
+
*/
|
|
1719
|
+
export interface ContextUsageEvent {
|
|
1720
|
+
/**
|
|
1721
|
+
* Percentage of model context window used (0-100). Calculated as (totalTokens / maxContextWindowTokens) * 100
|
|
1722
|
+
* @public
|
|
1723
|
+
*/
|
|
1724
|
+
contextUsagePercentage?: number | undefined;
|
|
1725
|
+
}
|
|
1545
1726
|
/**
|
|
1546
1727
|
* Streaming Response Event when DryRun is succeessful
|
|
1547
1728
|
* @public
|
|
@@ -1568,6 +1749,7 @@ export declare const FollowupPromptEventFilterSensitiveLog: (obj: FollowupPrompt
|
|
|
1568
1749
|
* @enum
|
|
1569
1750
|
*/
|
|
1570
1751
|
export declare const IntentType: {
|
|
1752
|
+
readonly ARTIFACT: "ARTIFACT";
|
|
1571
1753
|
readonly DEEPLINKS: "DEEPLINKS";
|
|
1572
1754
|
readonly GLUE_SENSEI: "GLUE_SENSEI";
|
|
1573
1755
|
readonly RESOURCE_DATA: "RESOURCE_DATA";
|
|
@@ -2359,6 +2541,62 @@ export interface MessageMetadataEvent {
|
|
|
2359
2541
|
*/
|
|
2360
2542
|
utteranceId?: string | undefined;
|
|
2361
2543
|
}
|
|
2544
|
+
/**
|
|
2545
|
+
* @public
|
|
2546
|
+
*/
|
|
2547
|
+
export interface TokenUsage {
|
|
2548
|
+
uncachedInputTokens: number | undefined;
|
|
2549
|
+
outputTokens: number | undefined;
|
|
2550
|
+
totalTokens: number | undefined;
|
|
2551
|
+
cacheReadInputTokens?: number | undefined;
|
|
2552
|
+
cacheWriteInputTokens?: number | undefined;
|
|
2553
|
+
/**
|
|
2554
|
+
* Percentage of model context window used (0-100). Calculated as (totalTokens / maxContextWindowTokens) * 100
|
|
2555
|
+
* @public
|
|
2556
|
+
*/
|
|
2557
|
+
contextUsagePercentage?: number | undefined;
|
|
2558
|
+
}
|
|
2559
|
+
/**
|
|
2560
|
+
* Streaming Response Event for Metadata
|
|
2561
|
+
* @public
|
|
2562
|
+
*/
|
|
2563
|
+
export interface MetadataEvent {
|
|
2564
|
+
tokenUsage?: TokenUsage | undefined;
|
|
2565
|
+
}
|
|
2566
|
+
/**
|
|
2567
|
+
* Streaming Response Event for Metering
|
|
2568
|
+
* @public
|
|
2569
|
+
*/
|
|
2570
|
+
export interface MeteringEvent {
|
|
2571
|
+
usage?: number | undefined;
|
|
2572
|
+
unit?: string | undefined;
|
|
2573
|
+
unitPlural?: string | undefined;
|
|
2574
|
+
}
|
|
2575
|
+
/**
|
|
2576
|
+
* Streaming Response Event for reasoning content.
|
|
2577
|
+
* @public
|
|
2578
|
+
*/
|
|
2579
|
+
export interface ReasoningContentEvent {
|
|
2580
|
+
/**
|
|
2581
|
+
* The reasoning that the model used to return the output.
|
|
2582
|
+
* @public
|
|
2583
|
+
*/
|
|
2584
|
+
text?: string | undefined;
|
|
2585
|
+
/**
|
|
2586
|
+
* The content in the reasoning that was encrypted by the model provider
|
|
2587
|
+
* @public
|
|
2588
|
+
*/
|
|
2589
|
+
redactedContent?: Uint8Array | undefined;
|
|
2590
|
+
/**
|
|
2591
|
+
* A token that verifies that the reasoning text was generated by the model
|
|
2592
|
+
* @public
|
|
2593
|
+
*/
|
|
2594
|
+
signature?: string | undefined;
|
|
2595
|
+
}
|
|
2596
|
+
/**
|
|
2597
|
+
* @internal
|
|
2598
|
+
*/
|
|
2599
|
+
export declare const ReasoningContentEventFilterSensitiveLog: (obj: ReasoningContentEvent) => any;
|
|
2362
2600
|
/**
|
|
2363
2601
|
* Streaming Response Event for SupplementaryWebLinks
|
|
2364
2602
|
* @public
|
|
@@ -2422,7 +2660,7 @@ export declare const ToolUseEventFilterSensitiveLog: (obj: ToolUseEvent) => any;
|
|
|
2422
2660
|
* Streaming events from UniDirectional Streaming Conversational APIs.
|
|
2423
2661
|
* @public
|
|
2424
2662
|
*/
|
|
2425
|
-
export type ChatResponseStream = ChatResponseStream.AssistantResponseEventMember | ChatResponseStream.CitationEventMember | ChatResponseStream.CodeEventMember | ChatResponseStream.CodeReferenceEventMember | ChatResponseStream.DryRunSucceedEventMember | ChatResponseStream.ErrorMember | ChatResponseStream.FollowupPromptEventMember | ChatResponseStream.IntentsEventMember | ChatResponseStream.InteractionComponentsEventMember | ChatResponseStream.InvalidStateEventMember | ChatResponseStream.MessageMetadataEventMember | ChatResponseStream.SupplementaryWebLinksEventMember | ChatResponseStream.ToolResultEventMember | ChatResponseStream.ToolUseEventMember | ChatResponseStream.$UnknownMember;
|
|
2663
|
+
export type ChatResponseStream = ChatResponseStream.AssistantResponseEventMember | ChatResponseStream.CitationEventMember | ChatResponseStream.CodeEventMember | ChatResponseStream.CodeReferenceEventMember | ChatResponseStream.ContextUsageEventMember | ChatResponseStream.DryRunSucceedEventMember | ChatResponseStream.ErrorMember | ChatResponseStream.FollowupPromptEventMember | ChatResponseStream.IntentsEventMember | ChatResponseStream.InteractionComponentsEventMember | ChatResponseStream.InvalidStateEventMember | ChatResponseStream.MessageMetadataEventMember | ChatResponseStream.MetadataEventMember | ChatResponseStream.MeteringEventMember | ChatResponseStream.ReasoningContentEventMember | ChatResponseStream.SupplementaryWebLinksEventMember | ChatResponseStream.ToolResultEventMember | ChatResponseStream.ToolUseEventMember | ChatResponseStream.$UnknownMember;
|
|
2426
2664
|
/**
|
|
2427
2665
|
* @public
|
|
2428
2666
|
*/
|
|
@@ -2434,6 +2672,7 @@ export declare namespace ChatResponseStream {
|
|
|
2434
2672
|
interface MessageMetadataEventMember {
|
|
2435
2673
|
messageMetadataEvent: MessageMetadataEvent;
|
|
2436
2674
|
assistantResponseEvent?: never;
|
|
2675
|
+
reasoningContentEvent?: never;
|
|
2437
2676
|
dryRunSucceedEvent?: never;
|
|
2438
2677
|
codeReferenceEvent?: never;
|
|
2439
2678
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2443,6 +2682,9 @@ export declare namespace ChatResponseStream {
|
|
|
2443
2682
|
interactionComponentsEvent?: never;
|
|
2444
2683
|
toolUseEvent?: never;
|
|
2445
2684
|
toolResultEvent?: never;
|
|
2685
|
+
metadataEvent?: never;
|
|
2686
|
+
meteringEvent?: never;
|
|
2687
|
+
contextUsageEvent?: never;
|
|
2446
2688
|
citationEvent?: never;
|
|
2447
2689
|
invalidStateEvent?: never;
|
|
2448
2690
|
error?: never;
|
|
@@ -2455,6 +2697,32 @@ export declare namespace ChatResponseStream {
|
|
|
2455
2697
|
interface AssistantResponseEventMember {
|
|
2456
2698
|
messageMetadataEvent?: never;
|
|
2457
2699
|
assistantResponseEvent: AssistantResponseEvent;
|
|
2700
|
+
reasoningContentEvent?: never;
|
|
2701
|
+
dryRunSucceedEvent?: never;
|
|
2702
|
+
codeReferenceEvent?: never;
|
|
2703
|
+
supplementaryWebLinksEvent?: never;
|
|
2704
|
+
followupPromptEvent?: never;
|
|
2705
|
+
codeEvent?: never;
|
|
2706
|
+
intentsEvent?: never;
|
|
2707
|
+
interactionComponentsEvent?: never;
|
|
2708
|
+
toolUseEvent?: never;
|
|
2709
|
+
toolResultEvent?: never;
|
|
2710
|
+
metadataEvent?: never;
|
|
2711
|
+
meteringEvent?: never;
|
|
2712
|
+
contextUsageEvent?: never;
|
|
2713
|
+
citationEvent?: never;
|
|
2714
|
+
invalidStateEvent?: never;
|
|
2715
|
+
error?: never;
|
|
2716
|
+
$unknown?: never;
|
|
2717
|
+
}
|
|
2718
|
+
/**
|
|
2719
|
+
* Reasoning process returned by models
|
|
2720
|
+
* @public
|
|
2721
|
+
*/
|
|
2722
|
+
interface ReasoningContentEventMember {
|
|
2723
|
+
messageMetadataEvent?: never;
|
|
2724
|
+
assistantResponseEvent?: never;
|
|
2725
|
+
reasoningContentEvent: ReasoningContentEvent;
|
|
2458
2726
|
dryRunSucceedEvent?: never;
|
|
2459
2727
|
codeReferenceEvent?: never;
|
|
2460
2728
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2464,6 +2732,9 @@ export declare namespace ChatResponseStream {
|
|
|
2464
2732
|
interactionComponentsEvent?: never;
|
|
2465
2733
|
toolUseEvent?: never;
|
|
2466
2734
|
toolResultEvent?: never;
|
|
2735
|
+
metadataEvent?: never;
|
|
2736
|
+
meteringEvent?: never;
|
|
2737
|
+
contextUsageEvent?: never;
|
|
2467
2738
|
citationEvent?: never;
|
|
2468
2739
|
invalidStateEvent?: never;
|
|
2469
2740
|
error?: never;
|
|
@@ -2476,6 +2747,7 @@ export declare namespace ChatResponseStream {
|
|
|
2476
2747
|
interface DryRunSucceedEventMember {
|
|
2477
2748
|
messageMetadataEvent?: never;
|
|
2478
2749
|
assistantResponseEvent?: never;
|
|
2750
|
+
reasoningContentEvent?: never;
|
|
2479
2751
|
dryRunSucceedEvent: DryRunSucceedEvent;
|
|
2480
2752
|
codeReferenceEvent?: never;
|
|
2481
2753
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2485,6 +2757,9 @@ export declare namespace ChatResponseStream {
|
|
|
2485
2757
|
interactionComponentsEvent?: never;
|
|
2486
2758
|
toolUseEvent?: never;
|
|
2487
2759
|
toolResultEvent?: never;
|
|
2760
|
+
metadataEvent?: never;
|
|
2761
|
+
meteringEvent?: never;
|
|
2762
|
+
contextUsageEvent?: never;
|
|
2488
2763
|
citationEvent?: never;
|
|
2489
2764
|
invalidStateEvent?: never;
|
|
2490
2765
|
error?: never;
|
|
@@ -2497,6 +2772,7 @@ export declare namespace ChatResponseStream {
|
|
|
2497
2772
|
interface CodeReferenceEventMember {
|
|
2498
2773
|
messageMetadataEvent?: never;
|
|
2499
2774
|
assistantResponseEvent?: never;
|
|
2775
|
+
reasoningContentEvent?: never;
|
|
2500
2776
|
dryRunSucceedEvent?: never;
|
|
2501
2777
|
codeReferenceEvent: CodeReferenceEvent;
|
|
2502
2778
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2506,6 +2782,9 @@ export declare namespace ChatResponseStream {
|
|
|
2506
2782
|
interactionComponentsEvent?: never;
|
|
2507
2783
|
toolUseEvent?: never;
|
|
2508
2784
|
toolResultEvent?: never;
|
|
2785
|
+
metadataEvent?: never;
|
|
2786
|
+
meteringEvent?: never;
|
|
2787
|
+
contextUsageEvent?: never;
|
|
2509
2788
|
citationEvent?: never;
|
|
2510
2789
|
invalidStateEvent?: never;
|
|
2511
2790
|
error?: never;
|
|
@@ -2518,6 +2797,7 @@ export declare namespace ChatResponseStream {
|
|
|
2518
2797
|
interface SupplementaryWebLinksEventMember {
|
|
2519
2798
|
messageMetadataEvent?: never;
|
|
2520
2799
|
assistantResponseEvent?: never;
|
|
2800
|
+
reasoningContentEvent?: never;
|
|
2521
2801
|
dryRunSucceedEvent?: never;
|
|
2522
2802
|
codeReferenceEvent?: never;
|
|
2523
2803
|
supplementaryWebLinksEvent: SupplementaryWebLinksEvent;
|
|
@@ -2527,6 +2807,9 @@ export declare namespace ChatResponseStream {
|
|
|
2527
2807
|
interactionComponentsEvent?: never;
|
|
2528
2808
|
toolUseEvent?: never;
|
|
2529
2809
|
toolResultEvent?: never;
|
|
2810
|
+
metadataEvent?: never;
|
|
2811
|
+
meteringEvent?: never;
|
|
2812
|
+
contextUsageEvent?: never;
|
|
2530
2813
|
citationEvent?: never;
|
|
2531
2814
|
invalidStateEvent?: never;
|
|
2532
2815
|
error?: never;
|
|
@@ -2539,6 +2822,7 @@ export declare namespace ChatResponseStream {
|
|
|
2539
2822
|
interface FollowupPromptEventMember {
|
|
2540
2823
|
messageMetadataEvent?: never;
|
|
2541
2824
|
assistantResponseEvent?: never;
|
|
2825
|
+
reasoningContentEvent?: never;
|
|
2542
2826
|
dryRunSucceedEvent?: never;
|
|
2543
2827
|
codeReferenceEvent?: never;
|
|
2544
2828
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2548,6 +2832,9 @@ export declare namespace ChatResponseStream {
|
|
|
2548
2832
|
interactionComponentsEvent?: never;
|
|
2549
2833
|
toolUseEvent?: never;
|
|
2550
2834
|
toolResultEvent?: never;
|
|
2835
|
+
metadataEvent?: never;
|
|
2836
|
+
meteringEvent?: never;
|
|
2837
|
+
contextUsageEvent?: never;
|
|
2551
2838
|
citationEvent?: never;
|
|
2552
2839
|
invalidStateEvent?: never;
|
|
2553
2840
|
error?: never;
|
|
@@ -2560,6 +2847,7 @@ export declare namespace ChatResponseStream {
|
|
|
2560
2847
|
interface CodeEventMember {
|
|
2561
2848
|
messageMetadataEvent?: never;
|
|
2562
2849
|
assistantResponseEvent?: never;
|
|
2850
|
+
reasoningContentEvent?: never;
|
|
2563
2851
|
dryRunSucceedEvent?: never;
|
|
2564
2852
|
codeReferenceEvent?: never;
|
|
2565
2853
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2569,6 +2857,9 @@ export declare namespace ChatResponseStream {
|
|
|
2569
2857
|
interactionComponentsEvent?: never;
|
|
2570
2858
|
toolUseEvent?: never;
|
|
2571
2859
|
toolResultEvent?: never;
|
|
2860
|
+
metadataEvent?: never;
|
|
2861
|
+
meteringEvent?: never;
|
|
2862
|
+
contextUsageEvent?: never;
|
|
2572
2863
|
citationEvent?: never;
|
|
2573
2864
|
invalidStateEvent?: never;
|
|
2574
2865
|
error?: never;
|
|
@@ -2581,6 +2872,7 @@ export declare namespace ChatResponseStream {
|
|
|
2581
2872
|
interface IntentsEventMember {
|
|
2582
2873
|
messageMetadataEvent?: never;
|
|
2583
2874
|
assistantResponseEvent?: never;
|
|
2875
|
+
reasoningContentEvent?: never;
|
|
2584
2876
|
dryRunSucceedEvent?: never;
|
|
2585
2877
|
codeReferenceEvent?: never;
|
|
2586
2878
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2590,6 +2882,9 @@ export declare namespace ChatResponseStream {
|
|
|
2590
2882
|
interactionComponentsEvent?: never;
|
|
2591
2883
|
toolUseEvent?: never;
|
|
2592
2884
|
toolResultEvent?: never;
|
|
2885
|
+
metadataEvent?: never;
|
|
2886
|
+
meteringEvent?: never;
|
|
2887
|
+
contextUsageEvent?: never;
|
|
2593
2888
|
citationEvent?: never;
|
|
2594
2889
|
invalidStateEvent?: never;
|
|
2595
2890
|
error?: never;
|
|
@@ -2602,6 +2897,7 @@ export declare namespace ChatResponseStream {
|
|
|
2602
2897
|
interface InteractionComponentsEventMember {
|
|
2603
2898
|
messageMetadataEvent?: never;
|
|
2604
2899
|
assistantResponseEvent?: never;
|
|
2900
|
+
reasoningContentEvent?: never;
|
|
2605
2901
|
dryRunSucceedEvent?: never;
|
|
2606
2902
|
codeReferenceEvent?: never;
|
|
2607
2903
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2611,6 +2907,9 @@ export declare namespace ChatResponseStream {
|
|
|
2611
2907
|
interactionComponentsEvent: InteractionComponentsEvent;
|
|
2612
2908
|
toolUseEvent?: never;
|
|
2613
2909
|
toolResultEvent?: never;
|
|
2910
|
+
metadataEvent?: never;
|
|
2911
|
+
meteringEvent?: never;
|
|
2912
|
+
contextUsageEvent?: never;
|
|
2614
2913
|
citationEvent?: never;
|
|
2615
2914
|
invalidStateEvent?: never;
|
|
2616
2915
|
error?: never;
|
|
@@ -2623,6 +2922,7 @@ export declare namespace ChatResponseStream {
|
|
|
2623
2922
|
interface ToolUseEventMember {
|
|
2624
2923
|
messageMetadataEvent?: never;
|
|
2625
2924
|
assistantResponseEvent?: never;
|
|
2925
|
+
reasoningContentEvent?: never;
|
|
2626
2926
|
dryRunSucceedEvent?: never;
|
|
2627
2927
|
codeReferenceEvent?: never;
|
|
2628
2928
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2632,6 +2932,9 @@ export declare namespace ChatResponseStream {
|
|
|
2632
2932
|
interactionComponentsEvent?: never;
|
|
2633
2933
|
toolUseEvent: ToolUseEvent;
|
|
2634
2934
|
toolResultEvent?: never;
|
|
2935
|
+
metadataEvent?: never;
|
|
2936
|
+
meteringEvent?: never;
|
|
2937
|
+
contextUsageEvent?: never;
|
|
2635
2938
|
citationEvent?: never;
|
|
2636
2939
|
invalidStateEvent?: never;
|
|
2637
2940
|
error?: never;
|
|
@@ -2644,6 +2947,7 @@ export declare namespace ChatResponseStream {
|
|
|
2644
2947
|
interface ToolResultEventMember {
|
|
2645
2948
|
messageMetadataEvent?: never;
|
|
2646
2949
|
assistantResponseEvent?: never;
|
|
2950
|
+
reasoningContentEvent?: never;
|
|
2647
2951
|
dryRunSucceedEvent?: never;
|
|
2648
2952
|
codeReferenceEvent?: never;
|
|
2649
2953
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2653,6 +2957,84 @@ export declare namespace ChatResponseStream {
|
|
|
2653
2957
|
interactionComponentsEvent?: never;
|
|
2654
2958
|
toolUseEvent?: never;
|
|
2655
2959
|
toolResultEvent: ToolResultEvent;
|
|
2960
|
+
metadataEvent?: never;
|
|
2961
|
+
meteringEvent?: never;
|
|
2962
|
+
contextUsageEvent?: never;
|
|
2963
|
+
citationEvent?: never;
|
|
2964
|
+
invalidStateEvent?: never;
|
|
2965
|
+
error?: never;
|
|
2966
|
+
$unknown?: never;
|
|
2967
|
+
}
|
|
2968
|
+
/**
|
|
2969
|
+
* Metadata event
|
|
2970
|
+
* @public
|
|
2971
|
+
*/
|
|
2972
|
+
interface MetadataEventMember {
|
|
2973
|
+
messageMetadataEvent?: never;
|
|
2974
|
+
assistantResponseEvent?: never;
|
|
2975
|
+
reasoningContentEvent?: never;
|
|
2976
|
+
dryRunSucceedEvent?: never;
|
|
2977
|
+
codeReferenceEvent?: never;
|
|
2978
|
+
supplementaryWebLinksEvent?: never;
|
|
2979
|
+
followupPromptEvent?: never;
|
|
2980
|
+
codeEvent?: never;
|
|
2981
|
+
intentsEvent?: never;
|
|
2982
|
+
interactionComponentsEvent?: never;
|
|
2983
|
+
toolUseEvent?: never;
|
|
2984
|
+
toolResultEvent?: never;
|
|
2985
|
+
metadataEvent: MetadataEvent;
|
|
2986
|
+
meteringEvent?: never;
|
|
2987
|
+
contextUsageEvent?: never;
|
|
2988
|
+
citationEvent?: never;
|
|
2989
|
+
invalidStateEvent?: never;
|
|
2990
|
+
error?: never;
|
|
2991
|
+
$unknown?: never;
|
|
2992
|
+
}
|
|
2993
|
+
/**
|
|
2994
|
+
* Metering event
|
|
2995
|
+
* @public
|
|
2996
|
+
*/
|
|
2997
|
+
interface MeteringEventMember {
|
|
2998
|
+
messageMetadataEvent?: never;
|
|
2999
|
+
assistantResponseEvent?: never;
|
|
3000
|
+
reasoningContentEvent?: never;
|
|
3001
|
+
dryRunSucceedEvent?: never;
|
|
3002
|
+
codeReferenceEvent?: never;
|
|
3003
|
+
supplementaryWebLinksEvent?: never;
|
|
3004
|
+
followupPromptEvent?: never;
|
|
3005
|
+
codeEvent?: never;
|
|
3006
|
+
intentsEvent?: never;
|
|
3007
|
+
interactionComponentsEvent?: never;
|
|
3008
|
+
toolUseEvent?: never;
|
|
3009
|
+
toolResultEvent?: never;
|
|
3010
|
+
metadataEvent?: never;
|
|
3011
|
+
meteringEvent: MeteringEvent;
|
|
3012
|
+
contextUsageEvent?: never;
|
|
3013
|
+
citationEvent?: never;
|
|
3014
|
+
invalidStateEvent?: never;
|
|
3015
|
+
error?: never;
|
|
3016
|
+
$unknown?: never;
|
|
3017
|
+
}
|
|
3018
|
+
/**
|
|
3019
|
+
* Context Usage event
|
|
3020
|
+
* @public
|
|
3021
|
+
*/
|
|
3022
|
+
interface ContextUsageEventMember {
|
|
3023
|
+
messageMetadataEvent?: never;
|
|
3024
|
+
assistantResponseEvent?: never;
|
|
3025
|
+
reasoningContentEvent?: never;
|
|
3026
|
+
dryRunSucceedEvent?: never;
|
|
3027
|
+
codeReferenceEvent?: never;
|
|
3028
|
+
supplementaryWebLinksEvent?: never;
|
|
3029
|
+
followupPromptEvent?: never;
|
|
3030
|
+
codeEvent?: never;
|
|
3031
|
+
intentsEvent?: never;
|
|
3032
|
+
interactionComponentsEvent?: never;
|
|
3033
|
+
toolUseEvent?: never;
|
|
3034
|
+
toolResultEvent?: never;
|
|
3035
|
+
metadataEvent?: never;
|
|
3036
|
+
meteringEvent?: never;
|
|
3037
|
+
contextUsageEvent: ContextUsageEvent;
|
|
2656
3038
|
citationEvent?: never;
|
|
2657
3039
|
invalidStateEvent?: never;
|
|
2658
3040
|
error?: never;
|
|
@@ -2665,6 +3047,7 @@ export declare namespace ChatResponseStream {
|
|
|
2665
3047
|
interface CitationEventMember {
|
|
2666
3048
|
messageMetadataEvent?: never;
|
|
2667
3049
|
assistantResponseEvent?: never;
|
|
3050
|
+
reasoningContentEvent?: never;
|
|
2668
3051
|
dryRunSucceedEvent?: never;
|
|
2669
3052
|
codeReferenceEvent?: never;
|
|
2670
3053
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2674,6 +3057,9 @@ export declare namespace ChatResponseStream {
|
|
|
2674
3057
|
interactionComponentsEvent?: never;
|
|
2675
3058
|
toolUseEvent?: never;
|
|
2676
3059
|
toolResultEvent?: never;
|
|
3060
|
+
metadataEvent?: never;
|
|
3061
|
+
meteringEvent?: never;
|
|
3062
|
+
contextUsageEvent?: never;
|
|
2677
3063
|
citationEvent: CitationEvent;
|
|
2678
3064
|
invalidStateEvent?: never;
|
|
2679
3065
|
error?: never;
|
|
@@ -2686,6 +3072,7 @@ export declare namespace ChatResponseStream {
|
|
|
2686
3072
|
interface InvalidStateEventMember {
|
|
2687
3073
|
messageMetadataEvent?: never;
|
|
2688
3074
|
assistantResponseEvent?: never;
|
|
3075
|
+
reasoningContentEvent?: never;
|
|
2689
3076
|
dryRunSucceedEvent?: never;
|
|
2690
3077
|
codeReferenceEvent?: never;
|
|
2691
3078
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2695,6 +3082,9 @@ export declare namespace ChatResponseStream {
|
|
|
2695
3082
|
interactionComponentsEvent?: never;
|
|
2696
3083
|
toolUseEvent?: never;
|
|
2697
3084
|
toolResultEvent?: never;
|
|
3085
|
+
metadataEvent?: never;
|
|
3086
|
+
meteringEvent?: never;
|
|
3087
|
+
contextUsageEvent?: never;
|
|
2698
3088
|
citationEvent?: never;
|
|
2699
3089
|
invalidStateEvent: InvalidStateEvent;
|
|
2700
3090
|
error?: never;
|
|
@@ -2707,6 +3097,7 @@ export declare namespace ChatResponseStream {
|
|
|
2707
3097
|
interface ErrorMember {
|
|
2708
3098
|
messageMetadataEvent?: never;
|
|
2709
3099
|
assistantResponseEvent?: never;
|
|
3100
|
+
reasoningContentEvent?: never;
|
|
2710
3101
|
dryRunSucceedEvent?: never;
|
|
2711
3102
|
codeReferenceEvent?: never;
|
|
2712
3103
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2716,6 +3107,9 @@ export declare namespace ChatResponseStream {
|
|
|
2716
3107
|
interactionComponentsEvent?: never;
|
|
2717
3108
|
toolUseEvent?: never;
|
|
2718
3109
|
toolResultEvent?: never;
|
|
3110
|
+
metadataEvent?: never;
|
|
3111
|
+
meteringEvent?: never;
|
|
3112
|
+
contextUsageEvent?: never;
|
|
2719
3113
|
citationEvent?: never;
|
|
2720
3114
|
invalidStateEvent?: never;
|
|
2721
3115
|
error: InternalServerException;
|
|
@@ -2727,6 +3121,7 @@ export declare namespace ChatResponseStream {
|
|
|
2727
3121
|
interface $UnknownMember {
|
|
2728
3122
|
messageMetadataEvent?: never;
|
|
2729
3123
|
assistantResponseEvent?: never;
|
|
3124
|
+
reasoningContentEvent?: never;
|
|
2730
3125
|
dryRunSucceedEvent?: never;
|
|
2731
3126
|
codeReferenceEvent?: never;
|
|
2732
3127
|
supplementaryWebLinksEvent?: never;
|
|
@@ -2736,6 +3131,9 @@ export declare namespace ChatResponseStream {
|
|
|
2736
3131
|
interactionComponentsEvent?: never;
|
|
2737
3132
|
toolUseEvent?: never;
|
|
2738
3133
|
toolResultEvent?: never;
|
|
3134
|
+
metadataEvent?: never;
|
|
3135
|
+
meteringEvent?: never;
|
|
3136
|
+
contextUsageEvent?: never;
|
|
2739
3137
|
citationEvent?: never;
|
|
2740
3138
|
invalidStateEvent?: never;
|
|
2741
3139
|
error?: never;
|
|
@@ -2744,6 +3142,7 @@ export declare namespace ChatResponseStream {
|
|
|
2744
3142
|
interface Visitor<T> {
|
|
2745
3143
|
messageMetadataEvent: (value: MessageMetadataEvent) => T;
|
|
2746
3144
|
assistantResponseEvent: (value: AssistantResponseEvent) => T;
|
|
3145
|
+
reasoningContentEvent: (value: ReasoningContentEvent) => T;
|
|
2747
3146
|
dryRunSucceedEvent: (value: DryRunSucceedEvent) => T;
|
|
2748
3147
|
codeReferenceEvent: (value: CodeReferenceEvent) => T;
|
|
2749
3148
|
supplementaryWebLinksEvent: (value: SupplementaryWebLinksEvent) => T;
|
|
@@ -2753,6 +3152,9 @@ export declare namespace ChatResponseStream {
|
|
|
2753
3152
|
interactionComponentsEvent: (value: InteractionComponentsEvent) => T;
|
|
2754
3153
|
toolUseEvent: (value: ToolUseEvent) => T;
|
|
2755
3154
|
toolResultEvent: (value: ToolResultEvent) => T;
|
|
3155
|
+
metadataEvent: (value: MetadataEvent) => T;
|
|
3156
|
+
meteringEvent: (value: MeteringEvent) => T;
|
|
3157
|
+
contextUsageEvent: (value: ContextUsageEvent) => T;
|
|
2756
3158
|
citationEvent: (value: CitationEvent) => T;
|
|
2757
3159
|
invalidStateEvent: (value: InvalidStateEvent) => T;
|
|
2758
3160
|
error: (value: InternalServerException) => T;
|
|
@@ -2851,6 +3253,16 @@ export interface ConversationState {
|
|
|
2851
3253
|
*/
|
|
2852
3254
|
chatTriggerType: ChatTriggerType | undefined;
|
|
2853
3255
|
customizationArn?: string | undefined;
|
|
3256
|
+
/**
|
|
3257
|
+
* Unique identifier for the agent task execution
|
|
3258
|
+
* @public
|
|
3259
|
+
*/
|
|
3260
|
+
agentContinuationId?: string | undefined;
|
|
3261
|
+
/**
|
|
3262
|
+
* Type of agent task
|
|
3263
|
+
* @public
|
|
3264
|
+
*/
|
|
3265
|
+
agentTaskType?: AgentTaskType | undefined;
|
|
2854
3266
|
}
|
|
2855
3267
|
/**
|
|
2856
3268
|
* @internal
|
|
@@ -2877,6 +3289,7 @@ export declare const OutputFormat: {
|
|
|
2877
3289
|
readonly JAVA_CDK: "java/cdk";
|
|
2878
3290
|
readonly JSON_CFN: "json/cfn";
|
|
2879
3291
|
readonly PYTHON_CDK: "python/cdk";
|
|
3292
|
+
readonly TERRAFORM_IAC: "terraform/iac";
|
|
2880
3293
|
readonly TYPESCRIPT_CDK: "typescript/cdk";
|
|
2881
3294
|
readonly YAML_CFN: "yaml/cfn";
|
|
2882
3295
|
};
|
|
@@ -2884,34 +3297,6 @@ export declare const OutputFormat: {
|
|
|
2884
3297
|
* @public
|
|
2885
3298
|
*/
|
|
2886
3299
|
export type OutputFormat = typeof OutputFormat[keyof typeof OutputFormat];
|
|
2887
|
-
/**
|
|
2888
|
-
* @public
|
|
2889
|
-
* @enum
|
|
2890
|
-
*/
|
|
2891
|
-
export declare const ServiceQuotaExceededExceptionReason: {
|
|
2892
|
-
readonly CONVERSATION_LIMIT_EXCEEDED: "CONVERSATION_LIMIT_EXCEEDED";
|
|
2893
|
-
};
|
|
2894
|
-
/**
|
|
2895
|
-
* @public
|
|
2896
|
-
*/
|
|
2897
|
-
export type ServiceQuotaExceededExceptionReason = typeof ServiceQuotaExceededExceptionReason[keyof typeof ServiceQuotaExceededExceptionReason];
|
|
2898
|
-
/**
|
|
2899
|
-
* This exception is thrown when request was denied due to caller exceeding their usage limits
|
|
2900
|
-
* @public
|
|
2901
|
-
*/
|
|
2902
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
2903
|
-
readonly name: "ServiceQuotaExceededException";
|
|
2904
|
-
readonly $fault: "client";
|
|
2905
|
-
/**
|
|
2906
|
-
* Reason for ServiceQuotaExceededException
|
|
2907
|
-
* @public
|
|
2908
|
-
*/
|
|
2909
|
-
reason?: ServiceQuotaExceededExceptionReason | undefined;
|
|
2910
|
-
/**
|
|
2911
|
-
* @internal
|
|
2912
|
-
*/
|
|
2913
|
-
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
2914
|
-
}
|
|
2915
3300
|
/**
|
|
2916
3301
|
* Structure to represent a SendMessage request.
|
|
2917
3302
|
* @public
|