File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import {
11
11
ClientNotification ,
12
12
ClientRequest ,
13
13
ClientResult ,
14
- CompatibilityCallToolResultSchema ,
15
14
CompleteRequest ,
16
15
CompleteResultSchema ,
17
16
EmptyResultSchema ,
@@ -377,9 +376,7 @@ export class Client<
377
376
378
377
async callTool (
379
378
params : CallToolRequest [ "params" ] ,
380
- resultSchema :
381
- | typeof CallToolResultSchema
382
- | typeof CompatibilityCallToolResultSchema = CallToolResultSchema ,
379
+ resultSchema : typeof CallToolResultSchema ,
383
380
options ?: RequestOptions ,
384
381
) {
385
382
return this . request (
Original file line number Diff line number Diff line change @@ -752,15 +752,6 @@ export const CallToolResultSchema = ResultSchema.extend({
752
752
isError : z . boolean ( ) . default ( false ) . optional ( ) ,
753
753
} ) ;
754
754
755
- /**
756
- * CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07.
757
- */
758
- export const CompatibilityCallToolResultSchema = CallToolResultSchema . or (
759
- ResultSchema . extend ( {
760
- toolResult : z . unknown ( ) ,
761
- } ) ,
762
- ) ;
763
-
764
755
/**
765
756
* Used by the client to invoke a tool provided by the server.
766
757
*/
@@ -1195,9 +1186,6 @@ export type Tool = z.infer<typeof ToolSchema>;
1195
1186
export type ListToolsRequest = z . infer < typeof ListToolsRequestSchema > ;
1196
1187
export type ListToolsResult = z . infer < typeof ListToolsResultSchema > ;
1197
1188
export type CallToolResult = z . infer < typeof CallToolResultSchema > ;
1198
- export type CompatibilityCallToolResult = z . infer <
1199
- typeof CompatibilityCallToolResultSchema
1200
- > ;
1201
1189
export type CallToolRequest = z . infer < typeof CallToolRequestSchema > ;
1202
1190
export type ToolListChangedNotification = z . infer <
1203
1191
typeof ToolListChangedNotificationSchema
You can’t perform that action at this time.
0 commit comments