| 2 | import { IServiceProvider } from 'providers/types'; |
| 3 | |
| 4 | export default interface INextChatService { |
| 5 | name: string; |
| 6 | context: IChatContext; |
| 7 | provider: IServiceProvider; |
| 8 | chat(message: IChatRequestMessage[], msgId?: string): void; |
| 9 | abort(): void; |
| 10 | onComplete(callback: (result: any) => Promise<void>): void; |
| 11 | onToolCalls(callback: (toolName: string) => void): void; |
| 12 | onReading(callback: (chunk: string, reasoning?: string) => void): void; |
| 13 | onError(callback: (error: any, aborted: boolean) => void): void; |
| 14 | } |
no outgoing calls
no test coverage detected