code cleanup. gismeteo prompt injection
This commit is contained in:
+3
-3
@@ -8,12 +8,12 @@ export type TextResult = {
|
||||
isError?: boolean;
|
||||
};
|
||||
|
||||
export type ToolDef = {
|
||||
export type ToolDef<T = (string | TextResult)> = {
|
||||
title: string;
|
||||
config: {
|
||||
description: string;
|
||||
inputSchema: ZodRawShape,
|
||||
inputSchema?: ZodRawShape,
|
||||
};
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
handler: (...args: any[]) => Promise<TextResult>;
|
||||
handler: (...args: any[]) => Promise<T>;
|
||||
};
|
||||
Reference in New Issue
Block a user