smartai/ts/abstract.classes.multimodal.ts

9 lines
311 B
TypeScript
Raw Normal View History

2024-03-31 00:32:37 +00:00
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>;
}