@ax-llm/ax 15.1.1 → 16.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.cjs +113 -106
- package/index.cjs.map +1 -1
- package/index.d.cts +258 -6
- package/index.d.ts +258 -6
- package/index.global.js +175 -168
- package/index.global.js.map +1 -1
- package/index.js +126 -119
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -382,6 +382,7 @@ type AxChatRequest<TModel = string> = {
|
|
|
382
382
|
/** Page description for context */
|
|
383
383
|
description?: string;
|
|
384
384
|
})[];
|
|
385
|
+
cache?: boolean;
|
|
385
386
|
} | {
|
|
386
387
|
role: 'assistant';
|
|
387
388
|
content?: string;
|
|
@@ -394,6 +395,8 @@ type AxChatRequest<TModel = string> = {
|
|
|
394
395
|
params?: string | object;
|
|
395
396
|
};
|
|
396
397
|
}[];
|
|
398
|
+
/** Concatenated thinking content */
|
|
399
|
+
thought?: string;
|
|
397
400
|
/** Array of thinking blocks, each with its own signature */
|
|
398
401
|
thoughtBlocks?: AxThoughtBlockItem[];
|
|
399
402
|
cache?: boolean;
|
|
@@ -432,6 +435,8 @@ type AxChatRequest<TModel = string> = {
|
|
|
432
435
|
name: string;
|
|
433
436
|
description: string;
|
|
434
437
|
parameters?: AxFunctionJSONSchema;
|
|
438
|
+
/** Mark this function for caching (creates breakpoint after tools) */
|
|
439
|
+
cache?: boolean;
|
|
435
440
|
}>[];
|
|
436
441
|
functionCall?: 'none' | 'auto' | 'required' | {
|
|
437
442
|
type: 'function';
|
|
@@ -551,6 +556,93 @@ type AxLoggerData = {
|
|
|
551
556
|
value: AxCitation[];
|
|
552
557
|
};
|
|
553
558
|
type AxLoggerFunction = (message: AxLoggerData) => void;
|
|
559
|
+
/**
|
|
560
|
+
* Entry stored in the context cache registry.
|
|
561
|
+
* Used for persisting cache metadata across process restarts.
|
|
562
|
+
*/
|
|
563
|
+
type AxContextCacheRegistryEntry = {
|
|
564
|
+
/** Provider-specific cache resource name (e.g., "cachedContents/abc123") */
|
|
565
|
+
cacheName: string;
|
|
566
|
+
/** When the cache expires (timestamp in milliseconds) */
|
|
567
|
+
expiresAt: number;
|
|
568
|
+
/** Number of tokens in the cached content */
|
|
569
|
+
tokenCount?: number;
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* External registry for persisting context cache metadata.
|
|
573
|
+
* Useful for serverless/short-lived processes where in-memory storage is lost.
|
|
574
|
+
*
|
|
575
|
+
* @example
|
|
576
|
+
* // Redis-backed registry
|
|
577
|
+
* const registry: AxContextCacheRegistry = {
|
|
578
|
+
* get: async (key) => {
|
|
579
|
+
* const data = await redis.get(`cache:${key}`);
|
|
580
|
+
* return data ? JSON.parse(data) : undefined;
|
|
581
|
+
* },
|
|
582
|
+
* set: async (key, entry) => {
|
|
583
|
+
* await redis.set(`cache:${key}`, JSON.stringify(entry), 'EX', 3600);
|
|
584
|
+
* },
|
|
585
|
+
* };
|
|
586
|
+
*/
|
|
587
|
+
type AxContextCacheRegistry = {
|
|
588
|
+
/** Look up a cache entry by key */
|
|
589
|
+
get: (key: string) => Promise<AxContextCacheRegistryEntry | undefined> | AxContextCacheRegistryEntry | undefined;
|
|
590
|
+
/** Store a cache entry */
|
|
591
|
+
set: (key: string, entry: Readonly<AxContextCacheRegistryEntry>) => Promise<void> | void;
|
|
592
|
+
};
|
|
593
|
+
/**
|
|
594
|
+
* Options for explicit context caching (e.g., Gemini/Vertex context caching).
|
|
595
|
+
* Allows caching large prompt prefixes for cost savings and lower latency.
|
|
596
|
+
*
|
|
597
|
+
* When this option is present, caching is enabled. The system will:
|
|
598
|
+
* - Automatically cache the system prompt and any content marked with `cache: true`
|
|
599
|
+
* - Reuse existing caches when content hash matches
|
|
600
|
+
* - Create new caches when content changes
|
|
601
|
+
* - Auto-refresh TTL when cache is near expiration
|
|
602
|
+
*/
|
|
603
|
+
type AxContextCacheOptions = {
|
|
604
|
+
/**
|
|
605
|
+
* Explicit cache resource name/ID.
|
|
606
|
+
* If provided, this cache will be used directly (bypasses auto-creation).
|
|
607
|
+
* If omitted, a cache will be created/looked up automatically.
|
|
608
|
+
*/
|
|
609
|
+
name?: string;
|
|
610
|
+
/**
|
|
611
|
+
* TTL (Time To Live) in seconds for the cache.
|
|
612
|
+
* Default: 3600 (1 hour). Maximum varies by provider.
|
|
613
|
+
*/
|
|
614
|
+
ttlSeconds?: number;
|
|
615
|
+
/**
|
|
616
|
+
* Minimum token threshold for creating explicit caches.
|
|
617
|
+
* Content below this threshold won't create explicit caches (implicit caching still applies).
|
|
618
|
+
* Default: 2048 (Gemini minimum requirement)
|
|
619
|
+
*/
|
|
620
|
+
minTokens?: number;
|
|
621
|
+
/**
|
|
622
|
+
* Window in seconds before expiration to trigger automatic TTL refresh.
|
|
623
|
+
* Default: 300 (5 minutes)
|
|
624
|
+
*/
|
|
625
|
+
refreshWindowSeconds?: number;
|
|
626
|
+
/**
|
|
627
|
+
* External registry for persisting cache metadata.
|
|
628
|
+
* If provided, cache lookups and storage will use this registry instead of in-memory storage.
|
|
629
|
+
* Useful for serverless/short-lived processes.
|
|
630
|
+
*/
|
|
631
|
+
registry?: AxContextCacheRegistry;
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* Information about a context cache entry (returned after creation or lookup).
|
|
635
|
+
*/
|
|
636
|
+
type AxContextCacheInfo = {
|
|
637
|
+
/** Provider-specific cache resource name */
|
|
638
|
+
name: string;
|
|
639
|
+
/** When the cache expires (ISO 8601 timestamp) */
|
|
640
|
+
expiresAt: string;
|
|
641
|
+
/** Number of tokens in the cached content */
|
|
642
|
+
tokenCount?: number;
|
|
643
|
+
/** Hash of the cached content for validation */
|
|
644
|
+
contentHash?: string;
|
|
645
|
+
};
|
|
554
646
|
type AxAIServiceOptions = {
|
|
555
647
|
debug?: boolean;
|
|
556
648
|
verbose?: boolean;
|
|
@@ -573,6 +665,12 @@ type AxAIServiceOptions = {
|
|
|
573
665
|
stepIndex?: number;
|
|
574
666
|
corsProxy?: string;
|
|
575
667
|
retry?: Partial<RetryConfig>;
|
|
668
|
+
/**
|
|
669
|
+
* Explicit context caching options.
|
|
670
|
+
* When enabled, large prompt prefixes can be cached for cost savings and lower latency.
|
|
671
|
+
* Currently supported by: Google Gemini/Vertex AI
|
|
672
|
+
*/
|
|
673
|
+
contextCache?: AxContextCacheOptions;
|
|
576
674
|
};
|
|
577
675
|
interface AxAIService<TModel = unknown, TEmbedModel = unknown, TModelKey = string> {
|
|
578
676
|
getId(): string;
|
|
@@ -589,6 +687,33 @@ interface AxAIService<TModel = unknown, TEmbedModel = unknown, TModelKey = strin
|
|
|
589
687
|
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
590
688
|
getOptions(): Readonly<AxAIServiceOptions>;
|
|
591
689
|
}
|
|
690
|
+
/**
|
|
691
|
+
* Context cache operation to be executed by the base AI service.
|
|
692
|
+
* Providers define these operations; AxBaseAI executes them via apiCall().
|
|
693
|
+
*/
|
|
694
|
+
type AxContextCacheOperation = {
|
|
695
|
+
/** Type of cache operation */
|
|
696
|
+
type: 'create' | 'update' | 'delete' | 'get';
|
|
697
|
+
/** API endpoint configuration */
|
|
698
|
+
apiConfig: AxAPI;
|
|
699
|
+
/** Request payload */
|
|
700
|
+
request: unknown;
|
|
701
|
+
/** Parse the response and return cache info */
|
|
702
|
+
parseResponse: (response: unknown) => AxContextCacheInfo | undefined;
|
|
703
|
+
};
|
|
704
|
+
/**
|
|
705
|
+
* Result of preparing a chat request with context cache support.
|
|
706
|
+
*/
|
|
707
|
+
type AxPreparedChatRequest<TChatRequest> = {
|
|
708
|
+
/** API endpoint configuration */
|
|
709
|
+
apiConfig: AxAPI;
|
|
710
|
+
/** The prepared chat request */
|
|
711
|
+
request: TChatRequest;
|
|
712
|
+
/** Optional cache operations to execute before the main request */
|
|
713
|
+
cacheOperations?: AxContextCacheOperation[];
|
|
714
|
+
/** Cache name to use in the request (if using existing cache) */
|
|
715
|
+
cachedContentName?: string;
|
|
716
|
+
};
|
|
592
717
|
interface AxAIServiceImpl<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatResponse, TChatResponseDelta, TEmbedResponse> {
|
|
593
718
|
createChatReq(req: Readonly<AxInternalChatRequest<TModel>>, config?: Readonly<AxAIServiceOptions>): Promise<[AxAPI, TChatRequest]> | [AxAPI, TChatRequest];
|
|
594
719
|
createChatResp(resp: Readonly<TChatResponse>): AxChatResponse;
|
|
@@ -597,15 +722,45 @@ interface AxAIServiceImpl<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TCha
|
|
|
597
722
|
createEmbedResp?(resp: Readonly<TEmbedResponse>): AxEmbedResponse;
|
|
598
723
|
getModelConfig(): AxModelConfig;
|
|
599
724
|
getTokenUsage(): AxTokenUsage | undefined;
|
|
725
|
+
/**
|
|
726
|
+
* Optional: Prepare a chat request with context cache support.
|
|
727
|
+
* Providers implement this to support explicit context caching.
|
|
728
|
+
* Returns cache operations to execute and the modified request.
|
|
729
|
+
*/
|
|
730
|
+
prepareCachedChatReq?(req: Readonly<AxInternalChatRequest<TModel>>, options: Readonly<AxAIServiceOptions>, existingCacheName?: string): Promise<AxPreparedChatRequest<TChatRequest>>;
|
|
731
|
+
/**
|
|
732
|
+
* Optional: Build a context cache creation operation.
|
|
733
|
+
* Called when a new cache needs to be created from the request.
|
|
734
|
+
*/
|
|
735
|
+
buildCacheCreateOp?(req: Readonly<AxInternalChatRequest<TModel>>, options: Readonly<AxAIServiceOptions>): AxContextCacheOperation | undefined;
|
|
736
|
+
/**
|
|
737
|
+
* Optional: Build a context cache TTL update operation.
|
|
738
|
+
*/
|
|
739
|
+
buildCacheUpdateTTLOp?(cacheName: string, ttlSeconds: number): AxContextCacheOperation;
|
|
740
|
+
/**
|
|
741
|
+
* Optional: Build a context cache deletion operation.
|
|
742
|
+
*/
|
|
743
|
+
buildCacheDeleteOp?(cacheName: string): AxContextCacheOperation;
|
|
744
|
+
/**
|
|
745
|
+
* Optional: Check if explicit context caching is supported (e.g., Gemini).
|
|
746
|
+
* Explicit caching creates a separate cache resource with an ID.
|
|
747
|
+
*/
|
|
748
|
+
supportsContextCache?(model: TModel): boolean;
|
|
749
|
+
/**
|
|
750
|
+
* Optional: Check if implicit context caching is supported (e.g., Anthropic).
|
|
751
|
+
* Implicit caching marks content in the request; provider handles caching automatically.
|
|
752
|
+
*/
|
|
753
|
+
supportsImplicitCaching?(model: TModel): boolean;
|
|
600
754
|
}
|
|
601
755
|
|
|
756
|
+
type AxMemoryMessageValue = Omit<AxChatRequest['chatPrompt'][number], 'role'> | Omit<AxChatResponseResult, 'index'>;
|
|
602
757
|
type AxMemoryData = {
|
|
603
758
|
tags?: string[];
|
|
604
759
|
role: AxChatRequest['chatPrompt'][number]['role'];
|
|
605
760
|
updatable?: boolean;
|
|
606
761
|
chat: {
|
|
607
762
|
index: number;
|
|
608
|
-
value:
|
|
763
|
+
value: AxMemoryMessageValue;
|
|
609
764
|
}[];
|
|
610
765
|
}[];
|
|
611
766
|
interface AxAIMemory {
|
|
@@ -1031,6 +1186,7 @@ declare class AxMemory implements AxAIMemory {
|
|
|
1031
1186
|
title?: string;
|
|
1032
1187
|
description?: string;
|
|
1033
1188
|
})[];
|
|
1189
|
+
cache?: boolean;
|
|
1034
1190
|
} | {
|
|
1035
1191
|
role: "assistant";
|
|
1036
1192
|
content?: string;
|
|
@@ -1043,6 +1199,7 @@ declare class AxMemory implements AxAIMemory {
|
|
|
1043
1199
|
params?: string | object;
|
|
1044
1200
|
};
|
|
1045
1201
|
}[];
|
|
1202
|
+
thought?: string;
|
|
1046
1203
|
thoughtBlocks?: AxThoughtBlockItem[];
|
|
1047
1204
|
cache?: boolean;
|
|
1048
1205
|
} | {
|
|
@@ -1058,7 +1215,7 @@ declare class AxMemory implements AxAIMemory {
|
|
|
1058
1215
|
updatable?: boolean;
|
|
1059
1216
|
chat: {
|
|
1060
1217
|
index: number;
|
|
1061
|
-
value:
|
|
1218
|
+
value: AxMemoryMessageValue;
|
|
1062
1219
|
}[];
|
|
1063
1220
|
} | undefined;
|
|
1064
1221
|
reset(sessionId?: string): void;
|
|
@@ -1949,7 +2106,9 @@ type Writeable<T> = {
|
|
|
1949
2106
|
interface AxPromptTemplateOptions {
|
|
1950
2107
|
functions?: Readonly<AxInputFunctionType>;
|
|
1951
2108
|
thoughtFieldName?: string;
|
|
1952
|
-
|
|
2109
|
+
contextCache?: AxContextCacheOptions;
|
|
2110
|
+
/** When true, examples/demos are embedded in system prompt (legacy). When false (default), they are rendered as alternating user/assistant message pairs. */
|
|
2111
|
+
examplesInSystem?: boolean;
|
|
1953
2112
|
}
|
|
1954
2113
|
type AxChatRequestChatPrompt = Writeable<AxChatRequest['chatPrompt'][0]>;
|
|
1955
2114
|
type ChatRequestUserMessage = Exclude<Extract<AxChatRequestChatPrompt, {
|
|
@@ -1965,7 +2124,8 @@ declare class AxPromptTemplate {
|
|
|
1965
2124
|
getInstruction(): string | undefined;
|
|
1966
2125
|
private readonly thoughtFieldName;
|
|
1967
2126
|
private readonly functions?;
|
|
1968
|
-
private readonly
|
|
2127
|
+
private readonly contextCache?;
|
|
2128
|
+
private readonly examplesInSystem;
|
|
1969
2129
|
constructor(sig: Readonly<AxSignature>, options?: Readonly<AxPromptTemplateOptions>, fieldTemplates?: Record<string, AxFieldTemplateFn>);
|
|
1970
2130
|
/**
|
|
1971
2131
|
* Build legacy prompt format (backward compatible)
|
|
@@ -2004,6 +2164,11 @@ declare class AxPromptTemplate {
|
|
|
2004
2164
|
}>) => Extract<AxChatRequest["chatPrompt"][number], {
|
|
2005
2165
|
role: "user" | "system" | "assistant";
|
|
2006
2166
|
}>[];
|
|
2167
|
+
/**
|
|
2168
|
+
* Render prompt with examples/demos as alternating user/assistant message pairs.
|
|
2169
|
+
* This follows the best practices for few-shot prompting in modern LLMs.
|
|
2170
|
+
*/
|
|
2171
|
+
private renderWithMessagePairs;
|
|
2007
2172
|
renderExtraFields: (extraFields: readonly AxIField[]) => ({
|
|
2008
2173
|
type: "text";
|
|
2009
2174
|
text: string;
|
|
@@ -2047,6 +2212,16 @@ declare class AxPromptTemplate {
|
|
|
2047
2212
|
})[];
|
|
2048
2213
|
private renderExamples;
|
|
2049
2214
|
private renderDemos;
|
|
2215
|
+
/**
|
|
2216
|
+
* Render examples as alternating user/assistant message pairs.
|
|
2217
|
+
* This follows the best practices for few-shot prompting in modern LLMs.
|
|
2218
|
+
*/
|
|
2219
|
+
private renderExamplesAsMessages;
|
|
2220
|
+
/**
|
|
2221
|
+
* Render demos as alternating user/assistant message pairs.
|
|
2222
|
+
* This follows the best practices for few-shot prompting in modern LLMs.
|
|
2223
|
+
*/
|
|
2224
|
+
private renderDemosAsMessages;
|
|
2050
2225
|
private renderInputFields;
|
|
2051
2226
|
private renderInField;
|
|
2052
2227
|
private defaultRenderInField;
|
|
@@ -2317,7 +2492,6 @@ type AxProgramForwardOptions<MODEL> = AxAIServiceOptions & {
|
|
|
2317
2492
|
fastFail?: boolean;
|
|
2318
2493
|
showThoughts?: boolean;
|
|
2319
2494
|
functionCallMode?: 'auto' | 'native' | 'prompt';
|
|
2320
|
-
cacheSystemPrompt?: boolean;
|
|
2321
2495
|
cachingFunction?: (key: string, value?: AxGenOut) => AxGenOut | undefined | Promise<AxGenOut | undefined>;
|
|
2322
2496
|
disableMemoryCleanup?: boolean;
|
|
2323
2497
|
traceLabel?: string;
|
|
@@ -2546,6 +2720,29 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
|
|
|
2546
2720
|
private getModelByKey;
|
|
2547
2721
|
private getModel;
|
|
2548
2722
|
private getEmbedModel;
|
|
2723
|
+
/**
|
|
2724
|
+
* Handle context caching for providers that support it.
|
|
2725
|
+
* This method manages cache lookup, creation, TTL refresh, and cache operations.
|
|
2726
|
+
*
|
|
2727
|
+
* Behavior: If contextCache is present, caching is enabled.
|
|
2728
|
+
* - If `name` is provided, use that cache directly
|
|
2729
|
+
* - Otherwise, auto-create/reuse cache based on content hash
|
|
2730
|
+
*/
|
|
2731
|
+
private handleContextCaching;
|
|
2732
|
+
/**
|
|
2733
|
+
* Use an existing cache by name to prepare the chat request.
|
|
2734
|
+
*/
|
|
2735
|
+
private useCacheByName;
|
|
2736
|
+
/**
|
|
2737
|
+
* Execute a context cache operation (create/update/delete).
|
|
2738
|
+
*/
|
|
2739
|
+
private executeCacheOperation;
|
|
2740
|
+
/**
|
|
2741
|
+
* Estimate the number of tokens in cacheable content.
|
|
2742
|
+
* Uses a simple heuristic of ~4 characters per token.
|
|
2743
|
+
* Includes: system prompts (always) + messages/parts marked with cache: true.
|
|
2744
|
+
*/
|
|
2745
|
+
private estimateCacheableTokens;
|
|
2549
2746
|
}
|
|
2550
2747
|
|
|
2551
2748
|
declare enum AxAIAnthropicModel {
|
|
@@ -3847,6 +4044,8 @@ type AxAIGoogleGeminiChatRequest = {
|
|
|
3847
4044
|
systemInstruction?: AxAIGoogleGeminiContent;
|
|
3848
4045
|
generationConfig: AxAIGoogleGeminiGenerationConfig;
|
|
3849
4046
|
safetySettings?: AxAIGoogleGeminiSafetySettings;
|
|
4047
|
+
/** Reference to a cached content resource (for explicit context caching) */
|
|
4048
|
+
cachedContent?: string;
|
|
3850
4049
|
};
|
|
3851
4050
|
type AxAIGoogleGeminiChatResponse = {
|
|
3852
4051
|
candidates: {
|
|
@@ -3881,6 +4080,8 @@ type AxAIGoogleGeminiChatResponse = {
|
|
|
3881
4080
|
candidatesTokenCount: number;
|
|
3882
4081
|
totalTokenCount: number;
|
|
3883
4082
|
thoughtsTokenCount: number;
|
|
4083
|
+
/** Number of tokens in the cached content (from explicit caching) */
|
|
4084
|
+
cachedContentTokenCount?: number;
|
|
3884
4085
|
};
|
|
3885
4086
|
};
|
|
3886
4087
|
type AxAIGoogleGeminiChatResponseDelta = AxAIGoogleGeminiChatResponse;
|
|
@@ -3955,6 +4156,57 @@ type AxAIGoogleVertexBatchEmbedResponse = {
|
|
|
3955
4156
|
};
|
|
3956
4157
|
}[];
|
|
3957
4158
|
};
|
|
4159
|
+
/**
|
|
4160
|
+
* Request to create a context cache in Vertex AI / Gemini API.
|
|
4161
|
+
*/
|
|
4162
|
+
type AxAIGoogleGeminiCacheCreateRequest = {
|
|
4163
|
+
/** The model to associate with the cache */
|
|
4164
|
+
model: string;
|
|
4165
|
+
/** Display name for the cache (optional) */
|
|
4166
|
+
displayName?: string;
|
|
4167
|
+
/** System instruction to cache */
|
|
4168
|
+
systemInstruction?: AxAIGoogleGeminiContent;
|
|
4169
|
+
/** Content parts to cache */
|
|
4170
|
+
contents?: AxAIGoogleGeminiContent[];
|
|
4171
|
+
/** Tools to cache */
|
|
4172
|
+
tools?: AxAIGoogleGeminiTool[];
|
|
4173
|
+
/** Tool configuration to cache */
|
|
4174
|
+
toolConfig?: AxAIGoogleGeminiToolConfig;
|
|
4175
|
+
/** TTL duration string (e.g., "3600s" for 1 hour) */
|
|
4176
|
+
ttl?: string;
|
|
4177
|
+
/** Absolute expiration time (ISO 8601) */
|
|
4178
|
+
expireTime?: string;
|
|
4179
|
+
};
|
|
4180
|
+
/**
|
|
4181
|
+
* Response from creating/getting a context cache.
|
|
4182
|
+
*/
|
|
4183
|
+
type AxAIGoogleGeminiCacheResponse = {
|
|
4184
|
+
/** Resource name of the cached content (e.g., "projects/.../locations/.../cachedContents/...") */
|
|
4185
|
+
name: string;
|
|
4186
|
+
/** Display name */
|
|
4187
|
+
displayName?: string;
|
|
4188
|
+
/** Model associated with the cache */
|
|
4189
|
+
model: string;
|
|
4190
|
+
/** When the cache was created (ISO 8601) */
|
|
4191
|
+
createTime: string;
|
|
4192
|
+
/** When the cache was last updated (ISO 8601) */
|
|
4193
|
+
updateTime: string;
|
|
4194
|
+
/** When the cache expires (ISO 8601) */
|
|
4195
|
+
expireTime: string;
|
|
4196
|
+
/** Token count of cached content */
|
|
4197
|
+
usageMetadata?: {
|
|
4198
|
+
totalTokenCount: number;
|
|
4199
|
+
};
|
|
4200
|
+
};
|
|
4201
|
+
/**
|
|
4202
|
+
* Request to update a context cache (e.g., extend TTL).
|
|
4203
|
+
*/
|
|
4204
|
+
type AxAIGoogleGeminiCacheUpdateRequest = {
|
|
4205
|
+
/** TTL duration string (e.g., "3600s" for 1 hour) */
|
|
4206
|
+
ttl?: string;
|
|
4207
|
+
/** Absolute expiration time (ISO 8601) */
|
|
4208
|
+
expireTime?: string;
|
|
4209
|
+
};
|
|
3958
4210
|
|
|
3959
4211
|
/**
|
|
3960
4212
|
* AxAIGoogleGemini: Default Model options for text generation
|
|
@@ -9039,4 +9291,4 @@ declare class AxRateLimiterTokenUsage {
|
|
|
9039
9291
|
acquire(tokens: number): Promise<void>;
|
|
9040
9292
|
}
|
|
9041
9293
|
|
|
9042
|
-
export { AxACE, type AxACEBullet, type AxACECuratorOperation, type AxACECuratorOperationType, type AxACECuratorOutput, type AxACEFeedbackEvent, type AxACEGeneratorOutput, type AxACEOptimizationArtifact, AxACEOptimizedProgram, type AxACEOptions, type AxACEPlaybook, type AxACEReflectionOutput, type AxACEResult, 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 AxAIAnthropicFunctionTool, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, type AxAIAnthropicRequestTool, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, AxAIAnthropicVertexModel, type AxAIAnthropicWebSearchTool, 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, type AxAIGoogleGeminiContentPart, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, type AxAIGoogleGeminiRetrievalConfig, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, type AxAIGoogleGeminiThinkingTokenBudgetLevels, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleMaps, 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, type AxAIMetricsInstruments, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIAnnotation, 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, AxAIOpenAIResponsesModel, 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 AxAIOpenAIUrlCitation, type AxAIOpenAIUsage, AxAIOpenRouter, type AxAIOpenRouterArgs, AxAIRefusalError, 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, type AxAIServiceModelType, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAITogether, type AxAITogetherArgs, AxAIWebLLM, type AxAIWebLLMArgs, type AxAIWebLLMChatRequest, type AxAIWebLLMChatResponse, type AxAIWebLLMChatResponseDelta, type AxAIWebLLMConfig, type AxAIWebLLMEmbedModel, type AxAIWebLLMEmbedRequest, type AxAIWebLLMEmbedResponse, AxAIWebLLMModel, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentConfig, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpoint, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCitation, type AxCompileOptions, AxContentProcessingError, type AxContentProcessingServices, type AxCostTracker, type AxCostTrackerOptions, 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, AxDefaultCostTracker, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxErrorCategory, AxEvalUtil, type AxEvaluateArgs, type AxExample$1 as AxExample, type AxExamples, type AxField, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, AxFlow, type AxFlowAutoParallelConfig, type AxFlowBranchContext, type AxFlowBranchEvaluationData, type AxFlowCompleteData, AxFlowDependencyAnalyzer, type AxFlowDynamicContext, type AxFlowErrorData, AxFlowExecutionPlanner, type AxFlowExecutionStep, type AxFlowLogData, type AxFlowLoggerData, type AxFlowLoggerFunction, type AxFlowNodeDefinition, type AxFlowParallelBranch, type AxFlowParallelGroup, type AxFlowParallelGroupCompleteData, type AxFlowParallelGroupStartData, type AxFlowStartData, type AxFlowState, type AxFlowStepCompleteData, type AxFlowStepFunction, type AxFlowStepStartData, type AxFlowSubContext, AxFlowSubContextImpl, type AxFlowTypedParallelBranch, type AxFlowTypedSubContext, AxFlowTypedSubContextImpl, type AxFlowable, type AxFluentFieldInfo, AxFluentFieldType, type AxForwardable, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, type AxFunctionResult, type AxFunctionResultFormatter, AxGEPA, type AxGEPAAdapter, type AxGEPAEvaluationBatch, AxGEPAFlow, type AxGEPAOptimizationReport, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenInput, type AxGenMetricsInstruments, type AxGenOut, type AxGenOutput, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJudge, type AxJudgeMode, type AxJudgeOptions, type AxJudgeResult, type AxJudgeRubric, AxLLMRequestTypeValues, AxLearn, type AxLearnOptions, type AxLearnProgress, type AxLearnResult, type AxLoggerData, type AxLoggerFunction, AxMCPClient, type AxMCPFunctionDescription, AxMCPHTTPSSETransport, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPOAuthOptions, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, type AxMessage, type AxMetricFn, type AxMetricFnArgs, type AxMetricsConfig, AxMiPRO, type AxMiPROOptimizerOptions, type AxMiPROResult, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, type AxMultiProviderConfig, AxMultiServiceRouter, type AxOptimizationCheckpoint, type AxOptimizationProgress, type AxOptimizationStats, type AxOptimizedProgram, AxOptimizedProgramImpl, type AxOptimizer, type AxOptimizerArgs, type AxOptimizerLoggerData, type AxOptimizerLoggerFunction, type AxOptimizerMetricsConfig, type AxOptimizerMetricsInstruments, type AxOptimizerResult, type AxParetoResult, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramForwardOptionsWithModels, type AxProgramOptions, type AxProgramStreamingForwardOptions, type AxProgramStreamingForwardOptionsWithModels, type AxProgramTrace, type AxProgramUsage, type AxProgrammable, AxPromptTemplate, type AxPromptTemplateOptions, AxProviderRouter, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxResultPickerFunction, type AxResultPickerFunctionFieldResults, type AxResultPickerFunctionFunctionResults, type AxRewriteIn, type AxRewriteOut, type AxRoutingResult, type AxSamplePickerOptions, type AxSetExamplesOptions, AxSignature, AxSignatureBuilder, type AxSignatureConfig, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, AxStopFunctionCallException, type AxStorage, type AxStorageQuery, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxSynth, type AxSynthExample, type AxSynthOptions, type AxSynthResult, AxTestPrompt, type AxThoughtBlockItem, AxTokenLimitError, type AxTokenUsage, type AxTrace, AxTraceLogger, type AxTraceLoggerOptions, type AxTunable, type AxTypedExample, type AxUsable, agent, ai, ax, 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, axAIOpenRouterDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axAIWebLLMCreativeConfig, axAIWebLLMDefaultConfig, axAnalyzeChatPromptRequirements, axAnalyzeRequestRequirements, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axCheckMetricsHealth, axCreateDefaultColorLogger, axCreateDefaultOptimizerColorLogger, axCreateDefaultOptimizerTextLogger, axCreateDefaultTextLogger, axCreateFlowColorLogger, axCreateFlowTextLogger, axDefaultFlowLogger, axDefaultMetricsConfig, axDefaultOptimizerLogger, axDefaultOptimizerMetricsConfig, axGetCompatibilityReport, axGetFormatCompatibility, axGetMetricsConfig, axGetOptimizerMetricsConfig, axGetProvidersWithMediaSupport, axGlobals, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoOpenAIResponses, axModelInfoReka, axModelInfoTogether, axModelInfoWebLLM, axProcessContentForProvider, axRAG, axScoreProvidersForRequest, axSelectOptimalProvider, axSpanAttributes, axSpanEvents, axUpdateMetricsConfig, axUpdateOptimizerMetricsConfig, axValidateChatRequestMessage, axValidateChatResponseResult, axValidateProviderCapabilities, f, flow, s };
|
|
9294
|
+
export { AxACE, type AxACEBullet, type AxACECuratorOperation, type AxACECuratorOperationType, type AxACECuratorOutput, type AxACEFeedbackEvent, type AxACEGeneratorOutput, type AxACEOptimizationArtifact, AxACEOptimizedProgram, type AxACEOptions, type AxACEPlaybook, type AxACEReflectionOutput, type AxACEResult, 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 AxAIAnthropicFunctionTool, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, type AxAIAnthropicRequestTool, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, AxAIAnthropicVertexModel, type AxAIAnthropicWebSearchTool, 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 AxAIGoogleGeminiCacheCreateRequest, type AxAIGoogleGeminiCacheResponse, type AxAIGoogleGeminiCacheUpdateRequest, type AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, type AxAIGoogleGeminiContentPart, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, type AxAIGoogleGeminiRetrievalConfig, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, type AxAIGoogleGeminiThinkingTokenBudgetLevels, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleMaps, 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, type AxAIMetricsInstruments, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIAnnotation, 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, AxAIOpenAIResponsesModel, 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 AxAIOpenAIUrlCitation, type AxAIOpenAIUsage, AxAIOpenRouter, type AxAIOpenRouterArgs, AxAIRefusalError, 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, type AxAIServiceModelType, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAITogether, type AxAITogetherArgs, AxAIWebLLM, type AxAIWebLLMArgs, type AxAIWebLLMChatRequest, type AxAIWebLLMChatResponse, type AxAIWebLLMChatResponseDelta, type AxAIWebLLMConfig, type AxAIWebLLMEmbedModel, type AxAIWebLLMEmbedRequest, type AxAIWebLLMEmbedResponse, AxAIWebLLMModel, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentConfig, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpoint, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCitation, type AxCompileOptions, AxContentProcessingError, type AxContentProcessingServices, type AxContextCacheInfo, type AxContextCacheOperation, type AxContextCacheOptions, type AxContextCacheRegistry, type AxContextCacheRegistryEntry, type AxCostTracker, type AxCostTrackerOptions, 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, AxDefaultCostTracker, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxErrorCategory, AxEvalUtil, type AxEvaluateArgs, type AxExample$1 as AxExample, type AxExamples, type AxField, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, AxFlow, type AxFlowAutoParallelConfig, type AxFlowBranchContext, type AxFlowBranchEvaluationData, type AxFlowCompleteData, AxFlowDependencyAnalyzer, type AxFlowDynamicContext, type AxFlowErrorData, AxFlowExecutionPlanner, type AxFlowExecutionStep, type AxFlowLogData, type AxFlowLoggerData, type AxFlowLoggerFunction, type AxFlowNodeDefinition, type AxFlowParallelBranch, type AxFlowParallelGroup, type AxFlowParallelGroupCompleteData, type AxFlowParallelGroupStartData, type AxFlowStartData, type AxFlowState, type AxFlowStepCompleteData, type AxFlowStepFunction, type AxFlowStepStartData, type AxFlowSubContext, AxFlowSubContextImpl, type AxFlowTypedParallelBranch, type AxFlowTypedSubContext, AxFlowTypedSubContextImpl, type AxFlowable, type AxFluentFieldInfo, AxFluentFieldType, type AxForwardable, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, type AxFunctionResult, type AxFunctionResultFormatter, AxGEPA, type AxGEPAAdapter, type AxGEPAEvaluationBatch, AxGEPAFlow, type AxGEPAOptimizationReport, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenInput, type AxGenMetricsInstruments, type AxGenOut, type AxGenOutput, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJudge, type AxJudgeMode, type AxJudgeOptions, type AxJudgeResult, type AxJudgeRubric, AxLLMRequestTypeValues, AxLearn, type AxLearnOptions, type AxLearnProgress, type AxLearnResult, type AxLoggerData, type AxLoggerFunction, AxMCPClient, type AxMCPFunctionDescription, AxMCPHTTPSSETransport, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPOAuthOptions, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, type AxMemoryMessageValue, type AxMessage, type AxMetricFn, type AxMetricFnArgs, type AxMetricsConfig, AxMiPRO, type AxMiPROOptimizerOptions, type AxMiPROResult, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, type AxMultiProviderConfig, AxMultiServiceRouter, type AxOptimizationCheckpoint, type AxOptimizationProgress, type AxOptimizationStats, type AxOptimizedProgram, AxOptimizedProgramImpl, type AxOptimizer, type AxOptimizerArgs, type AxOptimizerLoggerData, type AxOptimizerLoggerFunction, type AxOptimizerMetricsConfig, type AxOptimizerMetricsInstruments, type AxOptimizerResult, type AxParetoResult, type AxPreparedChatRequest, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramForwardOptionsWithModels, type AxProgramOptions, type AxProgramStreamingForwardOptions, type AxProgramStreamingForwardOptionsWithModels, type AxProgramTrace, type AxProgramUsage, type AxProgrammable, AxPromptTemplate, type AxPromptTemplateOptions, AxProviderRouter, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxResultPickerFunction, type AxResultPickerFunctionFieldResults, type AxResultPickerFunctionFunctionResults, type AxRewriteIn, type AxRewriteOut, type AxRoutingResult, type AxSamplePickerOptions, type AxSetExamplesOptions, AxSignature, AxSignatureBuilder, type AxSignatureConfig, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, AxStopFunctionCallException, type AxStorage, type AxStorageQuery, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxSynth, type AxSynthExample, type AxSynthOptions, type AxSynthResult, AxTestPrompt, type AxThoughtBlockItem, AxTokenLimitError, type AxTokenUsage, type AxTrace, AxTraceLogger, type AxTraceLoggerOptions, type AxTunable, type AxTypedExample, type AxUsable, agent, ai, ax, 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, axAIOpenRouterDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axAIWebLLMCreativeConfig, axAIWebLLMDefaultConfig, axAnalyzeChatPromptRequirements, axAnalyzeRequestRequirements, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axCheckMetricsHealth, axCreateDefaultColorLogger, axCreateDefaultOptimizerColorLogger, axCreateDefaultOptimizerTextLogger, axCreateDefaultTextLogger, axCreateFlowColorLogger, axCreateFlowTextLogger, axDefaultFlowLogger, axDefaultMetricsConfig, axDefaultOptimizerLogger, axDefaultOptimizerMetricsConfig, axGetCompatibilityReport, axGetFormatCompatibility, axGetMetricsConfig, axGetOptimizerMetricsConfig, axGetProvidersWithMediaSupport, axGlobals, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoOpenAIResponses, axModelInfoReka, axModelInfoTogether, axModelInfoWebLLM, axProcessContentForProvider, axRAG, axScoreProvidersForRequest, axSelectOptimalProvider, axSpanAttributes, axSpanEvents, axUpdateMetricsConfig, axUpdateOptimizerMetricsConfig, axValidateChatRequestMessage, axValidateChatResponseResult, axValidateProviderCapabilities, f, flow, s };
|