Class AIPluginTool

Class for creating instances of AI tools from plugins. It extends the Tool class and implements the AIPluginToolParams interface.

Hierarchy

  • Tool
    • AIPluginTool

Implements

  • AIPluginToolParams

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • params: AIPluginToolParams

    Returns AIPluginTool

Properties

apiSpec: string

Accessors

  • get description(): string
  • Returns string

  • get name(): string
  • Returns string

Methods

  • Static method that creates an instance of AIPluginTool from a given plugin URL. It fetches the plugin and its API specification from the provided URL and returns a new instance of AIPluginTool with the fetched data.

    Parameters

    • url: string

      The URL of the AI plugin.

    Returns Promise<AIPluginTool>

    A new instance of AIPluginTool.

Generated using TypeDoc