@ax-llm/ax 16.0.3 → 16.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.cts CHANGED
@@ -629,6 +629,15 @@ type AxContextCacheOptions = {
629
629
  * Useful for serverless/short-lived processes.
630
630
  */
631
631
  registry?: AxContextCacheRegistry;
632
+ /**
633
+ * Controls where the cache breakpoint is set in the prompt prefix.
634
+ * Prefix order: System → Functions → Examples → User Input
635
+ *
636
+ * - 'after-examples' (default): Cache includes system + functions + examples
637
+ * - 'after-functions': Cache includes system + functions only (use when examples are dynamic)
638
+ * - 'system': Cache includes only system prompt (use when functions are dynamic)
639
+ */
640
+ cacheBreakpoint?: 'system' | 'after-functions' | 'after-examples';
632
641
  };
633
642
  /**
634
643
  * Information about a context cache entry (returned after creation or lookup).
package/index.d.ts CHANGED
@@ -629,6 +629,15 @@ type AxContextCacheOptions = {
629
629
  * Useful for serverless/short-lived processes.
630
630
  */
631
631
  registry?: AxContextCacheRegistry;
632
+ /**
633
+ * Controls where the cache breakpoint is set in the prompt prefix.
634
+ * Prefix order: System → Functions → Examples → User Input
635
+ *
636
+ * - 'after-examples' (default): Cache includes system + functions + examples
637
+ * - 'after-functions': Cache includes system + functions only (use when examples are dynamic)
638
+ * - 'system': Cache includes only system prompt (use when functions are dynamic)
639
+ */
640
+ cacheBreakpoint?: 'system' | 'after-functions' | 'after-examples';
632
641
  };
633
642
  /**
634
643
  * Information about a context cache entry (returned after creation or lookup).