Function: authorizeModelAttempt()
authorizeModelAttempt(
store,input):Promise<AuthorizeModelAttemptResult>
Defined in: packages/agentos/src/safety/runtime/ModelAttemptBudget.ts:62
Authorizes one provider attempt, debiting the hold's aggregate allowance in the same transaction that checks it.
Refused once the hold has made maxAttempts attempts or is no longer held; a refused attempt must not be sent.
Parameters
store
input
Returns
Promise<AuthorizeModelAttemptResult>