Preparing search index...

    Interface for registering and discovering ChatTool instances within the plugin system.

        const ChatTool = await import('LensStudio:ChatTool');
    const registry = this.pluginSystem.findInterface(
    ChatTool.IChatToolRegistry
    ) as import('LensStudio:ChatTool').IChatToolRegistry;
    const tools = registry.tools;
    console.log(`Registered ChatTools: ${tools.length}`);
    for (const tool of tools) {
    console.log(` tool: ${tool.name} (${tool.id})`);
    }
    this.connections.push(
    registry.toolRegistered.connect((descriptor) => {
    console.log(`ChatTool registered: ${descriptor.name}`);
    })
    );

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    interfaceId: InterfaceId

    Unique identifier used to look up this interface via the plugin system.

    toolDeregistered: signal1<IPluginDescriptor, void>

    Signal emitted when a chat tool plugin is unregistered from the registry.

    toolRegistered: signal1<IPluginDescriptor, void>

    Signal emitted when a new chat tool plugin is registered.

    Array of all currently registered chat tool plugin descriptors.

    Methods

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean