Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

441 B
Raw Blame
import { Message, RequestBody } from '../types';

export interface AIProvider {
	supportsTools: boolean;
	supportsVision: boolean;
	supportsJson: boolean;

	createCompletion(body: RequestBody): Promise<Response>;
	createStreamingCompletion(body: RequestBody): Promise<ReadableStream>;
	formatMessages(messages: Message[]): any;
	formatResponse(response: any): any;
	listModels(): Promise<{ id: string; name: string; provider: string }[]>;
}