Skip to main content

LensStudio:ChatAssistant

Module

Plugin module providing a chat assistant interface within Lens Studio.

Example

// ChatAssistant is an unreleased beta plugin class for building chat-based
// assistants in Lens Studio. It extends Editor.IPlugin.
//
// Descriptor properties:
// displayName: string — name shown in the chat UI
// examples: string[] — sample prompts displayed to the user
// iconUrl: string — URL to the assistant's icon
// multipleInstances: boolean — allow concurrent instances

export class LensStudioChatAssistantExampleAssistant extends ChatAssistant {
connections: any[];
static descriptor() {
const d = new Descriptor();
d.id = 'com.docs.LensStudioChatAssistantExample';
d.name = 'Example Chat Assistant';
d.description = 'Demonstrates a minimal ChatAssistant plugin';
d.displayName = 'Example Assistant';
d.examples = ['What assets are in my project?', 'List scene objects'];
d.iconUrl = '';
d.multipleInstances = false;
return d;
}
constructor(pluginSystem: Editor.PluginSystem, descriptor?: Descriptor) {
super(pluginSystem, descriptor);
this.connections = [];
}
}