askui
Version:
Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on
17 lines (16 loc) • 729 B
TypeScript
import { ControlCommand } from '../ui-control-commands/control-command';
import { Annotation } from '../annotation/annotation';
import { ModelType } from './model-type';
export interface InferenceResponseBody {
type: ModelType;
data: ModelType extends 'COMMANDS' ? ControlCommand : Annotation;
}
export interface VQAInferenceResponseBody {
data: {
response: string;
};
}
export declare class InferenceResponse {
static fromJson(json: InferenceResponseBody, resizeRatio?: number, image?: string): ControlCommand | Annotation;
static createModels(type: ModelType, data: ModelType extends 'COMMANDS' ? ControlCommand : Annotation, resizeRatio: number, image?: string): ControlCommand | Annotation;
}