Skip to main content

Type Alias: AuthorizeModelAttemptResult

AuthorizeModelAttemptResult = { attempt: CreditAttemptRow; maxQuantities: Readonly<Record<string, number>>; remainingAttempts: number; status: "authorized" | "existing"; } | { reason: "not_found" | "hold_closed" | "attempts_exhausted" | "usage_exhausted" | "unknown_rate"; status: "refused"; }

Defined in: packages/agentos/src/safety/runtime/ModelAttemptBudget.ts:28

An authorization's answer. maxQuantities is the most of each component the attempt may use.