mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
12 lines
273 B
TypeScript
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;
|
|
} |