We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8477a80 commit 6c28694Copy full SHA for 6c28694
tests/accuracy/sdk/test-tools.ts
@@ -12,7 +12,7 @@ import { Telemetry } from "../../../src/telemetry/telemetry.js";
12
import { Server } from "../../../src/server.js";
13
import { ToolCall } from "./accuracy-scorers.js";
14
15
-type ToolResultGeneratorFn = (...parameters: unknown[]) => CallToolResult;
+type ToolResultGeneratorFn = (...parameters: unknown[]) => CallToolResult | Promise<CallToolResult>;
16
export type MockedTools = Record<string, ToolResultGeneratorFn>;
17
18
function getDefaultToolResultGeneratorFn(): ToolResultGeneratorFn {
@@ -81,7 +81,7 @@ export class TestTools {
81
};
82
}
83
84
- return toolResultGeneratorFn(args);
+ return await toolResultGeneratorFn(args);
85
},
86
});
87
0 commit comments