smartai/ts/abstract.classes.multimodal.ts

16 lines
386 B
TypeScript
Raw Normal View History

2024-04-04 00:47:44 +00:00
export abstract class MultiModalModel {
/**
* starts the model
*/
2024-03-31 00:32:37 +00:00
abstract start(): Promise<void>;
2024-04-04 00:47:44 +00:00
/**
* stops the model
*/
2024-03-31 00:32:37 +00:00
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>;
}