@ax-llm/ax 14.0.44 → 15.0.0

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
@@ -1945,6 +1945,34 @@ declare class AxPromptTemplate {
1945
1945
  private readonly functions?;
1946
1946
  private readonly cacheSystemPrompt?;
1947
1947
  constructor(sig: Readonly<AxSignature>, options?: Readonly<AxPromptTemplateOptions>, fieldTemplates?: Record<string, AxFieldTemplateFn>);
1948
+ /**
1949
+ * Build legacy prompt format (backward compatible)
1950
+ */
1951
+ private buildLegacyPrompt;
1952
+ /**
1953
+ * Build XML-structured prompt with format protection
1954
+ */
1955
+ private buildStructuredPrompt;
1956
+ /**
1957
+ * Build identity section describing the task
1958
+ */
1959
+ private buildIdentitySection;
1960
+ /**
1961
+ * Build functions section with available functions
1962
+ */
1963
+ private buildFunctionsSection;
1964
+ /**
1965
+ * Build input fields section
1966
+ */
1967
+ private buildInputFieldsSection;
1968
+ /**
1969
+ * Build output fields section
1970
+ */
1971
+ private buildOutputFieldsSection;
1972
+ /**
1973
+ * Build formatting rules section with protection
1974
+ */
1975
+ private buildFormattingRulesSection;
1948
1976
  private renderSingleValueUserContent;
1949
1977
  render: <T = any>(values: T | ReadonlyArray<AxMessage<T>>, // Allow T or array of AxMessages
1950
1978
  { examples, demos, }: Readonly<{
@@ -5797,6 +5825,7 @@ interface AxFieldProcessor {
5797
5825
  type AxFunctionResultFormatter = (result: unknown) => string;
5798
5826
  declare const axGlobals: {
5799
5827
  signatureStrict: boolean;
5828
+ useStructuredPrompt: boolean;
5800
5829
  tracer: Tracer | undefined;
5801
5830
  meter: Meter | undefined;
5802
5831
  logger: AxLoggerFunction | undefined;
package/index.d.ts CHANGED
@@ -1945,6 +1945,34 @@ declare class AxPromptTemplate {
1945
1945
  private readonly functions?;
1946
1946
  private readonly cacheSystemPrompt?;
1947
1947
  constructor(sig: Readonly<AxSignature>, options?: Readonly<AxPromptTemplateOptions>, fieldTemplates?: Record<string, AxFieldTemplateFn>);
1948
+ /**
1949
+ * Build legacy prompt format (backward compatible)
1950
+ */
1951
+ private buildLegacyPrompt;
1952
+ /**
1953
+ * Build XML-structured prompt with format protection
1954
+ */
1955
+ private buildStructuredPrompt;
1956
+ /**
1957
+ * Build identity section describing the task
1958
+ */
1959
+ private buildIdentitySection;
1960
+ /**
1961
+ * Build functions section with available functions
1962
+ */
1963
+ private buildFunctionsSection;
1964
+ /**
1965
+ * Build input fields section
1966
+ */
1967
+ private buildInputFieldsSection;
1968
+ /**
1969
+ * Build output fields section
1970
+ */
1971
+ private buildOutputFieldsSection;
1972
+ /**
1973
+ * Build formatting rules section with protection
1974
+ */
1975
+ private buildFormattingRulesSection;
1948
1976
  private renderSingleValueUserContent;
1949
1977
  render: <T = any>(values: T | ReadonlyArray<AxMessage<T>>, // Allow T or array of AxMessages
1950
1978
  { examples, demos, }: Readonly<{
@@ -5797,6 +5825,7 @@ interface AxFieldProcessor {
5797
5825
  type AxFunctionResultFormatter = (result: unknown) => string;
5798
5826
  declare const axGlobals: {
5799
5827
  signatureStrict: boolean;
5828
+ useStructuredPrompt: boolean;
5800
5829
  tracer: Tracer | undefined;
5801
5830
  meter: Meter | undefined;
5802
5831
  logger: AxLoggerFunction | undefined;