@ax-llm/ax 15.0.6 → 15.0.7

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
@@ -656,6 +656,10 @@ declare class AxSignatureBuilder<_TInput extends Record<string, any> = {}, _TOut
656
656
  * @param description - Description text
657
657
  */
658
658
  description(description: string): AxSignatureBuilder<_TInput, _TOutput>;
659
+ /**
660
+ * Enforce structured outputs (JSON) for this signature, even if fields are simple.
661
+ */
662
+ useStructured(): AxSignatureBuilder<_TInput, _TOutput>;
659
663
  /**
660
664
  * Build the final AxSignature instance
661
665
  */
@@ -676,11 +680,13 @@ declare class AxFluentFieldType<TType extends AxFieldType['type'] = AxFieldType[
676
680
  readonly pattern?: string;
677
681
  readonly patternDescription?: string;
678
682
  readonly format?: string;
683
+ readonly itemDescription?: string;
679
684
  constructor(fieldType: {
680
685
  type: TType;
681
686
  isArray: TIsArray;
682
687
  options?: TOptions;
683
688
  description?: string;
689
+ itemDescription?: string;
684
690
  isOptional: TIsOptional;
685
691
  isInternal: TIsInternal;
686
692
  fields?: TFields;
@@ -770,6 +776,7 @@ interface AxField {
770
776
  pattern?: string;
771
777
  patternDescription?: string;
772
778
  format?: string;
779
+ description?: string;
773
780
  };
774
781
  isOptional?: boolean;
775
782
  isInternal?: boolean;
@@ -814,6 +821,7 @@ interface AxFluentFieldInfo<TType extends AxFieldType['type'] = AxFieldType['typ
814
821
  readonly options?: TOptions;
815
822
  readonly fields?: TFields;
816
823
  readonly description?: string;
824
+ readonly itemDescription?: string;
817
825
  readonly isOptional?: TIsOptional;
818
826
  readonly isInternal?: boolean;
819
827
  readonly minLength?: number;
@@ -918,6 +926,7 @@ declare class AxSignature<_TInput extends Record<string, any> = Record<string, a
918
926
  private updateHashLight;
919
927
  private updateHash;
920
928
  private validateSignatureConsistency;
929
+ private _forceComplexFields;
921
930
  hasComplexFields: () => boolean;
922
931
  validate: () => boolean;
923
932
  hash: () => string;
package/index.d.ts CHANGED
@@ -656,6 +656,10 @@ declare class AxSignatureBuilder<_TInput extends Record<string, any> = {}, _TOut
656
656
  * @param description - Description text
657
657
  */
658
658
  description(description: string): AxSignatureBuilder<_TInput, _TOutput>;
659
+ /**
660
+ * Enforce structured outputs (JSON) for this signature, even if fields are simple.
661
+ */
662
+ useStructured(): AxSignatureBuilder<_TInput, _TOutput>;
659
663
  /**
660
664
  * Build the final AxSignature instance
661
665
  */
@@ -676,11 +680,13 @@ declare class AxFluentFieldType<TType extends AxFieldType['type'] = AxFieldType[
676
680
  readonly pattern?: string;
677
681
  readonly patternDescription?: string;
678
682
  readonly format?: string;
683
+ readonly itemDescription?: string;
679
684
  constructor(fieldType: {
680
685
  type: TType;
681
686
  isArray: TIsArray;
682
687
  options?: TOptions;
683
688
  description?: string;
689
+ itemDescription?: string;
684
690
  isOptional: TIsOptional;
685
691
  isInternal: TIsInternal;
686
692
  fields?: TFields;
@@ -770,6 +776,7 @@ interface AxField {
770
776
  pattern?: string;
771
777
  patternDescription?: string;
772
778
  format?: string;
779
+ description?: string;
773
780
  };
774
781
  isOptional?: boolean;
775
782
  isInternal?: boolean;
@@ -814,6 +821,7 @@ interface AxFluentFieldInfo<TType extends AxFieldType['type'] = AxFieldType['typ
814
821
  readonly options?: TOptions;
815
822
  readonly fields?: TFields;
816
823
  readonly description?: string;
824
+ readonly itemDescription?: string;
817
825
  readonly isOptional?: TIsOptional;
818
826
  readonly isInternal?: boolean;
819
827
  readonly minLength?: number;
@@ -918,6 +926,7 @@ declare class AxSignature<_TInput extends Record<string, any> = Record<string, a
918
926
  private updateHashLight;
919
927
  private updateHash;
920
928
  private validateSignatureConsistency;
929
+ private _forceComplexFields;
921
930
  hasComplexFields: () => boolean;
922
931
  validate: () => boolean;
923
932
  hash: () => string;