Polyman Documentation - v3.1.0
    Preparing search index...

    Interface ToolRegistry

    Knows every tool and runs a call through all the checks.

    interface ToolRegistry {
        register(tool: Tool): void;
        specs(): ToolSpec[];
        riskOf(name: string): Risk | undefined;
        run(call: ToolCall, ctx: ToolContext): Promise<ToolOutput>;
    }

    Implemented by

    Index
    • The risk of a tool, or undefined when there is no such tool.

      Parameters

      • name: string

      Returns Risk | undefined