Module providing base classes and interfaces for building AI-invokable ChatTool plugins in Lens Studio.
Example
// The LensStudio:ChatTool module provides the ChatTool plugin pattern for // building tools that a ChatAssistant can invoke. // // Module exports: // ChatTool — base class (extends IPlugin); override execute(parameters) // Descriptor — extends BaseDescriptor; adds schema (JSON Schema object) // Parameters — wrapper with data: any (parsed args matching the schema) // Result — wrapper with data: any and error: string // // Flow: ChatAssistant -> IChatToolRegistry -> ChatTool.execute(parameters) -> Result
Module providing base classes and interfaces for building AI-invokable ChatTool plugins in Lens Studio.
Example