| 29 | |
| 30 | // Define a structure for tools passed to the server |
| 31 | export interface ServerTool { |
| 32 | name: string; |
| 33 | schema: FunctionDeclaration; |
| 34 | // The execute method signature might differ slightly or be wrapped |
| 35 | execute( |
| 36 | params: Record<string, unknown>, |
| 37 | signal?: AbortSignal, |
| 38 | ): Promise<ToolResult>; |
| 39 | shouldConfirmExecute( |
| 40 | params: Record<string, unknown>, |
| 41 | abortSignal: AbortSignal, |
| 42 | ): Promise<ToolCallConfirmationDetails | false>; |
| 43 | } |
| 44 | |
| 45 | export enum AnusEventType { |
| 46 | Content = 'content', |
no outgoing calls
no test coverage detected