Optionalconfig: SettingsConfig<ChatBotPluginSettings>ReadonlynameDisplay name of the plugin
ReadonlysettingsIts settings: those saved in the local storage set, then config.
ReadonlyviewerStatic ReadonlyToolbarToolbar items provided by the plugin
Toolbar item opening the ChatBotWidget. Disabled when the loaded source is not a Twin.
List of plugins this plugin depends on
Whether the plugin has at least one setting an interface shows (not hidden).
Called when the plugin is registered in the viewer.
Called when the plugin is unregistred from the viewer.
StaticCreate
Plugin registering the
ChatBotwidget, a conversation with Elliot, the Teia assistant: it answers questions about the loaded Twin, executes viewer commands and previews quantity take-offs. The widget also edits the flows and the aliases of the assistant, and displays the token quota of the instance.Requires the
TeiaandViewportplugins to be registered: it uses the Tia API client of the Teia plugin. Call setupLegacyPluginsTranslation once i18next is initialized to load its translations.