Fix runTool helper in calendar tests to match execute() arity

This commit is contained in:
EugeneTes
2026-09-23 10:16:13 +00:00
parent ecf61c34e1
commit 2d294995fa

View File

@@ -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;
}