Skip to content

Commit bcec7dc

Browse files
committed
remove CompatibilityCallToolResultSchema - coming from protocol 2024-10-07, which had previous breaking changes
1 parent fe1b145 commit bcec7dc

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/types.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,19 +1035,6 @@ export const CallToolResultSchema = ResultSchema.extend({
10351035
isError: z.boolean().optional()
10361036
});
10371037

1038-
// const LegacyCallToolResultSchema = ResultSchema.extend({
1039-
// toolResult: z.unknown()
1040-
// });
1041-
1042-
// export type LegacyCallToolResult = z.infer<typeof LegacyCallToolResultSchema>;
1043-
1044-
// export const isLegacyCallToolResult = (value: unknown): value is LegacyCallToolResult => LegacyCallToolResultSchema.safeParse(value).success;
1045-
1046-
// /**
1047-
// * CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07.
1048-
// */
1049-
// export const CompatibilityCallToolResultSchema = CallToolResultSchema.or(LegacyCallToolResultSchema);
1050-
10511038
/**
10521039
* Parameters for a `tools/call` request.
10531040
*/
@@ -1737,7 +1724,6 @@ export type ListToolsRequest = Infer<typeof ListToolsRequestSchema>;
17371724
export type ListToolsResult = Infer<typeof ListToolsResultSchema>;
17381725
export type CallToolRequestParams = Infer<typeof CallToolRequestParamsSchema>;
17391726
export type CallToolResult = Infer<typeof CallToolResultSchema>;
1740-
// export type CompatibilityCallToolResult = Infer<typeof CompatibilityCallToolResultSchema>;
17411727
export type CallToolRequest = Infer<typeof CallToolRequestSchema>;
17421728
export type ToolListChangedNotification = Infer<typeof ToolListChangedNotificationSchema>;
17431729

0 commit comments

Comments
 (0)