smartai/ts/abstract.classes.multimodal.ts
2024-03-31 01:32:37 +01:00

9 lines
311 B
TypeScript

export abstract class MultiModal {
abstract start(): Promise<void>;
abstract stop(): Promise<void>;
// Defines a streaming interface for chat interactions.
// The implementation will vary based on the specific AI model.
abstract chatStream(input: ReadableStream<string>): ReadableStream<string>;
}