Skip to content

Commit c03504a

Browse files
committed
fix: update mockTool function to use inputSchema instead of parameters
1 parent 28b9f88 commit c03504a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/tests/unit/ai-sdk-adapter_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import { type ComposeDefinition, convertToAISDKTools, mcpc } from "@mcpc/core";
1111
// Mock AI SDK helpers for testing
1212
const mockTool = (options: {
1313
description: string;
14-
parameters: any;
14+
inputSchema: any;
1515
execute: (input: any) => Promise<any>;
1616
}) => {
1717
return {
1818
type: "function" as const,
1919
description: options.description,
20-
parameters: options.parameters,
20+
parameters: options.inputSchema,
2121
execute: options.execute,
2222
};
2323
};

0 commit comments

Comments
 (0)