Skip to main content

Interface: SpendAdmission

Defined in: packages/agentos/src/safety/runtime/SpendReservations.ts:97

What an admission asks for: its kind, its largest cost, when it starts and until when, and the cap it must fit under.

Extended by​

Properties​

at​

at: Date

Defined in: packages/agentos/src/safety/runtime/SpendReservations.ts:103

When it starts, a valid date; the reservation belongs to this time's UTC day.


capMicro​

capMicro: number

Defined in: packages/agentos/src/safety/runtime/SpendReservations.ts:113

The day's cap for this admission in whole micro-dollars, zero or more: the whole limit, or a share of it for a class of admission. Any other cap, infinity included, refuses the admission.


expires​

expires: Date

Defined in: packages/agentos/src/safety/runtime/SpendReservations.ts:108

When the reservation's time is up, a valid date, after which releaseExpiredSpend settles it: at its whole amount, or as the sweep's resolver decides when it has one.


kind​

kind: string

Defined in: packages/agentos/src/safety/runtime/SpendReservations.ts:99

What is admitted, such as session or call; the store records it and a refusal names it.


micro​

micro: number

Defined in: packages/agentos/src/safety/runtime/SpendReservations.ts:101

Its largest cost in whole micro-dollars, zero or more.


requireFence?​

optional requireFence: boolean

Defined in: packages/agentos/src/safety/runtime/SpendReservations.ts:115

A reservation only a sweep with a resolver may settle once its time is up; see releaseExpiredSpend.