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

    The capability table of one session. It adds the session state on top of lookupCapabilities: models that failed with tools_not_supported.

    Index
    noTools: Set<string> = ...
    overrides: CapabilityOverrides = {}

    the overrides of ai.json.

    live: Readonly<Record<string, ModelInfo>> = {}

    live model info, keyed by modelKey.

    • True when the model can only chat in this session.

      Parameters

      • providerId: string
      • modelId: string

      Returns boolean

    • Turns tools off for a model, for the rest of this session.

      Parameters

      • providerId: string
      • modelId: string

      Returns void

    • Looks at a failed call. On tools_not_supported it turns tools off for that model and returns chatOnlyNotice, the message to show the user. For any other error it changes nothing and returns undefined.

      Parameters

      • providerId: string
      • modelId: string
      • error: unknown

      Returns string | undefined