mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
13 lines
237 B
TypeScript
13 lines
237 B
TypeScript
import type z from "zod";
|
|
|
|
export interface ToolResult {
|
|
content: string;
|
|
cost?: number;
|
|
}
|
|
|
|
export interface Tool<TParams> {
|
|
description: string;
|
|
inputSchema?: z.ZodType<TParams>;
|
|
execute(args: TParams): Promise<ToolResult>;
|
|
}
|