Files
ai-utils/src/provider.ts
ztimson 2e28ffd152
All checks were successful
Publish Library / Build NPM Project (push) Successful in 21s
Publish Library / Tag Version (push) Successful in 7s
init
2025-10-28 22:18:11 -04:00

8 lines
254 B
TypeScript

import {LLMMessage, LLMOptions, LLMRequest} from './llm.ts';
export type AbortablePromise<T> = Promise<T> & {abort: () => void};
export abstract class LLMProvider {
abstract ask(message: string, options: LLMRequest): AbortablePromise<LLMMessage[]>;
}