@vrspace/babylonjs
Version:
vrspace.org babylonjs client
40 lines (39 loc) • 1.23 kB
TypeScript
/**
* Special chatlog customized for LLM prompt.
*/
export class PromptUI extends ChatLog {
/**
* @type {PromptUI}
*/
static instance: PromptUI;
static callback: any;
static button: any;
static agent: string;
/** Becomes true or false after server info API call */
static available: any;
static agents: {
searchAgent: {
title: string;
name: string;
inputName: string;
endpoint: (q: any) => Promise<import("../../client/openapi/model/SearchAgentResponse.js").SearchAgentResponse>;
};
sceneAgent: {
title: string;
name: string;
inputName: string;
endpoint: (q: any) => Promise<string>;
};
};
static agentsEnabled(): Promise<any>;
static getInstance(world: any, agent: string, callback: any, button: any): PromptUI;
static showOrHide(): void;
static updateButton(button: any): Promise<void>;
constructor(world: any, agent: any);
world: any;
onClose: () => void;
indicator: LoadProgressIndicator;
close(): void;
}
import { ChatLog } from './chat-log.js';
import { LoadProgressIndicator } from '../load-progress-indicator.js';