UNPKG

@ui-tars/sdk

Version:

A powerful cross-platform(ANY device/platform) toolkit for building GUI automation agents for UI-TARS

29 lines 1.15 kB
import { type ClientOptions } from 'openai'; import { type ChatCompletionCreateParamsBase, type ChatCompletionMessageParam } from 'openai/resources/chat/completions'; import { Model, type InvokeParams, type InvokeOutput } from './types'; type OpenAIChatCompletionCreateParams = Omit<ClientOptions, 'maxRetries'> & Pick<ChatCompletionCreateParamsBase, 'model' | 'max_tokens' | 'temperature' | 'top_p'>; export interface UITarsModelConfig extends OpenAIChatCompletionCreateParams { } export declare class UITarsModel extends Model { protected readonly modelConfig: UITarsModelConfig; constructor(modelConfig: UITarsModelConfig); /** [widthFactor, heightFactor] */ get factors(): [number, number]; get modelName(): string; /** * call real LLM / VLM Model * @param params * @param options * @returns */ protected invokeModelProvider(params: { messages: Array<ChatCompletionMessageParam>; }, options: { signal?: AbortSignal; }): Promise<{ prediction: string; }>; invoke(params: InvokeParams): Promise<InvokeOutput>; } export {}; //# sourceMappingURL=Model.d.ts.map