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

    Interface ChatOnlySwitch

    Tells the session when the model can only chat (no tool support). The chat builds it from Capabilities; workers have none.

    interface ChatOnlySwitch {
        active(): boolean;
        notice(): string;
        noteError(error: unknown): boolean;
    }
    Index
    • Looks at a failed model call. Returns true when it says the model has no tool support: tools are now off. Else the error ends the turn.

      Parameters

      • error: unknown

      Returns boolean