@ui-tars/shared
Version:
Shared types for UI-TARS
34 lines (32 loc) • 843 B
TypeScript
interface Message {
from: 'gpt' | 'human';
value: string;
}
type Status = `${StatusEnum}`;
declare enum StatusEnum {
RUNNING = "running",
END = "end",
INIT = "init",
MAX_LOOP = "max_loop",
ERROR = "error"
}
interface VlmResponse {
generate_resp: {
input: string;
prediction: string;
uid: string;
}[];
}
interface ScreenshotResult {
base64: string;
width: number;
height: number;
}
type ActionInputs = Partial<Record<'content' | 'start_box' | 'end_box' | 'key' | 'hotkey' | 'direction', string>>;
interface PredictionParsed {
action_inputs: ActionInputs;
reflection: string | null;
action_type: string;
thought: string;
}
export { type ActionInputs, type Message, type PredictionParsed, type ScreenshotResult, type Status, StatusEnum, type VlmResponse };