AxContextCacheOperation
type AxContextCacheOperation = object;
Defined in: https://github.com/ax-llm/ax/blob/05ff5bd88d050f7ba85a3fcc6eb0ed2975ad7d51/src/ax/ai/types.ts#L919
Context cache operation to be executed by the base AI service. Providers define these operations; AxBaseAI executes them via apiCall().
Properties
apiConfig
apiConfig: AxAPI;
Defined in: https://github.com/ax-llm/ax/blob/05ff5bd88d050f7ba85a3fcc6eb0ed2975ad7d51/src/ax/ai/types.ts#L923
API endpoint configuration
parseResponse()
parseResponse: (response: unknown) => AxContextCacheInfo | undefined;
Defined in: https://github.com/ax-llm/ax/blob/05ff5bd88d050f7ba85a3fcc6eb0ed2975ad7d51/src/ax/ai/types.ts#L927
Parse the response and return cache info
Parameters
| Parameter | Type |
|---|---|
response | unknown |
Returns
AxContextCacheInfo | undefined
request
request: unknown;
Defined in: https://github.com/ax-llm/ax/blob/05ff5bd88d050f7ba85a3fcc6eb0ed2975ad7d51/src/ax/ai/types.ts#L925
Request payload
type
type: "create" | "update" | "delete" | "get";
Defined in: https://github.com/ax-llm/ax/blob/05ff5bd88d050f7ba85a3fcc6eb0ed2975ad7d51/src/ax/ai/types.ts#L921
Type of cache operation