Represents a toolkit for working with Zapier actions. It extends the Toolkit class and provides functionality for managing Zapier tools.

Example

const toolkit = await ZapierToolKit.fromZapierNLAWrapper(
new ZapierNLAWrapper(),
);
const result = await toolkit.invoke({
input:
"Summarize the last email I received regarding Silicon Valley Bank. Send the summary to the #test-zapier Slack channel.",
});

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

tools: Tool[] = []

Methods

  • Creates a ZapierToolKit instance based on a ZapierNLAWrapper instance. It retrieves the list of available actions from the ZapierNLAWrapper and creates a ZapierNLARunAction tool for each action. The created tools are added to the tools property of the ZapierToolKit instance.

    Parameters

    • zapierNLAWrapper: ZapierNLAWrapper

      The ZapierNLAWrapper instance to create the ZapierToolKit from.

    Returns Promise<ZapierToolKit>

    A Promise that resolves to a ZapierToolKit instance.

Generated using TypeDoc