langchain.js
    Preparing search index...

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

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    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.

    • Returns string