initial cli api, some movement on tool selection
This commit is contained in:
10
types.ts
10
types.ts
@@ -1,3 +1,9 @@
|
||||
declare global {
|
||||
type Tool<T extends unknown[]> = (...args: T) => Promise<void>
|
||||
}
|
||||
type ToolFunc<T extends unknown[]> = (...args: T) => Promise<void>;
|
||||
interface ITool {
|
||||
name: string;
|
||||
description: string;
|
||||
run: ToolFunc<any[]>;
|
||||
help?: () => Promise<void> | void;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user