Fix runTool helper in calendar tests to match execute() arity
This commit is contained in:
@@ -357,7 +357,13 @@ function memoryStore(initial: string | null): GoogleTokenStore & { current: stri
|
||||
}
|
||||
|
||||
async function runTool(tool: ReturnType<typeof createCalendarTool>, params: unknown): Promise<string> {
|
||||
const res = await tool.execute("tc-1", params as never);
|
||||
const res = await tool.execute(
|
||||
"tc-1",
|
||||
params as never,
|
||||
undefined as never,
|
||||
undefined as never,
|
||||
undefined as never,
|
||||
);
|
||||
return (res.content[0] as { text: string }).text;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user