Files
shakespeare/src/lib/tools/Tool.ts
T
2025-07-25 02:19:28 -05:00

12 lines
273 B
TypeScript

import type z from "zod";
export interface Tool<TParams> {
description: string;
parameters: z.ZodType<TParams>;
execute(args: TParams): Promise<CallToolResult>;
}
export interface CallToolResult {
content: { type: "text"; text: string; }[];
isError?: boolean;
}