diff --git a/src.gen/@amzn/codewhisperer-streaming/README.md b/src.gen/@amzn/codewhisperer-streaming/README.md
index 5f5df60669d..d2b032b786e 100644
--- a/src.gen/@amzn/codewhisperer-streaming/README.md
+++ b/src.gen/@amzn/codewhisperer-streaming/README.md
@@ -227,13 +227,6 @@ CreateProfile
-CreateWorkspace
-
-
-[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/CreateWorkspaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/CreateWorkspaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/CreateWorkspaceCommandOutput/)
-
-
-
DeleteCustomization
@@ -304,13 +297,6 @@ ListTagsForResource
-ListWorkspaceMetadata
-
-
-[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/ListWorkspaceMetadataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/ListWorkspaceMetadataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/ListWorkspaceMetadataCommandOutput/)
-
-
-
TagResource
@@ -430,13 +416,6 @@ ListAvailableCustomizations
-ListAvailableProfiles
-
-
-[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/codewhispererstreaming/command/ListAvailableProfilesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/ListAvailableProfilesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-codewhispererstreaming/Interface/ListAvailableProfilesCommandOutput/)
-
-
-
ListCodeAnalysisFindings
diff --git a/src.gen/@amzn/codewhisperer-streaming/package-lock.json b/src.gen/@amzn/codewhisperer-streaming/package-lock.json
index 486e23794e7..1e647fe91d4 100644
--- a/src.gen/@amzn/codewhisperer-streaming/package-lock.json
+++ b/src.gen/@amzn/codewhisperer-streaming/package-lock.json
@@ -2155,10 +2155,11 @@
}
},
"node_modules/downlevel-dts/node_modules/typescript": {
- "version": "5.8.0-dev.20250214",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.0-dev.20250214.tgz",
- "integrity": "sha512-dCR/Ahs628POGDEAFfYjQrhiq+78IqPqrkq/+rnTzd+YvQKkB8jIbzXaeIwTQ0SJt2gKY8Cu8BbVUa8F3K6ZJw==",
+ "version": "5.9.0-dev.20250314",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.0-dev.20250314.tgz",
+ "integrity": "sha512-b9eLo5FjlR0BRMsYIxZYCrtTTUu97N1bh+DpQFCEm5OfRGzUg/Oc09fgct4jA4NF7R5Yg9oxWqVT90uto1TsvA==",
"dev": true,
+ "license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
diff --git a/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateAssistantResponseCommand.ts b/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateAssistantResponseCommand.ts
index 4bfdeb6aa74..275dd9fdb20 100644
--- a/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateAssistantResponseCommand.ts
+++ b/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateAssistantResponseCommand.ts
@@ -187,29 +187,6 @@ export interface GenerateAssistantResponseCommandOutput extends GenerateAssistan
* innerContext: "STRING_VALUE",
* },
* ],
- * toolResults: [ // ToolResults
- * { // ToolResult
- * toolUseId: "STRING_VALUE", // required
- * content: [ // ToolResultContent // required
- * { // ToolResultContentBlock Union: only one key present
- * text: "STRING_VALUE",
- * json: "DOCUMENT_VALUE",
- * },
- * ],
- * status: "success" || "error",
- * },
- * ],
- * tools: [ // Tools
- * { // Tool Union: only one key present
- * toolSpecification: { // ToolSpecification
- * inputSchema: { // ToolInputSchema
- * json: "DOCUMENT_VALUE",
- * },
- * name: "STRING_VALUE", // required
- * description: "STRING_VALUE",
- * },
- * },
- * ],
* },
* userIntent: "SUGGEST_ALTERNATE_IMPLEMENTATION" || "APPLY_COMMON_BEST_PRACTICES" || "IMPROVE_CODE" || "SHOW_EXAMPLES" || "CITE_SOURCES" || "EXPLAIN_LINE_BY_LINE" || "EXPLAIN_CODE_SELECTION" || "GENERATE_CLOUDFORMATION_TEMPLATE" || "GENERATE_UNIT_TESTS" || "CODE_GENERATION",
* },
@@ -339,29 +316,6 @@ export interface GenerateAssistantResponseCommandOutput extends GenerateAssistan
* innerContext: "STRING_VALUE",
* },
* ],
- * toolResults: [
- * {
- * toolUseId: "STRING_VALUE", // required
- * content: [ // required
- * {// Union: only one key present
- * text: "STRING_VALUE",
- * json: "DOCUMENT_VALUE",
- * },
- * ],
- * status: "success" || "error",
- * },
- * ],
- * tools: [
- * {// Union: only one key present
- * toolSpecification: {
- * inputSchema: {
- * json: "DOCUMENT_VALUE",
- * },
- * name: "STRING_VALUE", // required
- * description: "STRING_VALUE",
- * },
- * },
- * ],
* },
* userIntent: "SUGGEST_ALTERNATE_IMPLEMENTATION" || "APPLY_COMMON_BEST_PRACTICES" || "IMPROVE_CODE" || "SHOW_EXAMPLES" || "CITE_SOURCES" || "EXPLAIN_LINE_BY_LINE" || "EXPLAIN_CODE_SELECTION" || "GENERATE_CLOUDFORMATION_TEMPLATE" || "GENERATE_UNIT_TESTS" || "CODE_GENERATION",
* },
@@ -645,12 +599,6 @@ export interface GenerateAssistantResponseCommandOutput extends GenerateAssistan
* // },
* // ],
* // },
- * // toolUseEvent: { // ToolUseEvent
- * // toolUseId: "STRING_VALUE", // required
- * // name: "STRING_VALUE", // required
- * // input: "STRING_VALUE",
- * // stop: true || false,
- * // },
* // invalidStateEvent: { // InvalidStateEvent
* // reason: "INVALID_TASK_ASSIST_PLAN", // required
* // message: "STRING_VALUE", // required
diff --git a/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateTaskAssistPlanCommand.ts b/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateTaskAssistPlanCommand.ts
index ef188a0600a..003f5cb49e2 100644
--- a/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateTaskAssistPlanCommand.ts
+++ b/src.gen/@amzn/codewhisperer-streaming/src/commands/GenerateTaskAssistPlanCommand.ts
@@ -187,29 +187,6 @@ export interface GenerateTaskAssistPlanCommandOutput extends GenerateTaskAssistP
* innerContext: "STRING_VALUE",
* },
* ],
- * toolResults: [ // ToolResults
- * { // ToolResult
- * toolUseId: "STRING_VALUE", // required
- * content: [ // ToolResultContent // required
- * { // ToolResultContentBlock Union: only one key present
- * text: "STRING_VALUE",
- * json: "DOCUMENT_VALUE",
- * },
- * ],
- * status: "success" || "error",
- * },
- * ],
- * tools: [ // Tools
- * { // Tool Union: only one key present
- * toolSpecification: { // ToolSpecification
- * inputSchema: { // ToolInputSchema
- * json: "DOCUMENT_VALUE",
- * },
- * name: "STRING_VALUE", // required
- * description: "STRING_VALUE",
- * },
- * },
- * ],
* },
* userIntent: "SUGGEST_ALTERNATE_IMPLEMENTATION" || "APPLY_COMMON_BEST_PRACTICES" || "IMPROVE_CODE" || "SHOW_EXAMPLES" || "CITE_SOURCES" || "EXPLAIN_LINE_BY_LINE" || "EXPLAIN_CODE_SELECTION" || "GENERATE_CLOUDFORMATION_TEMPLATE" || "GENERATE_UNIT_TESTS" || "CODE_GENERATION",
* },
@@ -339,29 +316,6 @@ export interface GenerateTaskAssistPlanCommandOutput extends GenerateTaskAssistP
* innerContext: "STRING_VALUE",
* },
* ],
- * toolResults: [
- * {
- * toolUseId: "STRING_VALUE", // required
- * content: [ // required
- * {// Union: only one key present
- * text: "STRING_VALUE",
- * json: "DOCUMENT_VALUE",
- * },
- * ],
- * status: "success" || "error",
- * },
- * ],
- * tools: [
- * {// Union: only one key present
- * toolSpecification: {
- * inputSchema: {
- * json: "DOCUMENT_VALUE",
- * },
- * name: "STRING_VALUE", // required
- * description: "STRING_VALUE",
- * },
- * },
- * ],
* },
* userIntent: "SUGGEST_ALTERNATE_IMPLEMENTATION" || "APPLY_COMMON_BEST_PRACTICES" || "IMPROVE_CODE" || "SHOW_EXAMPLES" || "CITE_SOURCES" || "EXPLAIN_LINE_BY_LINE" || "EXPLAIN_CODE_SELECTION" || "GENERATE_CLOUDFORMATION_TEMPLATE" || "GENERATE_UNIT_TESTS" || "CODE_GENERATION",
* },
@@ -648,12 +602,6 @@ export interface GenerateTaskAssistPlanCommandOutput extends GenerateTaskAssistP
* // },
* // ],
* // },
- * // toolUseEvent: { // ToolUseEvent
- * // toolUseId: "STRING_VALUE", // required
- * // name: "STRING_VALUE", // required
- * // input: "STRING_VALUE",
- * // stop: true || false,
- * // },
* // invalidStateEvent: { // InvalidStateEvent
* // reason: "INVALID_TASK_ASSIST_PLAN", // required
* // message: "STRING_VALUE", // required
diff --git a/src.gen/@amzn/codewhisperer-streaming/src/commands/SendMessageCommand.ts b/src.gen/@amzn/codewhisperer-streaming/src/commands/SendMessageCommand.ts
index 8a83024b54d..be12558fd8a 100644
--- a/src.gen/@amzn/codewhisperer-streaming/src/commands/SendMessageCommand.ts
+++ b/src.gen/@amzn/codewhisperer-streaming/src/commands/SendMessageCommand.ts
@@ -188,29 +188,6 @@ export interface SendMessageCommandOutput extends SendMessageResponse, __Metadat
* innerContext: "STRING_VALUE",
* },
* ],
- * toolResults: [ // ToolResults
- * { // ToolResult
- * toolUseId: "STRING_VALUE", // required
- * content: [ // ToolResultContent // required
- * { // ToolResultContentBlock Union: only one key present
- * text: "STRING_VALUE",
- * json: "DOCUMENT_VALUE",
- * },
- * ],
- * status: "success" || "error",
- * },
- * ],
- * tools: [ // Tools
- * { // Tool Union: only one key present
- * toolSpecification: { // ToolSpecification
- * inputSchema: { // ToolInputSchema
- * json: "DOCUMENT_VALUE",
- * },
- * name: "STRING_VALUE", // required
- * description: "STRING_VALUE",
- * },
- * },
- * ],
* },
* userIntent: "SUGGEST_ALTERNATE_IMPLEMENTATION" || "APPLY_COMMON_BEST_PRACTICES" || "IMPROVE_CODE" || "SHOW_EXAMPLES" || "CITE_SOURCES" || "EXPLAIN_LINE_BY_LINE" || "EXPLAIN_CODE_SELECTION" || "GENERATE_CLOUDFORMATION_TEMPLATE" || "GENERATE_UNIT_TESTS" || "CODE_GENERATION",
* },
@@ -340,29 +317,6 @@ export interface SendMessageCommandOutput extends SendMessageResponse, __Metadat
* innerContext: "STRING_VALUE",
* },
* ],
- * toolResults: [
- * {
- * toolUseId: "STRING_VALUE", // required
- * content: [ // required
- * {// Union: only one key present
- * text: "STRING_VALUE",
- * json: "DOCUMENT_VALUE",
- * },
- * ],
- * status: "success" || "error",
- * },
- * ],
- * tools: [
- * {// Union: only one key present
- * toolSpecification: {
- * inputSchema: {
- * json: "DOCUMENT_VALUE",
- * },
- * name: "STRING_VALUE", // required
- * description: "STRING_VALUE",
- * },
- * },
- * ],
* },
* userIntent: "SUGGEST_ALTERNATE_IMPLEMENTATION" || "APPLY_COMMON_BEST_PRACTICES" || "IMPROVE_CODE" || "SHOW_EXAMPLES" || "CITE_SOURCES" || "EXPLAIN_LINE_BY_LINE" || "EXPLAIN_CODE_SELECTION" || "GENERATE_CLOUDFORMATION_TEMPLATE" || "GENERATE_UNIT_TESTS" || "CODE_GENERATION",
* },
@@ -647,12 +601,6 @@ export interface SendMessageCommandOutput extends SendMessageResponse, __Metadat
* // },
* // ],
* // },
- * // toolUseEvent: { // ToolUseEvent
- * // toolUseId: "STRING_VALUE", // required
- * // name: "STRING_VALUE", // required
- * // input: "STRING_VALUE",
- * // stop: true || false,
- * // },
* // invalidStateEvent: { // InvalidStateEvent
* // reason: "INVALID_TASK_ASSIST_PLAN", // required
* // message: "STRING_VALUE", // required
diff --git a/src.gen/@amzn/codewhisperer-streaming/src/models/models_0.ts b/src.gen/@amzn/codewhisperer-streaming/src/models/models_0.ts
index 07e2794da2d..aedcc9397af 100644
--- a/src.gen/@amzn/codewhisperer-streaming/src/models/models_0.ts
+++ b/src.gen/@amzn/codewhisperer-streaming/src/models/models_0.ts
@@ -4,7 +4,6 @@ import {
SENSITIVE_STRING,
ExceptionOptionType as __ExceptionOptionType,
} from "@smithy/smithy-client";
-import { DocumentType as __DocumentType } from "@smithy/types";
/**
* @public
@@ -1268,239 +1267,6 @@ export const ShellStateFilterSensitiveLog = (obj: ShellState): any => ({
}),
})
-/**
- * @public
- */
-export type ToolResultContentBlock =
- | ToolResultContentBlock.JsonMember
- | ToolResultContentBlock.TextMember
- | ToolResultContentBlock.$UnknownMember
-
-/**
- * @public
- */
-export namespace ToolResultContentBlock {
-
- /**
- * A tool result that is text.
- * @public
- */
- export interface TextMember {
- text: string;
- json?: never;
- $unknown?: never;
- }
-
- /**
- * A tool result that is JSON format data.
- * @public
- */
- export interface JsonMember {
- text?: never;
- json: __DocumentType;
- $unknown?: never;
- }
-
- /**
- * @public
- */
- export interface $UnknownMember {
- text?: never;
- json?: never;
- $unknown: [string, any];
- }
-
- export interface Visitor {
- text: (value: string) => T;
- json: (value: __DocumentType) => T;
- _: (name: string, value: any) => T;
- }
-
- export const visit = (
- value: ToolResultContentBlock,
- visitor: Visitor
- ): T => {
- if (value.text !== undefined) return visitor.text(value.text);
- if (value.json !== undefined) return visitor.json(value.json);
- return visitor._(value.$unknown[0], value.$unknown[1]);
- }
-
-}
-/**
- * @internal
- */
-export const ToolResultContentBlockFilterSensitiveLog = (obj: ToolResultContentBlock): any => {
- if (obj.text !== undefined) return {text:
- SENSITIVE_STRING
- };
- if (obj.json !== undefined) return {json:
- SENSITIVE_STRING
- };
- if (obj.$unknown !== undefined) return {[obj.$unknown[0]]: 'UNKNOWN'};
-}
-
-/**
- * @public
- * @enum
- */
-export const ToolResultStatus = {
- ERROR: "error",
- SUCCESS: "success",
-} as const
-/**
- * @public
- */
-export type ToolResultStatus = typeof ToolResultStatus[keyof typeof ToolResultStatus]
-
-/**
- * A tool result that contains the results for a tool request that was previously made.
- * @public
- */
-export interface ToolResult {
- /**
- * The ID for the tool request.
- * @public
- */
- toolUseId: string | undefined;
-
- /**
- * Content of the tool result.
- * @public
- */
- content: (ToolResultContentBlock)[] | undefined;
-
- /**
- * Status of the tools result.
- * @public
- */
- status?: ToolResultStatus | undefined;
-}
-
-/**
- * @internal
- */
-export const ToolResultFilterSensitiveLog = (obj: ToolResult): any => ({
- ...obj,
- ...(obj.content && { content:
- obj.content.map(
- item =>
- ToolResultContentBlockFilterSensitiveLog(item)
- )
- }),
-})
-
-/**
- * The input schema for the tool in JSON format.
- * @public
- */
-export interface ToolInputSchema {
- json?: __DocumentType | undefined;
-}
-
-/**
- * @internal
- */
-export const ToolInputSchemaFilterSensitiveLog = (obj: ToolInputSchema): any => ({
- ...obj,
- ...(obj.json && { json:
- SENSITIVE_STRING
- }),
-})
-
-/**
- * The specification for the tool.
- * @public
- */
-export interface ToolSpecification {
- /**
- * The input schema for the tool in JSON format.
- * @public
- */
- inputSchema: ToolInputSchema | undefined;
-
- /**
- * The name for the tool.
- * @public
- */
- name: string | undefined;
-
- /**
- * The description for the tool.
- * @public
- */
- description?: string | undefined;
-}
-
-/**
- * @internal
- */
-export const ToolSpecificationFilterSensitiveLog = (obj: ToolSpecification): any => ({
- ...obj,
- ...(obj.inputSchema && { inputSchema:
- ToolInputSchemaFilterSensitiveLog(obj.inputSchema)
- }),
- ...(obj.name && { name:
- SENSITIVE_STRING
- }),
- ...(obj.description && { description:
- SENSITIVE_STRING
- }),
-})
-
-/**
- * Information about a tool that can be used.
- * @public
- */
-export type Tool =
- | Tool.ToolSpecificationMember
- | Tool.$UnknownMember
-
-/**
- * @public
- */
-export namespace Tool {
-
- /**
- * The specification for the tool.
- * @public
- */
- export interface ToolSpecificationMember {
- toolSpecification: ToolSpecification;
- $unknown?: never;
- }
-
- /**
- * @public
- */
- export interface $UnknownMember {
- toolSpecification?: never;
- $unknown: [string, any];
- }
-
- export interface Visitor {
- toolSpecification: (value: ToolSpecification) => T;
- _: (name: string, value: any) => T;
- }
-
- export const visit = (
- value: Tool,
- visitor: Visitor
- ): T => {
- if (value.toolSpecification !== undefined) return visitor.toolSpecification(value.toolSpecification);
- return visitor._(value.$unknown[0], value.$unknown[1]);
- }
-
-}
-/**
- * @internal
- */
-export const ToolFilterSensitiveLog = (obj: Tool): any => {
- if (obj.toolSpecification !== undefined) return {toolSpecification:
- ToolSpecificationFilterSensitiveLog(obj.toolSpecification)
- };
- if (obj.$unknown !== undefined) return {[obj.$unknown[0]]: 'UNKNOWN'};
-}
-
/**
* Settings information passed by the Q widget
* @public
@@ -1567,18 +1333,6 @@ export interface UserInputMessageContext {
* @public
*/
additionalContext?: (AdditionalContentEntry)[] | undefined;
-
- /**
- * ToolResults for the requested ToolUses
- * @public
- */
- toolResults?: (ToolResult)[] | undefined;
-
- /**
- * Tools that can be used.
- * @public
- */
- tools?: (Tool)[] | undefined;
}
/**
@@ -1613,18 +1367,6 @@ export const UserInputMessageContextFilterSensitiveLog = (obj: UserInputMessageC
AdditionalContentEntryFilterSensitiveLog(item)
)
}),
- ...(obj.toolResults && { toolResults:
- obj.toolResults.map(
- item =>
- ToolResultFilterSensitiveLog(item)
- )
- }),
- ...(obj.tools && { tools:
- obj.tools.map(
- item =>
- ToolFilterSensitiveLog(item)
- )
- }),
})
/**
@@ -3024,49 +2766,6 @@ export const SupplementaryWebLinksEventFilterSensitiveLog = (obj: SupplementaryW
}),
})
-/**
- * Event for a ToolUse request. Multiple ToolUse requests can be returned from a single request, so each ToolUse has a unique 'toolUseId'.
- * @public
- */
-export interface ToolUseEvent {
- /**
- * The ID for the tool request.
- * @public
- */
- toolUseId: string | undefined;
-
- /**
- * The name for the tool.
- * @public
- */
- name: string | undefined;
-
- /**
- * Represents the serialized json input for the ToolUse request. This field should be concatenated until 'stop' is true.
- * @public
- */
- input?: string | undefined;
-
- /**
- * This field is true when all of the serialized input for this ToolUse request has been sent.
- * @public
- */
- stop?: boolean | undefined;
-}
-
-/**
- * @internal
- */
-export const ToolUseEventFilterSensitiveLog = (obj: ToolUseEvent): any => ({
- ...obj,
- ...(obj.name && { name:
- SENSITIVE_STRING
- }),
- ...(obj.input && { input:
- SENSITIVE_STRING
- }),
-})
-
/**
* Streaming events from UniDirectional Streaming Conversational APIs.
* @public
@@ -3083,7 +2782,6 @@ export type ChatResponseStream =
| ChatResponseStream.InvalidStateEventMember
| ChatResponseStream.MessageMetadataEventMember
| ChatResponseStream.SupplementaryWebLinksEventMember
- | ChatResponseStream.ToolUseEventMember
| ChatResponseStream.$UnknownMember
/**
@@ -3105,7 +2803,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent?: never;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent?: never;
error?: never;
$unknown?: never;
@@ -3125,7 +2822,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent?: never;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent?: never;
error?: never;
$unknown?: never;
@@ -3145,7 +2841,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent?: never;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent?: never;
error?: never;
$unknown?: never;
@@ -3165,7 +2860,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent?: never;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent?: never;
error?: never;
$unknown?: never;
@@ -3185,7 +2879,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent?: never;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent?: never;
error?: never;
$unknown?: never;
@@ -3205,7 +2898,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent?: never;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent?: never;
error?: never;
$unknown?: never;
@@ -3225,7 +2917,6 @@ export namespace ChatResponseStream {
codeEvent: CodeEvent;
intentsEvent?: never;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent?: never;
error?: never;
$unknown?: never;
@@ -3245,7 +2936,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent: IntentsEvent;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent?: never;
error?: never;
$unknown?: never;
@@ -3265,27 +2955,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent?: never;
interactionComponentsEvent: InteractionComponentsEvent;
- toolUseEvent?: never;
- invalidStateEvent?: never;
- error?: never;
- $unknown?: never;
- }
-
- /**
- * ToolUse event
- * @public
- */
- export interface ToolUseEventMember {
- messageMetadataEvent?: never;
- assistantResponseEvent?: never;
- dryRunSucceedEvent?: never;
- codeReferenceEvent?: never;
- supplementaryWebLinksEvent?: never;
- followupPromptEvent?: never;
- codeEvent?: never;
- intentsEvent?: never;
- interactionComponentsEvent?: never;
- toolUseEvent: ToolUseEvent;
invalidStateEvent?: never;
error?: never;
$unknown?: never;
@@ -3305,7 +2974,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent?: never;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent: InvalidStateEvent;
error?: never;
$unknown?: never;
@@ -3325,7 +2993,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent?: never;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent?: never;
error: InternalServerException;
$unknown?: never;
@@ -3344,7 +3011,6 @@ export namespace ChatResponseStream {
codeEvent?: never;
intentsEvent?: never;
interactionComponentsEvent?: never;
- toolUseEvent?: never;
invalidStateEvent?: never;
error?: never;
$unknown: [string, any];
@@ -3360,7 +3026,6 @@ export namespace ChatResponseStream {
codeEvent: (value: CodeEvent) => T;
intentsEvent: (value: IntentsEvent) => T;
interactionComponentsEvent: (value: InteractionComponentsEvent) => T;
- toolUseEvent: (value: ToolUseEvent) => T;
invalidStateEvent: (value: InvalidStateEvent) => T;
error: (value: InternalServerException) => T;
_: (name: string, value: any) => T;
@@ -3379,7 +3044,6 @@ export namespace ChatResponseStream {
if (value.codeEvent !== undefined) return visitor.codeEvent(value.codeEvent);
if (value.intentsEvent !== undefined) return visitor.intentsEvent(value.intentsEvent);
if (value.interactionComponentsEvent !== undefined) return visitor.interactionComponentsEvent(value.interactionComponentsEvent);
- if (value.toolUseEvent !== undefined) return visitor.toolUseEvent(value.toolUseEvent);
if (value.invalidStateEvent !== undefined) return visitor.invalidStateEvent(value.invalidStateEvent);
if (value.error !== undefined) return visitor.error(value.error);
return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -3417,9 +3081,6 @@ export const ChatResponseStreamFilterSensitiveLog = (obj: ChatResponseStream): a
if (obj.interactionComponentsEvent !== undefined) return {interactionComponentsEvent:
InteractionComponentsEventFilterSensitiveLog(obj.interactionComponentsEvent)
};
- if (obj.toolUseEvent !== undefined) return {toolUseEvent:
- ToolUseEventFilterSensitiveLog(obj.toolUseEvent)
- };
if (obj.invalidStateEvent !== undefined) return {invalidStateEvent:
obj.invalidStateEvent
};
diff --git a/src.gen/@amzn/codewhisperer-streaming/src/protocols/Aws_restJson1.ts b/src.gen/@amzn/codewhisperer-streaming/src/protocols/Aws_restJson1.ts
index 252aa8f3e43..b2641a47930 100644
--- a/src.gen/@amzn/codewhisperer-streaming/src/protocols/Aws_restJson1.ts
+++ b/src.gen/@amzn/codewhisperer-streaming/src/protocols/Aws_restJson1.ts
@@ -67,12 +67,6 @@ import {
TextDocument,
TextDocumentDiagnostic,
ThrottlingException,
- Tool,
- ToolInputSchema,
- ToolResult,
- ToolResultContentBlock,
- ToolSpecification,
- ToolUseEvent,
TransformationExportContext,
UnitTestGenerationExportContext,
UserInputMessage,
@@ -101,7 +95,6 @@ import {
withBaseException,
} from "@smithy/smithy-client";
import {
- DocumentType as __DocumentType,
Endpoint as __Endpoint,
EventStreamSerdeContext as __EventStreamSerdeContext,
ResponseMetadata as __ResponseMetadata,
@@ -147,7 +140,7 @@ export const se_GenerateAssistantResponseCommand = async(
b.bp("/generateAssistantResponse");
let body: any;
body = JSON.stringify(take(input, {
- 'conversationState': _ => se_ConversationState(_, context),
+ 'conversationState': _ => _json(_),
'profileArn': [],
}));
b.m("POST")
@@ -170,7 +163,7 @@ export const se_GenerateTaskAssistPlanCommand = async(
b.bp("/generateTaskAssistPlan");
let body: any;
body = JSON.stringify(take(input, {
- 'conversationState': _ => se_ConversationState(_, context),
+ 'conversationState': _ => _json(_),
'workspaceState': _ => _json(_),
}));
b.m("POST")
@@ -193,7 +186,7 @@ export const se_SendMessageCommand = async(
b.bp("/SendMessageStreaming");
let body: any;
body = JSON.stringify(take(input, {
- 'conversationState': _ => se_ConversationState(_, context),
+ 'conversationState': _ => _json(_),
'dryRun': [],
'profileArn': [],
'source': [],
@@ -552,11 +545,6 @@ const de_CommandError = async(
interactionComponentsEvent: await de_InteractionComponentsEvent_event(event["interactionComponentsEvent"], context),
};
}
- if (event["toolUseEvent"] != null) {
- return {
- toolUseEvent: await de_ToolUseEvent_event(event["toolUseEvent"], context),
- };
- }
if (event["invalidStateEvent"] != null) {
return {
invalidStateEvent: await de_InvalidStateEvent_event(event["invalidStateEvent"], context),
@@ -709,15 +697,6 @@ const de_CommandError = async(
Object.assign(contents, _json(data));
return contents;
}
- const de_ToolUseEvent_event = async (
- output: any,
- context: __SerdeContext
- ): Promise => {
- const contents: ToolUseEvent = {} as any;
- const data: any = await parseBody(output.body, context);
- Object.assign(contents, _json(data));
- return contents;
- }
const de_InteractionComponentsEvent_event = async (
output: any,
context: __SerdeContext
@@ -735,49 +714,13 @@ const de_CommandError = async(
// se_AssistantResponseMessage omitted.
- /**
- * serializeAws_restJson1ChatHistory
- */
- const se_ChatHistory = (
- input: (ChatMessage)[],
- context: __SerdeContext
- ): any => {
- return input.filter((e: any) => e != null).map(entry => {
- return se_ChatMessage(entry, context);
- });
- }
+ // se_ChatHistory omitted.
- /**
- * serializeAws_restJson1ChatMessage
- */
- const se_ChatMessage = (
- input: ChatMessage,
- context: __SerdeContext
- ): any => {
- return ChatMessage.visit(input, {
- assistantResponseMessage: value => ({ "assistantResponseMessage": _json(value) }),
- userInputMessage: value => ({ "userInputMessage": se_UserInputMessage(value, context) }),
- _: (name, value) => ({ name: value } as any)
- });
- }
+ // se_ChatMessage omitted.
// se_ConsoleState omitted.
- /**
- * serializeAws_restJson1ConversationState
- */
- const se_ConversationState = (
- input: ConversationState,
- context: __SerdeContext
- ): any => {
- return take(input, {
- 'chatTriggerType': [],
- 'conversationId': [],
- 'currentMessage': _ => se_ChatMessage(_, context),
- 'customizationArn': [],
- 'history': _ => se_ChatHistory(_, context),
- });
- }
+ // se_ConversationState omitted.
// se_CursorState omitted.
@@ -817,16 +760,6 @@ const de_CommandError = async(
// se_RuntimeDiagnostic omitted.
- /**
- * serializeAws_restJson1SensitiveDocument
- */
- const se_SensitiveDocument = (
- input: __DocumentType,
- context: __SerdeContext
- ): any => {
- return input;
- }
-
// se_ShellHistory omitted.
// se_ShellHistoryEntry omitted.
@@ -843,148 +776,13 @@ const de_CommandError = async(
// se_TextDocumentDiagnostic omitted.
- /**
- * serializeAws_restJson1Tool
- */
- const se_Tool = (
- input: Tool,
- context: __SerdeContext
- ): any => {
- return Tool.visit(input, {
- toolSpecification: value => ({ "toolSpecification": se_ToolSpecification(value, context) }),
- _: (name, value) => ({ name: value } as any)
- });
- }
-
- /**
- * serializeAws_restJson1ToolInputSchema
- */
- const se_ToolInputSchema = (
- input: ToolInputSchema,
- context: __SerdeContext
- ): any => {
- return take(input, {
- 'json': _ => se_SensitiveDocument(_, context),
- });
- }
-
- /**
- * serializeAws_restJson1ToolResult
- */
- const se_ToolResult = (
- input: ToolResult,
- context: __SerdeContext
- ): any => {
- return take(input, {
- 'content': _ => se_ToolResultContent(_, context),
- 'status': [],
- 'toolUseId': [],
- });
- }
-
- /**
- * serializeAws_restJson1ToolResultContent
- */
- const se_ToolResultContent = (
- input: (ToolResultContentBlock)[],
- context: __SerdeContext
- ): any => {
- return input.filter((e: any) => e != null).map(entry => {
- return se_ToolResultContentBlock(entry, context);
- });
- }
-
- /**
- * serializeAws_restJson1ToolResultContentBlock
- */
- const se_ToolResultContentBlock = (
- input: ToolResultContentBlock,
- context: __SerdeContext
- ): any => {
- return ToolResultContentBlock.visit(input, {
- json: value => ({ "json": se_SensitiveDocument(value, context) }),
- text: value => ({ "text": value }),
- _: (name, value) => ({ name: value } as any)
- });
- }
-
- /**
- * serializeAws_restJson1ToolResults
- */
- const se_ToolResults = (
- input: (ToolResult)[],
- context: __SerdeContext
- ): any => {
- return input.filter((e: any) => e != null).map(entry => {
- return se_ToolResult(entry, context);
- });
- }
-
- /**
- * serializeAws_restJson1Tools
- */
- const se_Tools = (
- input: (Tool)[],
- context: __SerdeContext
- ): any => {
- return input.filter((e: any) => e != null).map(entry => {
- return se_Tool(entry, context);
- });
- }
-
- /**
- * serializeAws_restJson1ToolSpecification
- */
- const se_ToolSpecification = (
- input: ToolSpecification,
- context: __SerdeContext
- ): any => {
- return take(input, {
- 'description': [],
- 'inputSchema': _ => se_ToolInputSchema(_, context),
- 'name': [],
- });
- }
-
// se_TransformationExportContext omitted.
// se_UnitTestGenerationExportContext omitted.
- /**
- * serializeAws_restJson1UserInputMessage
- */
- const se_UserInputMessage = (
- input: UserInputMessage,
- context: __SerdeContext
- ): any => {
- return take(input, {
- 'content': [],
- 'userInputMessageContext': _ => se_UserInputMessageContext(_, context),
- 'userIntent': [],
- });
- }
+ // se_UserInputMessage omitted.
- /**
- * serializeAws_restJson1UserInputMessageContext
- */
- const se_UserInputMessageContext = (
- input: UserInputMessageContext,
- context: __SerdeContext
- ): any => {
- return take(input, {
- 'additionalContext': _json,
- 'appStudioContext': _json,
- 'consoleState': _json,
- 'diagnostic': _json,
- 'editorState': _json,
- 'envState': _json,
- 'gitState': _json,
- 'shellState': _json,
- 'toolResults': _ => se_ToolResults(_, context),
- 'tools': _ => se_Tools(_, context),
- 'userSettings': _json,
- });
- }
+ // se_UserInputMessageContext omitted.
// se_UserSettings omitted.
@@ -1040,8 +838,6 @@ const de_CommandError = async(
// de_SupplementaryWebLinksEvent omitted.
- // de_ToolUseEvent omitted.
-
/**
* deserializeAws_restJson1InteractionComponentsEvent
*/