@ax-llm/ax 11.0.59 → 11.0.60
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.cjs +32 -39
- package/index.cjs.map +1 -1
- package/index.d.cts +228 -239
- package/index.d.ts +228 -239
- package/index.js +31 -39
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -2027,6 +2027,72 @@ interface AxAIMemory {
|
|
|
2027
2027
|
rewindToTag(name: string, sessionId?: string): AxChatRequest['chatPrompt'];
|
|
2028
2028
|
}
|
|
2029
2029
|
|
|
2030
|
+
interface AxField {
|
|
2031
|
+
name: string;
|
|
2032
|
+
title?: string;
|
|
2033
|
+
description?: string;
|
|
2034
|
+
type?: {
|
|
2035
|
+
name: 'string' | 'number' | 'boolean' | 'json' | 'image' | 'audio' | 'date' | 'datetime' | 'class' | 'code';
|
|
2036
|
+
isArray: boolean;
|
|
2037
|
+
classes?: string[];
|
|
2038
|
+
};
|
|
2039
|
+
isOptional?: boolean;
|
|
2040
|
+
isInternal?: boolean;
|
|
2041
|
+
}
|
|
2042
|
+
type AxIField = Omit<AxField, 'title'> & {
|
|
2043
|
+
title: string;
|
|
2044
|
+
};
|
|
2045
|
+
declare class AxSignature {
|
|
2046
|
+
private description?;
|
|
2047
|
+
private inputFields;
|
|
2048
|
+
private outputFields;
|
|
2049
|
+
private sigHash;
|
|
2050
|
+
private sigString;
|
|
2051
|
+
constructor(signature?: Readonly<AxSignature | string>);
|
|
2052
|
+
private parseParsedField;
|
|
2053
|
+
private parseField;
|
|
2054
|
+
setDescription: (desc: string) => void;
|
|
2055
|
+
addInputField: (field: Readonly<AxField>) => void;
|
|
2056
|
+
addOutputField: (field: Readonly<AxField>) => void;
|
|
2057
|
+
setInputFields: (fields: readonly AxField[]) => void;
|
|
2058
|
+
setOutputFields: (fields: readonly AxField[]) => void;
|
|
2059
|
+
getInputFields: () => Readonly<AxIField[]>;
|
|
2060
|
+
getOutputFields: () => Readonly<AxIField[]>;
|
|
2061
|
+
getDescription: () => string | undefined;
|
|
2062
|
+
private toTitle;
|
|
2063
|
+
toJSONSchema: () => AxFunctionJSONSchema;
|
|
2064
|
+
private updateHash;
|
|
2065
|
+
hash: () => string;
|
|
2066
|
+
toString: () => string;
|
|
2067
|
+
toJSON: () => {
|
|
2068
|
+
id: string;
|
|
2069
|
+
description: string | undefined;
|
|
2070
|
+
inputFields: AxIField[];
|
|
2071
|
+
outputFields: AxIField[];
|
|
2072
|
+
};
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
interface AxAssertion {
|
|
2076
|
+
fn(values: Record<string, unknown>): Promise<boolean | undefined> | boolean | undefined;
|
|
2077
|
+
message?: string;
|
|
2078
|
+
}
|
|
2079
|
+
interface AxStreamingAssertion {
|
|
2080
|
+
fieldName: string;
|
|
2081
|
+
fn(content: string, done?: boolean): boolean | undefined;
|
|
2082
|
+
message?: string;
|
|
2083
|
+
}
|
|
2084
|
+
declare class AxAssertionError extends Error {
|
|
2085
|
+
constructor({ message, }: Readonly<{
|
|
2086
|
+
message: string;
|
|
2087
|
+
}>);
|
|
2088
|
+
getFixingInstructions: () => {
|
|
2089
|
+
name: string;
|
|
2090
|
+
title: string;
|
|
2091
|
+
description: string;
|
|
2092
|
+
}[];
|
|
2093
|
+
toString(): string;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2030
2096
|
declare class AxMemory implements AxAIMemory {
|
|
2031
2097
|
private limit;
|
|
2032
2098
|
private options?;
|
|
@@ -2161,51 +2227,6 @@ type AxInputFunctionType = (AxFunction | {
|
|
|
2161
2227
|
toFunction: () => AxFunction | AxFunction[];
|
|
2162
2228
|
})[];
|
|
2163
2229
|
|
|
2164
|
-
interface AxField {
|
|
2165
|
-
name: string;
|
|
2166
|
-
title?: string;
|
|
2167
|
-
description?: string;
|
|
2168
|
-
type?: {
|
|
2169
|
-
name: 'string' | 'number' | 'boolean' | 'json' | 'image' | 'audio' | 'date' | 'datetime' | 'class' | 'code';
|
|
2170
|
-
isArray: boolean;
|
|
2171
|
-
classes?: string[];
|
|
2172
|
-
};
|
|
2173
|
-
isOptional?: boolean;
|
|
2174
|
-
isInternal?: boolean;
|
|
2175
|
-
}
|
|
2176
|
-
type AxIField = Omit<AxField, 'title'> & {
|
|
2177
|
-
title: string;
|
|
2178
|
-
};
|
|
2179
|
-
declare class AxSignature {
|
|
2180
|
-
private description?;
|
|
2181
|
-
private inputFields;
|
|
2182
|
-
private outputFields;
|
|
2183
|
-
private sigHash;
|
|
2184
|
-
private sigString;
|
|
2185
|
-
constructor(signature?: Readonly<AxSignature | string>);
|
|
2186
|
-
private parseParsedField;
|
|
2187
|
-
private parseField;
|
|
2188
|
-
setDescription: (desc: string) => void;
|
|
2189
|
-
addInputField: (field: Readonly<AxField>) => void;
|
|
2190
|
-
addOutputField: (field: Readonly<AxField>) => void;
|
|
2191
|
-
setInputFields: (fields: readonly AxField[]) => void;
|
|
2192
|
-
setOutputFields: (fields: readonly AxField[]) => void;
|
|
2193
|
-
getInputFields: () => Readonly<AxIField[]>;
|
|
2194
|
-
getOutputFields: () => Readonly<AxIField[]>;
|
|
2195
|
-
getDescription: () => string | undefined;
|
|
2196
|
-
private toTitle;
|
|
2197
|
-
toJSONSchema: () => AxFunctionJSONSchema;
|
|
2198
|
-
private updateHash;
|
|
2199
|
-
hash: () => string;
|
|
2200
|
-
toString: () => string;
|
|
2201
|
-
toJSON: () => {
|
|
2202
|
-
id: string;
|
|
2203
|
-
description: string | undefined;
|
|
2204
|
-
inputFields: AxIField[];
|
|
2205
|
-
outputFields: AxIField[];
|
|
2206
|
-
};
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
2230
|
type AxFieldValue = string | string[] | number | boolean | object | null | undefined | {
|
|
2210
2231
|
mimeType: string;
|
|
2211
2232
|
data: string;
|
|
@@ -2228,9 +2249,57 @@ type AxMessage = {
|
|
|
2228
2249
|
values: AxGenIn;
|
|
2229
2250
|
} | {
|
|
2230
2251
|
role: 'assistant';
|
|
2231
|
-
values:
|
|
2252
|
+
values: AxGenIn;
|
|
2232
2253
|
};
|
|
2233
2254
|
|
|
2255
|
+
type Writeable<T> = {
|
|
2256
|
+
-readonly [P in keyof T]: T[P];
|
|
2257
|
+
};
|
|
2258
|
+
interface AxPromptTemplateOptions {
|
|
2259
|
+
functions?: Readonly<AxInputFunctionType>;
|
|
2260
|
+
thoughtFieldName?: string;
|
|
2261
|
+
}
|
|
2262
|
+
type AxChatRequestChatPrompt = Writeable<AxChatRequest['chatPrompt'][0]>;
|
|
2263
|
+
type ChatRequestUserMessage = Exclude<Extract<AxChatRequestChatPrompt, {
|
|
2264
|
+
role: 'user';
|
|
2265
|
+
}>['content'], string>;
|
|
2266
|
+
type AxFieldTemplateFn = (field: Readonly<AxField>, value: Readonly<AxFieldValue>) => ChatRequestUserMessage;
|
|
2267
|
+
declare class AxPromptTemplate {
|
|
2268
|
+
private sig;
|
|
2269
|
+
private fieldTemplates?;
|
|
2270
|
+
private task;
|
|
2271
|
+
private readonly thoughtFieldName;
|
|
2272
|
+
private readonly functions?;
|
|
2273
|
+
constructor(sig: Readonly<AxSignature>, options?: Readonly<AxPromptTemplateOptions>, fieldTemplates?: Record<string, AxFieldTemplateFn>);
|
|
2274
|
+
render: <T extends AxGenIn>(values: T | ReadonlyArray<AxMessage>, // Allow T (AxGenIn) or array of AxMessages
|
|
2275
|
+
{ examples, demos, }: Readonly<{
|
|
2276
|
+
skipSystemPrompt?: boolean;
|
|
2277
|
+
examples?: Record<string, AxFieldValue>[];
|
|
2278
|
+
demos?: Record<string, AxFieldValue>[];
|
|
2279
|
+
}>) => AxChatRequest["chatPrompt"];
|
|
2280
|
+
renderExtraFields: (extraFields: readonly AxIField[]) => ({
|
|
2281
|
+
type: "text";
|
|
2282
|
+
text: string;
|
|
2283
|
+
cache?: boolean;
|
|
2284
|
+
} | {
|
|
2285
|
+
type: "image";
|
|
2286
|
+
mimeType: string;
|
|
2287
|
+
image: string;
|
|
2288
|
+
details?: "high" | "low" | "auto";
|
|
2289
|
+
cache?: boolean;
|
|
2290
|
+
} | {
|
|
2291
|
+
type: "audio";
|
|
2292
|
+
data: string;
|
|
2293
|
+
format?: "wav";
|
|
2294
|
+
cache?: boolean;
|
|
2295
|
+
})[];
|
|
2296
|
+
private renderExamples;
|
|
2297
|
+
private renderDemos;
|
|
2298
|
+
private renderInputFields;
|
|
2299
|
+
private renderInField;
|
|
2300
|
+
private defaultRenderInField;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2234
2303
|
type AxProgramTrace = {
|
|
2235
2304
|
trace: Record<string, AxFieldValue>;
|
|
2236
2305
|
programId: string;
|
|
@@ -2263,6 +2332,12 @@ type AxProgramForwardOptions = {
|
|
|
2263
2332
|
traceLabel?: string;
|
|
2264
2333
|
abortSignal?: AbortSignal;
|
|
2265
2334
|
logger?: AxLoggerFunction;
|
|
2335
|
+
description?: string;
|
|
2336
|
+
thoughtFieldName?: string;
|
|
2337
|
+
promptTemplate?: typeof AxPromptTemplate;
|
|
2338
|
+
asserts?: AxAssertion[];
|
|
2339
|
+
streamingAsserts?: AxStreamingAssertion[];
|
|
2340
|
+
excludeContentFromTrace?: boolean;
|
|
2266
2341
|
};
|
|
2267
2342
|
type AxProgramStreamingForwardOptions = Omit<AxProgramForwardOptions, 'stream'>;
|
|
2268
2343
|
type AxGenDeltaOut<OUT extends AxGenOut> = {
|
|
@@ -2331,190 +2406,6 @@ declare class AxProgram<IN extends AxGenIn, OUT extends AxGenOut> implements AxT
|
|
|
2331
2406
|
setDemos(demos: readonly AxProgramDemos[]): void;
|
|
2332
2407
|
}
|
|
2333
2408
|
|
|
2334
|
-
interface AxAssertion {
|
|
2335
|
-
fn(values: Record<string, unknown>): Promise<boolean | undefined> | boolean | undefined;
|
|
2336
|
-
message?: string;
|
|
2337
|
-
}
|
|
2338
|
-
interface AxStreamingAssertion {
|
|
2339
|
-
fieldName: string;
|
|
2340
|
-
fn(content: string, done?: boolean): boolean | undefined;
|
|
2341
|
-
message?: string;
|
|
2342
|
-
}
|
|
2343
|
-
declare class AxAssertionError extends Error {
|
|
2344
|
-
constructor({ message, }: Readonly<{
|
|
2345
|
-
message: string;
|
|
2346
|
-
}>);
|
|
2347
|
-
getFixingInstructions: () => {
|
|
2348
|
-
name: string;
|
|
2349
|
-
title: string;
|
|
2350
|
-
description: string;
|
|
2351
|
-
}[];
|
|
2352
|
-
toString(): string;
|
|
2353
|
-
}
|
|
2354
|
-
|
|
2355
|
-
type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
|
|
2356
|
-
values?: AxGenOut;
|
|
2357
|
-
sessionId?: string;
|
|
2358
|
-
done?: boolean;
|
|
2359
|
-
}>) => unknown | Promise<unknown>;
|
|
2360
|
-
type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
|
|
2361
|
-
values?: AxGenOut;
|
|
2362
|
-
sessionId?: string;
|
|
2363
|
-
done?: boolean;
|
|
2364
|
-
}>) => unknown | Promise<unknown>;
|
|
2365
|
-
interface AxFieldProcessor {
|
|
2366
|
-
field: Readonly<AxField>;
|
|
2367
|
-
/**
|
|
2368
|
-
* Process the field value and return a new value (or undefined if no update is needed).
|
|
2369
|
-
* The returned value may be merged back into memory.
|
|
2370
|
-
* @param value - The current field value.
|
|
2371
|
-
* @param context - Additional context (e.g. memory and session id).
|
|
2372
|
-
*/
|
|
2373
|
-
process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2376
|
-
type Writeable<T> = {
|
|
2377
|
-
-readonly [P in keyof T]: T[P];
|
|
2378
|
-
};
|
|
2379
|
-
interface AxPromptTemplateOptions {
|
|
2380
|
-
functions?: Readonly<AxInputFunctionType>;
|
|
2381
|
-
thoughtFieldName?: string;
|
|
2382
|
-
}
|
|
2383
|
-
type AxChatRequestChatPrompt = Writeable<AxChatRequest['chatPrompt'][0]>;
|
|
2384
|
-
type ChatRequestUserMessage = Exclude<Extract<AxChatRequestChatPrompt, {
|
|
2385
|
-
role: 'user';
|
|
2386
|
-
}>['content'], string>;
|
|
2387
|
-
type AxFieldTemplateFn = (field: Readonly<AxField>, value: Readonly<AxFieldValue>) => ChatRequestUserMessage;
|
|
2388
|
-
declare class AxPromptTemplate {
|
|
2389
|
-
private sig;
|
|
2390
|
-
private fieldTemplates?;
|
|
2391
|
-
private task;
|
|
2392
|
-
private readonly thoughtFieldName;
|
|
2393
|
-
private readonly functions?;
|
|
2394
|
-
constructor(sig: Readonly<AxSignature>, options?: Readonly<AxPromptTemplateOptions>, fieldTemplates?: Record<string, AxFieldTemplateFn>);
|
|
2395
|
-
render: <T extends AxGenIn>(values: T | ReadonlyArray<AxMessage>, // Allow T (AxGenIn) or array of AxMessages
|
|
2396
|
-
{ examples, demos, }: Readonly<{
|
|
2397
|
-
skipSystemPrompt?: boolean;
|
|
2398
|
-
examples?: Record<string, AxFieldValue>[];
|
|
2399
|
-
demos?: Record<string, AxFieldValue>[];
|
|
2400
|
-
}>) => AxChatRequest["chatPrompt"];
|
|
2401
|
-
renderExtraFields: (extraFields: readonly AxIField[]) => ({
|
|
2402
|
-
type: "text";
|
|
2403
|
-
text: string;
|
|
2404
|
-
cache?: boolean;
|
|
2405
|
-
} | {
|
|
2406
|
-
type: "image";
|
|
2407
|
-
mimeType: string;
|
|
2408
|
-
image: string;
|
|
2409
|
-
details?: "high" | "low" | "auto";
|
|
2410
|
-
cache?: boolean;
|
|
2411
|
-
} | {
|
|
2412
|
-
type: "audio";
|
|
2413
|
-
data: string;
|
|
2414
|
-
format?: "wav";
|
|
2415
|
-
cache?: boolean;
|
|
2416
|
-
})[];
|
|
2417
|
-
private renderExamples;
|
|
2418
|
-
private renderDemos;
|
|
2419
|
-
private renderInputFields;
|
|
2420
|
-
private renderInField;
|
|
2421
|
-
private defaultRenderInField;
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
interface AxGenOptions {
|
|
2425
|
-
maxRetries?: number;
|
|
2426
|
-
maxSteps?: number;
|
|
2427
|
-
mem?: AxAIMemory;
|
|
2428
|
-
tracer?: Tracer;
|
|
2429
|
-
rateLimiter?: AxRateLimiterFunction;
|
|
2430
|
-
stream?: boolean;
|
|
2431
|
-
description?: string;
|
|
2432
|
-
thoughtFieldName?: string;
|
|
2433
|
-
functions?: AxInputFunctionType;
|
|
2434
|
-
functionCall?: AxChatRequest['functionCall'];
|
|
2435
|
-
stopFunction?: string;
|
|
2436
|
-
promptTemplate?: typeof AxPromptTemplate;
|
|
2437
|
-
asserts?: AxAssertion[];
|
|
2438
|
-
streamingAsserts?: AxStreamingAssertion[];
|
|
2439
|
-
fastFail?: boolean;
|
|
2440
|
-
excludeContentFromTrace?: boolean;
|
|
2441
|
-
traceLabel?: string;
|
|
2442
|
-
logger?: AxLoggerFunction;
|
|
2443
|
-
}
|
|
2444
|
-
type AxGenerateResult<OUT extends AxGenOut> = OUT & {
|
|
2445
|
-
thought?: string;
|
|
2446
|
-
};
|
|
2447
|
-
interface AxResponseHandlerArgs<T> {
|
|
2448
|
-
ai: Readonly<AxAIService>;
|
|
2449
|
-
model?: string;
|
|
2450
|
-
res: T;
|
|
2451
|
-
mem: AxAIMemory;
|
|
2452
|
-
sessionId?: string;
|
|
2453
|
-
traceId?: string;
|
|
2454
|
-
functions?: Readonly<AxFunction[]>;
|
|
2455
|
-
fastFail?: boolean;
|
|
2456
|
-
span?: Span;
|
|
2457
|
-
}
|
|
2458
|
-
interface AxStreamingEvent<T> {
|
|
2459
|
-
event: 'delta' | 'done' | 'error';
|
|
2460
|
-
data: {
|
|
2461
|
-
contentDelta?: string;
|
|
2462
|
-
partialValues?: Partial<T>;
|
|
2463
|
-
error?: string;
|
|
2464
|
-
functions?: AxChatResponseFunctionCall[];
|
|
2465
|
-
};
|
|
2466
|
-
}
|
|
2467
|
-
declare class AxGen<IN extends AxGenIn | ReadonlyArray<AxMessage> = AxGenIn | ReadonlyArray<AxMessage>, OUT extends AxGenerateResult<AxGenOut> = AxGenerateResult<AxGenOut>> extends AxProgramWithSignature<IN, OUT> {
|
|
2468
|
-
private promptTemplate;
|
|
2469
|
-
private asserts;
|
|
2470
|
-
private streamingAsserts;
|
|
2471
|
-
private options?;
|
|
2472
|
-
private functions?;
|
|
2473
|
-
private functionsExecuted;
|
|
2474
|
-
private fieldProcessors;
|
|
2475
|
-
private streamingFieldProcessors;
|
|
2476
|
-
private values;
|
|
2477
|
-
private excludeContentFromTrace;
|
|
2478
|
-
private thoughtFieldName;
|
|
2479
|
-
private logger?;
|
|
2480
|
-
constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxGenOptions>);
|
|
2481
|
-
addAssert: (fn: AxAssertion["fn"], message?: string) => void;
|
|
2482
|
-
addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
|
|
2483
|
-
private addFieldProcessorInternal;
|
|
2484
|
-
addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
|
|
2485
|
-
addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
|
|
2486
|
-
private forwardSendRequest;
|
|
2487
|
-
private forwardCore;
|
|
2488
|
-
private processStreamingResponse;
|
|
2489
|
-
private processResponse;
|
|
2490
|
-
private _forward2;
|
|
2491
|
-
private shouldContinueSteps;
|
|
2492
|
-
_forward1(ai: Readonly<AxAIService>, values: IN, options: Readonly<AxProgramForwardOptions>): AsyncGenerator<{
|
|
2493
|
-
version: number;
|
|
2494
|
-
delta: Partial<OUT>;
|
|
2495
|
-
}, void, unknown>;
|
|
2496
|
-
forward(ai: Readonly<AxAIService>, values: IN, options?: Readonly<AxProgramForwardOptions>): Promise<OUT>;
|
|
2497
|
-
streamingForward(ai: Readonly<AxAIService>, values: IN, options?: Readonly<AxProgramStreamingForwardOptions>): AsyncGenerator<{
|
|
2498
|
-
version: number;
|
|
2499
|
-
delta: Partial<OUT>;
|
|
2500
|
-
}, void, unknown>;
|
|
2501
|
-
setExamples(examples: Readonly<AxProgramExamples>, options?: Readonly<AxSetExamplesOptions>): void;
|
|
2502
|
-
}
|
|
2503
|
-
type AxGenerateErrorDetails = {
|
|
2504
|
-
model?: string;
|
|
2505
|
-
maxTokens?: number;
|
|
2506
|
-
streaming: boolean;
|
|
2507
|
-
signature: {
|
|
2508
|
-
input: Readonly<AxIField[]>;
|
|
2509
|
-
output: Readonly<AxIField[]>;
|
|
2510
|
-
description?: string;
|
|
2511
|
-
};
|
|
2512
|
-
};
|
|
2513
|
-
declare class AxGenerateError extends Error {
|
|
2514
|
-
readonly details: AxGenerateErrorDetails;
|
|
2515
|
-
constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
2409
|
/**
|
|
2519
2410
|
* Interface for agents that can be used as child agents.
|
|
2520
2411
|
* Provides methods to get the agent's function definition and features.
|
|
@@ -2523,7 +2414,7 @@ interface AxAgentic extends AxTunable, AxUsable {
|
|
|
2523
2414
|
getFunction(): AxFunction;
|
|
2524
2415
|
getFeatures(): AxAgentFeatures;
|
|
2525
2416
|
}
|
|
2526
|
-
type AxAgentOptions = Omit<
|
|
2417
|
+
type AxAgentOptions = Omit<AxProgramForwardOptions, 'functions'> & {
|
|
2527
2418
|
disableSmartModelRouting?: boolean;
|
|
2528
2419
|
/** List of field names that should not be automatically passed from parent to child agents */
|
|
2529
2420
|
excludeFieldsFromPassthrough?: string[];
|
|
@@ -2905,6 +2796,108 @@ declare class AxDBManager {
|
|
|
2905
2796
|
}> | undefined) => Promise<AxDBMatch[][]>;
|
|
2906
2797
|
}
|
|
2907
2798
|
|
|
2799
|
+
type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
|
|
2800
|
+
values?: AxGenOut;
|
|
2801
|
+
sessionId?: string;
|
|
2802
|
+
done?: boolean;
|
|
2803
|
+
}>) => unknown | Promise<unknown>;
|
|
2804
|
+
type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
|
|
2805
|
+
values?: AxGenOut;
|
|
2806
|
+
sessionId?: string;
|
|
2807
|
+
done?: boolean;
|
|
2808
|
+
}>) => unknown | Promise<unknown>;
|
|
2809
|
+
interface AxFieldProcessor {
|
|
2810
|
+
field: Readonly<AxField>;
|
|
2811
|
+
/**
|
|
2812
|
+
* Process the field value and return a new value (or undefined if no update is needed).
|
|
2813
|
+
* The returned value may be merged back into memory.
|
|
2814
|
+
* @param value - The current field value.
|
|
2815
|
+
* @param context - Additional context (e.g. memory and session id).
|
|
2816
|
+
*/
|
|
2817
|
+
process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
type AxGenerateResult<OUT extends AxGenOut> = OUT & {
|
|
2821
|
+
thought?: string;
|
|
2822
|
+
};
|
|
2823
|
+
interface AxResponseHandlerArgs<T> {
|
|
2824
|
+
ai: Readonly<AxAIService>;
|
|
2825
|
+
model?: string;
|
|
2826
|
+
res: T;
|
|
2827
|
+
mem: AxAIMemory;
|
|
2828
|
+
sessionId?: string;
|
|
2829
|
+
traceId?: string;
|
|
2830
|
+
functions?: Readonly<AxFunction[]>;
|
|
2831
|
+
fastFail?: boolean;
|
|
2832
|
+
span?: Span;
|
|
2833
|
+
}
|
|
2834
|
+
interface AxStreamingEvent<T> {
|
|
2835
|
+
event: 'delta' | 'done' | 'error';
|
|
2836
|
+
data: {
|
|
2837
|
+
contentDelta?: string;
|
|
2838
|
+
partialValues?: Partial<T>;
|
|
2839
|
+
error?: string;
|
|
2840
|
+
functions?: AxChatResponseFunctionCall[];
|
|
2841
|
+
};
|
|
2842
|
+
}
|
|
2843
|
+
declare class AxGen<IN extends AxGenIn | ReadonlyArray<AxMessage> = AxGenIn | ReadonlyArray<AxMessage>, OUT extends AxGenerateResult<AxGenOut> = AxGenerateResult<AxGenOut>> extends AxProgramWithSignature<IN, OUT> {
|
|
2844
|
+
private promptTemplate;
|
|
2845
|
+
private asserts;
|
|
2846
|
+
private streamingAsserts;
|
|
2847
|
+
private options?;
|
|
2848
|
+
private functions?;
|
|
2849
|
+
private functionsExecuted;
|
|
2850
|
+
private fieldProcessors;
|
|
2851
|
+
private streamingFieldProcessors;
|
|
2852
|
+
private values;
|
|
2853
|
+
private excludeContentFromTrace;
|
|
2854
|
+
private thoughtFieldName;
|
|
2855
|
+
private logger?;
|
|
2856
|
+
constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxProgramForwardOptions>);
|
|
2857
|
+
addAssert: (fn: AxAssertion["fn"], message?: string) => void;
|
|
2858
|
+
addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
|
|
2859
|
+
private addFieldProcessorInternal;
|
|
2860
|
+
addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
|
|
2861
|
+
addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
|
|
2862
|
+
private forwardSendRequest;
|
|
2863
|
+
private forwardCore;
|
|
2864
|
+
private processStreamingResponse;
|
|
2865
|
+
private processResponse;
|
|
2866
|
+
private _forward2;
|
|
2867
|
+
private shouldContinueSteps;
|
|
2868
|
+
_forward1(ai: Readonly<AxAIService>, values: IN, options: Readonly<AxProgramForwardOptions>): AsyncGenerator<{
|
|
2869
|
+
version: number;
|
|
2870
|
+
delta: Partial<OUT>;
|
|
2871
|
+
}, void, unknown>;
|
|
2872
|
+
forward(ai: Readonly<AxAIService>, values: IN, options?: Readonly<AxProgramForwardOptions>): Promise<OUT>;
|
|
2873
|
+
streamingForward(ai: Readonly<AxAIService>, values: IN, options?: Readonly<AxProgramStreamingForwardOptions>): AsyncGenerator<{
|
|
2874
|
+
version: number;
|
|
2875
|
+
delta: Partial<OUT>;
|
|
2876
|
+
}, void, unknown>;
|
|
2877
|
+
setExamples(examples: Readonly<AxProgramExamples>, options?: Readonly<AxSetExamplesOptions>): void;
|
|
2878
|
+
}
|
|
2879
|
+
type AxGenerateErrorDetails = {
|
|
2880
|
+
model?: string;
|
|
2881
|
+
maxTokens?: number;
|
|
2882
|
+
streaming: boolean;
|
|
2883
|
+
signature: {
|
|
2884
|
+
input: Readonly<AxIField[]>;
|
|
2885
|
+
output: Readonly<AxIField[]>;
|
|
2886
|
+
description?: string;
|
|
2887
|
+
};
|
|
2888
|
+
};
|
|
2889
|
+
declare class AxGenerateError extends Error {
|
|
2890
|
+
readonly details: AxGenerateErrorDetails;
|
|
2891
|
+
constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
declare class AxDefaultQueryRewriter extends AxGen<AxRewriteIn, AxRewriteOut> {
|
|
2895
|
+
constructor(options?: Readonly<AxProgramForwardOptions>);
|
|
2896
|
+
}
|
|
2897
|
+
declare class AxRewriter extends AxGen<AxRewriteIn, AxRewriteOut> {
|
|
2898
|
+
constructor(options?: Readonly<AxProgramForwardOptions>);
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2908
2901
|
interface AxDockerContainer {
|
|
2909
2902
|
Id: string;
|
|
2910
2903
|
Names: string[];
|
|
@@ -3464,17 +3457,13 @@ Readonly<AxAIOpenAIEmbedResponse>> {
|
|
|
3464
3457
|
}
|
|
3465
3458
|
|
|
3466
3459
|
declare class AxChainOfThought<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> extends AxGen<IN, OUT> {
|
|
3467
|
-
constructor(signature: Readonly<AxSignature | string>, options?: Readonly<
|
|
3460
|
+
constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxProgramForwardOptions & {
|
|
3468
3461
|
setVisibleReasoning?: boolean;
|
|
3469
3462
|
}>);
|
|
3470
3463
|
}
|
|
3471
3464
|
|
|
3472
|
-
declare class AxDefaultQueryRewriter extends AxGen<AxRewriteIn, AxRewriteOut> {
|
|
3473
|
-
constructor(options?: Readonly<AxGenOptions>);
|
|
3474
|
-
}
|
|
3475
|
-
|
|
3476
3465
|
declare class AxDefaultResultReranker extends AxGen<AxRerankerIn, AxRerankerOut> {
|
|
3477
|
-
constructor(options?: Readonly<
|
|
3466
|
+
constructor(options?: Readonly<AxProgramForwardOptions>);
|
|
3478
3467
|
forward: (ai: Readonly<AxAIService>, input: Readonly<AxRerankerIn>, options?: Readonly<AxProgramForwardOptions>) => Promise<AxRerankerOut>;
|
|
3479
3468
|
}
|
|
3480
3469
|
|
|
@@ -3698,7 +3687,7 @@ declare class AxRAG extends AxChainOfThought<{
|
|
|
3698
3687
|
private genQuery;
|
|
3699
3688
|
private queryFn;
|
|
3700
3689
|
private maxHops;
|
|
3701
|
-
constructor(queryFn: (query: string) => Promise<string>, options: Readonly<
|
|
3690
|
+
constructor(queryFn: (query: string) => Promise<string>, options: Readonly<AxProgramForwardOptions & {
|
|
3702
3691
|
maxHops?: number;
|
|
3703
3692
|
}>);
|
|
3704
3693
|
forward(ai: Readonly<AxAIService>, { question }: Readonly<{
|
|
@@ -3757,4 +3746,4 @@ declare const axModelInfoReka: AxModelInfo[];
|
|
|
3757
3746
|
|
|
3758
3747
|
declare const axModelInfoTogether: AxModelInfo[];
|
|
3759
3748
|
|
|
3760
|
-
export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicErrorEvent, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, AxAIAnthropicVertexModel, type AxAIArgs, AxAIAzureOpenAI, type AxAIAzureOpenAIArgs, type AxAIAzureOpenAIConfig, AxAICohere, type AxAICohereArgs, type AxAICohereChatRequest, type AxAICohereChatRequestToolResults, type AxAICohereChatResponse, type AxAICohereChatResponseDelta, type AxAICohereChatResponseToolCalls, type AxAICohereConfig, AxAICohereEmbedModel, type AxAICohereEmbedRequest, type AxAICohereEmbedResponse, AxAICohereModel, AxAIDeepSeek, type AxAIDeepSeekArgs, AxAIDeepSeekModel, type AxAIEmbedModels, type AxAIFeatures, AxAIGoogleGemini, type AxAIGoogleGeminiArgs, type AxAIGoogleGeminiBatchEmbedRequest, type AxAIGoogleGeminiBatchEmbedResponse, type AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGrok, type AxAIGrokArgs, type AxAIGrokChatRequest, AxAIGrokEmbedModels, AxAIGrokModel, type AxAIGrokOptionsTools, type AxAIGrokSearchSource, AxAIGroq, type AxAIGroqArgs, AxAIGroqModel, AxAIHuggingFace, type AxAIHuggingFaceArgs, type AxAIHuggingFaceConfig, AxAIHuggingFaceModel, type AxAIHuggingFaceRequest, type AxAIHuggingFaceResponse, type AxAIInputModelList, type AxAIMemory, AxAIMistral, type AxAIMistralArgs, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIArgs, AxAIOpenAIBase, type AxAIOpenAIBaseArgs, type AxAIOpenAIChatRequest, type AxAIOpenAIChatResponse, type AxAIOpenAIChatResponseDelta, type AxAIOpenAIConfig, AxAIOpenAIEmbedModel, type AxAIOpenAIEmbedRequest, type AxAIOpenAIEmbedResponse, type AxAIOpenAILogprob, AxAIOpenAIModel, type AxAIOpenAIResponseDelta, AxAIOpenAIResponses, type AxAIOpenAIResponsesArgs, AxAIOpenAIResponsesBase, type AxAIOpenAIResponsesCodeInterpreterToolCall, type AxAIOpenAIResponsesComputerToolCall, type AxAIOpenAIResponsesConfig, type AxAIOpenAIResponsesContentPartAddedEvent, type AxAIOpenAIResponsesContentPartDoneEvent, type AxAIOpenAIResponsesDefineFunctionTool, type AxAIOpenAIResponsesErrorEvent, type AxAIOpenAIResponsesFileSearchCallCompletedEvent, type AxAIOpenAIResponsesFileSearchCallInProgressEvent, type AxAIOpenAIResponsesFileSearchCallSearchingEvent, type AxAIOpenAIResponsesFileSearchToolCall, type AxAIOpenAIResponsesFunctionCallArgumentsDeltaEvent, type AxAIOpenAIResponsesFunctionCallArgumentsDoneEvent, type AxAIOpenAIResponsesFunctionCallItem, type AxAIOpenAIResponsesImageGenerationCallCompletedEvent, type AxAIOpenAIResponsesImageGenerationCallGeneratingEvent, type AxAIOpenAIResponsesImageGenerationCallInProgressEvent, type AxAIOpenAIResponsesImageGenerationCallPartialImageEvent, type AxAIOpenAIResponsesImageGenerationToolCall, AxAIOpenAIResponsesImpl, type AxAIOpenAIResponsesInputAudioContentPart, type AxAIOpenAIResponsesInputContentPart, type AxAIOpenAIResponsesInputFunctionCallItem, type AxAIOpenAIResponsesInputFunctionCallOutputItem, type AxAIOpenAIResponsesInputImageUrlContentPart, type AxAIOpenAIResponsesInputItem, type AxAIOpenAIResponsesInputMessageItem, type AxAIOpenAIResponsesInputTextContentPart, type AxAIOpenAIResponsesLocalShellToolCall, type AxAIOpenAIResponsesMCPCallArgumentsDeltaEvent, type AxAIOpenAIResponsesMCPCallArgumentsDoneEvent, type AxAIOpenAIResponsesMCPCallCompletedEvent, type AxAIOpenAIResponsesMCPCallFailedEvent, type AxAIOpenAIResponsesMCPCallInProgressEvent, type AxAIOpenAIResponsesMCPListToolsCompletedEvent, type AxAIOpenAIResponsesMCPListToolsFailedEvent, type AxAIOpenAIResponsesMCPListToolsInProgressEvent, type AxAIOpenAIResponsesMCPToolCall, type AxAIOpenAIResponsesOutputItem, type AxAIOpenAIResponsesOutputItemAddedEvent, type AxAIOpenAIResponsesOutputItemDoneEvent, type AxAIOpenAIResponsesOutputMessageItem, type AxAIOpenAIResponsesOutputRefusalContentPart, type AxAIOpenAIResponsesOutputTextAnnotationAddedEvent, type AxAIOpenAIResponsesOutputTextContentPart, type AxAIOpenAIResponsesOutputTextDeltaEvent, type AxAIOpenAIResponsesOutputTextDoneEvent, type AxAIOpenAIResponsesReasoningDeltaEvent, type AxAIOpenAIResponsesReasoningDoneEvent, type AxAIOpenAIResponsesReasoningItem, type AxAIOpenAIResponsesReasoningSummaryDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryDoneEvent, type AxAIOpenAIResponsesReasoningSummaryPart, type AxAIOpenAIResponsesReasoningSummaryPartAddedEvent, type AxAIOpenAIResponsesReasoningSummaryPartDoneEvent, type AxAIOpenAIResponsesReasoningSummaryTextDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryTextDoneEvent, type AxAIOpenAIResponsesRefusalDeltaEvent, type AxAIOpenAIResponsesRefusalDoneEvent, type AxAIOpenAIResponsesRequest, type AxAIOpenAIResponsesResponse, type AxAIOpenAIResponsesResponseCompletedEvent, type AxAIOpenAIResponsesResponseCreatedEvent, type AxAIOpenAIResponsesResponseDelta, type AxAIOpenAIResponsesResponseFailedEvent, type AxAIOpenAIResponsesResponseInProgressEvent, type AxAIOpenAIResponsesResponseIncompleteEvent, type AxAIOpenAIResponsesResponseQueuedEvent, type AxAIOpenAIResponsesStreamEvent, type AxAIOpenAIResponsesStreamEventBase, type AxAIOpenAIResponsesToolCall, type AxAIOpenAIResponsesToolCallBase, type AxAIOpenAIResponsesToolChoice, type AxAIOpenAIResponsesToolDefinition, type AxAIOpenAIResponsesWebSearchCallCompletedEvent, type AxAIOpenAIResponsesWebSearchCallInProgressEvent, type AxAIOpenAIResponsesWebSearchCallSearchingEvent, type AxAIOpenAIResponsesWebSearchToolCall, type AxAIOpenAIUsage, type AxAIPromptConfig, AxAIReka, type AxAIRekaArgs, type AxAIRekaChatRequest, type AxAIRekaChatResponse, type AxAIRekaChatResponseDelta, type AxAIRekaConfig, AxAIRekaModel, type AxAIRekaUsage, type AxAIService, AxAIServiceAbortedError, type AxAIServiceActionOptions, AxAIServiceAuthenticationError, AxAIServiceError, type AxAIServiceImpl, type AxAIServiceMetrics, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAITogether, type AxAITogetherArgs, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBootstrapFewShot, AxChainOfThought, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, AxDB, type AxDBArgs, AxDBBase, type AxDBBaseArgs, type AxDBBaseOpOptions, AxDBCloudflare, type AxDBCloudflareArgs, type AxDBCloudflareOpOptions, type AxDBLoaderOptions, AxDBManager, type AxDBManagerArgs, type AxDBMatch, AxDBMemory, type AxDBMemoryArgs, type AxDBMemoryOpOptions, AxDBPinecone, type AxDBPineconeArgs, type AxDBPineconeOpOptions, type AxDBQueryRequest, type AxDBQueryResponse, type AxDBQueryService, type AxDBService, type AxDBState, type AxDBUpsertRequest, type AxDBUpsertResponse, AxDBWeaviate, type AxDBWeaviateArgs, type AxDBWeaviateOpOptions, type AxDataRow, AxDefaultQueryRewriter, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldValue, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenOptions, type AxGenOut, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, type AxLoggerFunction, type AxLoggerTag, AxMCPClient, AxMCPHTTPSSETransport, AxMCPStdioTransport, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPTransport, AxMemory, type AxMessage, type AxMetricFn, type AxMetricFnArgs, AxMiPRO, type AxMiPROOptions, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, AxMultiServiceRouter, type AxOptimizationStats, type AxOptimizerArgs, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramStreamingForwardOptions, type AxProgramTrace, type AxProgramUsage, AxProgramWithSignature, type AxProgramWithSignatureOptions, AxPromptTemplate, type AxPromptTemplateOptions, AxRAG, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxRewriteIn, type AxRewriteOut, type AxSetExamplesOptions, AxSignature, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIGrokBestConfig, axAIGrokDefaultConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOllamaDefaultConfig, axAIOllamaDefaultCreativeConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIOpenAIResponsesBestConfig, axAIOpenAIResponsesCreativeConfig, axAIOpenAIResponsesDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents };
|
|
3749
|
+
export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicErrorEvent, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, AxAIAnthropicVertexModel, type AxAIArgs, AxAIAzureOpenAI, type AxAIAzureOpenAIArgs, type AxAIAzureOpenAIConfig, AxAICohere, type AxAICohereArgs, type AxAICohereChatRequest, type AxAICohereChatRequestToolResults, type AxAICohereChatResponse, type AxAICohereChatResponseDelta, type AxAICohereChatResponseToolCalls, type AxAICohereConfig, AxAICohereEmbedModel, type AxAICohereEmbedRequest, type AxAICohereEmbedResponse, AxAICohereModel, AxAIDeepSeek, type AxAIDeepSeekArgs, AxAIDeepSeekModel, type AxAIEmbedModels, type AxAIFeatures, AxAIGoogleGemini, type AxAIGoogleGeminiArgs, type AxAIGoogleGeminiBatchEmbedRequest, type AxAIGoogleGeminiBatchEmbedResponse, type AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGrok, type AxAIGrokArgs, type AxAIGrokChatRequest, AxAIGrokEmbedModels, AxAIGrokModel, type AxAIGrokOptionsTools, type AxAIGrokSearchSource, AxAIGroq, type AxAIGroqArgs, AxAIGroqModel, AxAIHuggingFace, type AxAIHuggingFaceArgs, type AxAIHuggingFaceConfig, AxAIHuggingFaceModel, type AxAIHuggingFaceRequest, type AxAIHuggingFaceResponse, type AxAIInputModelList, type AxAIMemory, AxAIMistral, type AxAIMistralArgs, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIArgs, AxAIOpenAIBase, type AxAIOpenAIBaseArgs, type AxAIOpenAIChatRequest, type AxAIOpenAIChatResponse, type AxAIOpenAIChatResponseDelta, type AxAIOpenAIConfig, AxAIOpenAIEmbedModel, type AxAIOpenAIEmbedRequest, type AxAIOpenAIEmbedResponse, type AxAIOpenAILogprob, AxAIOpenAIModel, type AxAIOpenAIResponseDelta, AxAIOpenAIResponses, type AxAIOpenAIResponsesArgs, AxAIOpenAIResponsesBase, type AxAIOpenAIResponsesCodeInterpreterToolCall, type AxAIOpenAIResponsesComputerToolCall, type AxAIOpenAIResponsesConfig, type AxAIOpenAIResponsesContentPartAddedEvent, type AxAIOpenAIResponsesContentPartDoneEvent, type AxAIOpenAIResponsesDefineFunctionTool, type AxAIOpenAIResponsesErrorEvent, type AxAIOpenAIResponsesFileSearchCallCompletedEvent, type AxAIOpenAIResponsesFileSearchCallInProgressEvent, type AxAIOpenAIResponsesFileSearchCallSearchingEvent, type AxAIOpenAIResponsesFileSearchToolCall, type AxAIOpenAIResponsesFunctionCallArgumentsDeltaEvent, type AxAIOpenAIResponsesFunctionCallArgumentsDoneEvent, type AxAIOpenAIResponsesFunctionCallItem, type AxAIOpenAIResponsesImageGenerationCallCompletedEvent, type AxAIOpenAIResponsesImageGenerationCallGeneratingEvent, type AxAIOpenAIResponsesImageGenerationCallInProgressEvent, type AxAIOpenAIResponsesImageGenerationCallPartialImageEvent, type AxAIOpenAIResponsesImageGenerationToolCall, AxAIOpenAIResponsesImpl, type AxAIOpenAIResponsesInputAudioContentPart, type AxAIOpenAIResponsesInputContentPart, type AxAIOpenAIResponsesInputFunctionCallItem, type AxAIOpenAIResponsesInputFunctionCallOutputItem, type AxAIOpenAIResponsesInputImageUrlContentPart, type AxAIOpenAIResponsesInputItem, type AxAIOpenAIResponsesInputMessageItem, type AxAIOpenAIResponsesInputTextContentPart, type AxAIOpenAIResponsesLocalShellToolCall, type AxAIOpenAIResponsesMCPCallArgumentsDeltaEvent, type AxAIOpenAIResponsesMCPCallArgumentsDoneEvent, type AxAIOpenAIResponsesMCPCallCompletedEvent, type AxAIOpenAIResponsesMCPCallFailedEvent, type AxAIOpenAIResponsesMCPCallInProgressEvent, type AxAIOpenAIResponsesMCPListToolsCompletedEvent, type AxAIOpenAIResponsesMCPListToolsFailedEvent, type AxAIOpenAIResponsesMCPListToolsInProgressEvent, type AxAIOpenAIResponsesMCPToolCall, type AxAIOpenAIResponsesOutputItem, type AxAIOpenAIResponsesOutputItemAddedEvent, type AxAIOpenAIResponsesOutputItemDoneEvent, type AxAIOpenAIResponsesOutputMessageItem, type AxAIOpenAIResponsesOutputRefusalContentPart, type AxAIOpenAIResponsesOutputTextAnnotationAddedEvent, type AxAIOpenAIResponsesOutputTextContentPart, type AxAIOpenAIResponsesOutputTextDeltaEvent, type AxAIOpenAIResponsesOutputTextDoneEvent, type AxAIOpenAIResponsesReasoningDeltaEvent, type AxAIOpenAIResponsesReasoningDoneEvent, type AxAIOpenAIResponsesReasoningItem, type AxAIOpenAIResponsesReasoningSummaryDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryDoneEvent, type AxAIOpenAIResponsesReasoningSummaryPart, type AxAIOpenAIResponsesReasoningSummaryPartAddedEvent, type AxAIOpenAIResponsesReasoningSummaryPartDoneEvent, type AxAIOpenAIResponsesReasoningSummaryTextDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryTextDoneEvent, type AxAIOpenAIResponsesRefusalDeltaEvent, type AxAIOpenAIResponsesRefusalDoneEvent, type AxAIOpenAIResponsesRequest, type AxAIOpenAIResponsesResponse, type AxAIOpenAIResponsesResponseCompletedEvent, type AxAIOpenAIResponsesResponseCreatedEvent, type AxAIOpenAIResponsesResponseDelta, type AxAIOpenAIResponsesResponseFailedEvent, type AxAIOpenAIResponsesResponseInProgressEvent, type AxAIOpenAIResponsesResponseIncompleteEvent, type AxAIOpenAIResponsesResponseQueuedEvent, type AxAIOpenAIResponsesStreamEvent, type AxAIOpenAIResponsesStreamEventBase, type AxAIOpenAIResponsesToolCall, type AxAIOpenAIResponsesToolCallBase, type AxAIOpenAIResponsesToolChoice, type AxAIOpenAIResponsesToolDefinition, type AxAIOpenAIResponsesWebSearchCallCompletedEvent, type AxAIOpenAIResponsesWebSearchCallInProgressEvent, type AxAIOpenAIResponsesWebSearchCallSearchingEvent, type AxAIOpenAIResponsesWebSearchToolCall, type AxAIOpenAIUsage, type AxAIPromptConfig, AxAIReka, type AxAIRekaArgs, type AxAIRekaChatRequest, type AxAIRekaChatResponse, type AxAIRekaChatResponseDelta, type AxAIRekaConfig, AxAIRekaModel, type AxAIRekaUsage, type AxAIService, AxAIServiceAbortedError, type AxAIServiceActionOptions, AxAIServiceAuthenticationError, AxAIServiceError, type AxAIServiceImpl, type AxAIServiceMetrics, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAITogether, type AxAITogetherArgs, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBootstrapFewShot, AxChainOfThought, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, AxDB, type AxDBArgs, AxDBBase, type AxDBBaseArgs, type AxDBBaseOpOptions, AxDBCloudflare, type AxDBCloudflareArgs, type AxDBCloudflareOpOptions, type AxDBLoaderOptions, AxDBManager, type AxDBManagerArgs, type AxDBMatch, AxDBMemory, type AxDBMemoryArgs, type AxDBMemoryOpOptions, AxDBPinecone, type AxDBPineconeArgs, type AxDBPineconeOpOptions, type AxDBQueryRequest, type AxDBQueryResponse, type AxDBQueryService, type AxDBService, type AxDBState, type AxDBUpsertRequest, type AxDBUpsertResponse, AxDBWeaviate, type AxDBWeaviateArgs, type AxDBWeaviateOpOptions, type AxDataRow, AxDefaultQueryRewriter, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldValue, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenOut, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, type AxLoggerFunction, type AxLoggerTag, AxMCPClient, AxMCPHTTPSSETransport, AxMCPStdioTransport, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPTransport, AxMemory, type AxMessage, type AxMetricFn, type AxMetricFnArgs, AxMiPRO, type AxMiPROOptions, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, AxMultiServiceRouter, type AxOptimizationStats, type AxOptimizerArgs, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramStreamingForwardOptions, type AxProgramTrace, type AxProgramUsage, AxProgramWithSignature, type AxProgramWithSignatureOptions, AxPromptTemplate, type AxPromptTemplateOptions, AxRAG, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxRewriteIn, type AxRewriteOut, AxRewriter, type AxSetExamplesOptions, AxSignature, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIGrokBestConfig, axAIGrokDefaultConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOllamaDefaultConfig, axAIOllamaDefaultCreativeConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIOpenAIResponsesBestConfig, axAIOpenAIResponsesCreativeConfig, axAIOpenAIResponsesDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents };
|