Skip to main content

Interface: OperationAdmission

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

An admission bound to an operation: the whole amount for every run, run 1's bound, and run 1's lease. The runs' lease fences the row, so an operation admission never takes requireFence.

Extends​

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.

Inherited from​

SpendAdmission.at


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.

Inherited from​

SpendAdmission.capMicro


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.

Inherited from​

SpendAdmission.expires


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.

Inherited from​

SpendAdmission.kind


leaseUntil​

leaseUntil: Date

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

When run 1's lease ends.


micro​

micro: number

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

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

Inherited from​

SpendAdmission.micro


operation​

operation: string

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

The caller's name for the operation, unique among the store's reservations.


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.

Inherited from​

SpendAdmission.requireFence


runMicro​

runMicro: number

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

Run 1's bound in whole micro-dollars, at most micro.