ReadonlyfileReadonlymaxReadonlyttlReleases the state file. Later records stay in memory only.
Records a finished response and appends it to the state file before returning. Returns false when the response cannot be recorded. Never throws: a failed write is counted and the record stays usable in memory.
Optionalowner?: Readonly<{ applicationId?: string; tenantId?: string }>Pool that admitted the response.
Provider-reported input plus output tokens.
Returns the recorded size of the response a follow-up names, or undefined when the follow-up must be refused: the id was never recorded here, its record was dropped or has expired, or it belongs to another owner. The three cases are deliberately indistinguishable to the caller.
Optionalowner?: Readonly<{ applicationId?: string; tenantId?: string }>Pool the follow-up is routed to.
Counters for one pool. Pools that never used the store report zeros.
Absolute path of the state file.