initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { ZodRawShape } from "zod";
|
||||
|
||||
export type TextResult = {
|
||||
content: {
|
||||
type: "text";
|
||||
text: string;
|
||||
}[];
|
||||
isError?: boolean;
|
||||
};
|
||||
|
||||
export type ToolDef = {
|
||||
title: string;
|
||||
config: {
|
||||
description: string;
|
||||
inputSchema: ZodRawShape,
|
||||
};
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
handler: (...args: any[]) => Promise<TextResult>;
|
||||
};
|
||||
Reference in New Issue
Block a user