diff --git a/src/tools/tool_types.ts b/src/tools/tool_types.ts index 4cd9f09..1f82c60 100644 --- a/src/tools/tool_types.ts +++ b/src/tools/tool_types.ts @@ -10,4 +10,4 @@ export type ToolConfig = { implementation: Tool; }; -export type ToolCallback = (context: ToolContext, ...parameters: any) => undefined | string | Promise; +export type ToolCallback = (context: ToolContext, ...parameters: any) => string | undefined | void | Promise;