@ax-llm/ax 15.0.8 → 15.0.10

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
@@ -186,6 +186,7 @@ type AxModelInfo = {
186
186
  supported?: {
187
187
  thinkingBudget?: boolean;
188
188
  showThoughts?: boolean;
189
+ structuredOutputs?: boolean;
189
190
  };
190
191
  notSupported?: {
191
192
  temperature?: boolean;
@@ -1934,6 +1935,7 @@ type ErrorOptions = {
1934
1935
  declare class AxGenerateError extends Error {
1935
1936
  readonly details: AxGenerateErrorDetails;
1936
1937
  constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
1938
+ toJSON(): Record<string, unknown>;
1937
1939
  }
1938
1940
 
1939
1941
  type Writeable<T> = {
@@ -2384,6 +2386,8 @@ interface AxAIFeatures {
2384
2386
  functionCot?: boolean;
2385
2387
  hasThinkingBudget?: boolean;
2386
2388
  hasShowThoughts?: boolean;
2389
+ /** Whether the provider supports complex structured outputs (JSON schema) */
2390
+ structuredOutputs?: boolean;
2387
2391
  /** Enhanced media capability specifications */
2388
2392
  media: {
2389
2393
  /** Image processing capabilities */
@@ -4150,6 +4154,7 @@ type AxMockAIServiceConfig<TModelKey> = {
4150
4154
  features?: {
4151
4155
  functions?: boolean;
4152
4156
  streaming?: boolean;
4157
+ structuredOutputs?: boolean;
4153
4158
  };
4154
4159
  models?: AxAIModelList<TModelKey>;
4155
4160
  options?: AxAIServiceOptions;
package/index.d.ts CHANGED
@@ -186,6 +186,7 @@ type AxModelInfo = {
186
186
  supported?: {
187
187
  thinkingBudget?: boolean;
188
188
  showThoughts?: boolean;
189
+ structuredOutputs?: boolean;
189
190
  };
190
191
  notSupported?: {
191
192
  temperature?: boolean;
@@ -1934,6 +1935,7 @@ type ErrorOptions = {
1934
1935
  declare class AxGenerateError extends Error {
1935
1936
  readonly details: AxGenerateErrorDetails;
1936
1937
  constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
1938
+ toJSON(): Record<string, unknown>;
1937
1939
  }
1938
1940
 
1939
1941
  type Writeable<T> = {
@@ -2384,6 +2386,8 @@ interface AxAIFeatures {
2384
2386
  functionCot?: boolean;
2385
2387
  hasThinkingBudget?: boolean;
2386
2388
  hasShowThoughts?: boolean;
2389
+ /** Whether the provider supports complex structured outputs (JSON schema) */
2390
+ structuredOutputs?: boolean;
2387
2391
  /** Enhanced media capability specifications */
2388
2392
  media: {
2389
2393
  /** Image processing capabilities */
@@ -4150,6 +4154,7 @@ type AxMockAIServiceConfig<TModelKey> = {
4150
4154
  features?: {
4151
4155
  functions?: boolean;
4152
4156
  streaming?: boolean;
4157
+ structuredOutputs?: boolean;
4153
4158
  };
4154
4159
  models?: AxAIModelList<TModelKey>;
4155
4160
  options?: AxAIServiceOptions;