AxProgramStateStore
Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/event/types.ts#L237
Methods
compareAndSet()
compareAndSet(
key: string,
expectedRevision: number | undefined,
state: Readonly<Omit<AxProgramStateEnvelope, "revision">>,
fence?: Readonly<{
deliveryId: string;
fencingToken: number;
}>): Promise<Readonly<AxProgramStateEnvelope>>;Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/event/types.ts#L239
Parameters
| Parameter | Type |
|---|---|
key | string |
expectedRevision | number | undefined |
state | Readonly<Omit<AxProgramStateEnvelope, "revision">> |
fence? | Readonly<{ deliveryId: string; fencingToken: number; }> |
Returns
Promise<Readonly<AxProgramStateEnvelope>>
delete()
delete(key: string): Promise<void>;Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/event/types.ts#L245
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
Promise<void>
load()
load(key: string): Promise<
| Readonly<AxProgramStateEnvelope>
| undefined>;Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/event/types.ts#L238
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
Promise<
| Readonly<AxProgramStateEnvelope>
| undefined>