CoAgent8 - Source API
    Preparing search index...

    Function checkPriceLimit

    • Checks a user's price limit (AX-002). Separate from consent: neither models.allow nor an approval makes a model meet a limit, and only an exact price from a current list does.

      Parameters

      • model: string

        The concrete model, for the message.

      • evidence: PriceEvidence
      • below: number

        The limit in USD per million output tokens; strict, so a model priced at exactly the limit does not meet it.

      Returns string | undefined

      Why the model does not meet the limit, or undefined when it does.