Creating Plot Twists
    Preparing search index...

    Interface ToolShed

    Interface for managing tool initialization and lifecycle. Implemented by the twist runtime to provide tools to twists and tools.

    interface ToolShed {
        build: ToolBuilder;
        ready: boolean;
        waitForReady(): Promise<void>;
        getTools<T>(): T;
    }
    Index

    Methods

    Properties

    Methods

    • Wait for all tool promises to resolve

      Returns Promise<void>

    • Get resolved tools (throws if not ready)

      Type Parameters

      • T

      Returns T

    Properties

    Build function for requesting tool dependencies

    ready: boolean

    Whether tools are ready (all promises resolved)