@ax-llm/ax 22.0.2 → 22.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.cts CHANGED
@@ -7771,53 +7771,6 @@ declare class AxAIGoogleGemini<TModelKey = string> extends AxBaseAI<AxAIGoogleGe
7771
7771
  constructor({ apiKey, projectId, region, endpointId, config, options, models, modelInfo, }: Readonly<Omit<AxAIGoogleGeminiArgs<TModelKey>, 'name'>>);
7772
7772
  }
7773
7773
 
7774
- declare enum AxAIHuggingFaceModel {
7775
- MetaLlama270BChatHF = "meta-llama/Llama-2-70b-chat-hf"
7776
- }
7777
- type AxAIHuggingFaceConfig = AxModelConfig & {
7778
- model: AxAIHuggingFaceModel;
7779
- returnFullText?: boolean;
7780
- doSample?: boolean;
7781
- maxTime?: number;
7782
- useCache?: boolean;
7783
- waitForModel?: boolean;
7784
- };
7785
- type AxAIHuggingFaceRequest = {
7786
- model: AxAIHuggingFaceModel;
7787
- inputs: string;
7788
- parameters: {
7789
- max_new_tokens?: number;
7790
- repetition_penalty?: number;
7791
- temperature?: number;
7792
- top_p?: number;
7793
- top_k?: number;
7794
- return_full_text?: boolean;
7795
- num_return_sequences?: number;
7796
- do_sample?: boolean;
7797
- max_time?: number;
7798
- };
7799
- options?: {
7800
- use_cache?: boolean;
7801
- wait_for_model?: boolean;
7802
- };
7803
- };
7804
- type AxAIHuggingFaceResponse = {
7805
- generated_text: string;
7806
- };
7807
-
7808
- declare const axAIHuggingFaceDefaultConfig: () => AxAIHuggingFaceConfig;
7809
- declare const axAIHuggingFaceCreativeConfig: () => AxAIHuggingFaceConfig;
7810
- interface AxAIHuggingFaceArgs<TModelKey> {
7811
- name: 'huggingface';
7812
- apiKey: string;
7813
- config?: Readonly<Partial<AxAIHuggingFaceConfig>>;
7814
- options?: Readonly<AxAIServiceOptions>;
7815
- models?: AxAIInputModelList<AxAIHuggingFaceModel, undefined, TModelKey>;
7816
- }
7817
- declare class AxAIHuggingFace<TModelKey> extends AxBaseAI<AxAIHuggingFaceModel, unknown, AxAIHuggingFaceRequest, unknown, AxAIHuggingFaceResponse, unknown, unknown, TModelKey> {
7818
- constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIHuggingFaceArgs<TModelKey>, 'name'>>);
7819
- }
7820
-
7821
7774
  declare enum AxAIMistralModel {
7822
7775
  Mistral7B = "open-mistral-7b",
7823
7776
  Mistral8x7B = "open-mixtral-8x7b",
@@ -8602,8 +8555,8 @@ declare class AxAIGrok<TModelKey> extends AxAIOpenAIBase<AxAIGrokModel, AxAIGrok
8602
8555
  speak(req: Readonly<AxSpeechRequest<AxAIGrokModel | TModelKey>>, options?: Readonly<AxAIServiceOptions>): Promise<AxSpeechResponse>;
8603
8556
  }
8604
8557
 
8605
- type AxAIArgs<TModelKey> = AxAIOpenAIArgs<'openai', AxAIOpenAIModel, AxAIOpenAIEmbedModel, TModelKey> | AxAIOpenAIResponsesArgs<'openai-responses', AxAIOpenAIResponsesModel, AxAIOpenAIEmbedModel, TModelKey> | AxAIAzureOpenAIArgs<TModelKey> | AxAIAnthropicArgs<TModelKey> | AxAIGoogleGeminiArgs<TModelKey> | AxAICohereArgs<TModelKey> | AxAIHuggingFaceArgs<TModelKey> | AxAIMistralArgs<TModelKey> | AxAIDeepSeekArgs<TModelKey> | AxAIRekaArgs<TModelKey> | AxAIGrokArgs<TModelKey>;
8606
- type AxAIModels = AxAIOpenAIModel | AxAIAnthropicModel | AxAIGoogleGeminiModel | AxAICohereModel | AxAIHuggingFaceModel | AxAIMistralModel | AxAIDeepSeekModel | AxAIGrokModel;
8558
+ type AxAIArgs<TModelKey> = AxAIOpenAIArgs<'openai', AxAIOpenAIModel, AxAIOpenAIEmbedModel, TModelKey> | AxAIOpenAIResponsesArgs<'openai-responses', AxAIOpenAIResponsesModel, AxAIOpenAIEmbedModel, TModelKey> | AxAIAzureOpenAIArgs<TModelKey> | AxAIAnthropicArgs<TModelKey> | AxAIGoogleGeminiArgs<TModelKey> | AxAICohereArgs<TModelKey> | AxAIMistralArgs<TModelKey> | AxAIDeepSeekArgs<TModelKey> | AxAIRekaArgs<TModelKey> | AxAIGrokArgs<TModelKey>;
8559
+ type AxAIModels = AxAIOpenAIModel | AxAIAnthropicModel | AxAIGoogleGeminiModel | AxAICohereModel | AxAIMistralModel | AxAIDeepSeekModel | AxAIGrokModel;
8607
8560
  type AxAIEmbedModels = AxAIOpenAIEmbedModel | AxAIGoogleGeminiEmbedModel | AxAICohereEmbedModel;
8608
8561
  type ExtractModelKeysAndValues<T> = T extends readonly {
8609
8562
  key: infer K;
@@ -8628,7 +8581,6 @@ type InferTModelKey<T> = T extends {
8628
8581
  * - `'cohere'` - Cohere (Command R+, embeddings)
8629
8582
  * - `'mistral'` - Mistral AI (Mistral Large, Codestral)
8630
8583
  * - `'deepseek'` - DeepSeek (DeepSeek-V4-Flash, DeepSeek-V4-Pro)
8631
- * - `'huggingface'` - Hugging Face Inference API
8632
8584
  * - `'reka'` - Reka AI
8633
8585
  * - `'grok'` - xAI Grok
8634
8586
  *
@@ -8762,11 +8714,6 @@ declare const axModelInfoDeepSeek: AxModelInfo[];
8762
8714
  */
8763
8715
  declare const axModelInfoGoogleGemini: AxModelInfo[];
8764
8716
 
8765
- /**
8766
- * HuggingFace: Model information
8767
- */
8768
- declare const axModelInfoHuggingFace: AxModelInfo[];
8769
-
8770
8717
  interface AxAIMetricsInstruments {
8771
8718
  latencyHistogram?: Histogram;
8772
8719
  errorCounter?: Counter;
@@ -9334,6 +9281,11 @@ declare const axCheckMetricsHealth: () => {
9334
9281
  declare const axUpdateMetricsConfig: (config: Readonly<Partial<AxMetricsConfig>>) => void;
9335
9282
  declare const axGetMetricsConfig: () => AxMetricsConfig;
9336
9283
 
9284
+ type AxOptimizeOptions = AxOptimizerArgs & Omit<AxCompileOptions, 'bootstrap'> & {
9285
+ bootstrap?: boolean | AxBootstrapOptimizerOptions;
9286
+ };
9287
+ declare function optimize<IN, OUT extends AxGenOut>(program: Readonly<AxProgrammable<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn | AxMultiMetricFn, options: Readonly<AxOptimizeOptions>): Promise<AxParetoResult<OUT>>;
9288
+
9337
9289
  /**
9338
9290
  * Factory function to create a default optimizer logger with color formatting
9339
9291
  */
@@ -9363,12 +9315,13 @@ declare class AxBootstrapFewShot extends AxBaseOptimizer {
9363
9315
  private maxTokensPerGeneration;
9364
9316
  private verboseMode;
9365
9317
  private debugMode;
9318
+ private qualityThreshold;
9366
9319
  private traces;
9367
9320
  constructor(args: Readonly<AxOptimizerArgs & {
9368
9321
  options?: AxBootstrapOptimizerOptions;
9369
9322
  }>);
9370
9323
  private compileRound;
9371
- compile<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxOptimizerResult<OUT>>;
9324
+ compile<IN, OUT extends AxGenOut>(program: Readonly<AxProgrammable<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxOptimizerResult<OUT>>;
9372
9325
  }
9373
9326
 
9374
9327
  /** Structured optimization report */
@@ -10559,7 +10512,11 @@ type AxWorkerRuntimeConfig = Readonly<{
10559
10512
  }>;
10560
10513
  declare function axWorkerRuntime(config: AxWorkerRuntimeConfig): void;
10561
10514
 
10562
- interface AxMCPJSONRPCRequest<T> {
10515
+ declare const AX_MCP_SUPPORTED_PROTOCOL_VERSIONS: readonly ["2025-11-25", "2025-06-18", "2025-03-26", "2024-11-05"];
10516
+ type AxMCPProtocolVersion = (typeof AX_MCP_SUPPORTED_PROTOCOL_VERSIONS)[number];
10517
+ type AxMCPJSONSchema = Record<string, unknown>;
10518
+ type AxMCPMeta = Record<string, unknown>;
10519
+ interface AxMCPJSONRPCRequest<T = unknown> {
10563
10520
  jsonrpc: '2.0';
10564
10521
  id: string | number;
10565
10522
  method: string;
@@ -10567,12 +10524,12 @@ interface AxMCPJSONRPCRequest<T> {
10567
10524
  }
10568
10525
  interface AxMCPJSONRPCSuccessResponse<T = unknown> {
10569
10526
  jsonrpc: '2.0';
10570
- id: string | number;
10527
+ id: string | number | null;
10571
10528
  result: T;
10572
10529
  }
10573
10530
  interface AxMCPJSONRPCErrorResponse {
10574
10531
  jsonrpc: '2.0';
10575
- id: string | number;
10532
+ id: string | number | null;
10576
10533
  error: {
10577
10534
  code: number;
10578
10535
  message: string;
@@ -10580,109 +10537,249 @@ interface AxMCPJSONRPCErrorResponse {
10580
10537
  };
10581
10538
  }
10582
10539
  type AxMCPJSONRPCResponse<T = unknown> = AxMCPJSONRPCSuccessResponse<T> | AxMCPJSONRPCErrorResponse;
10583
- interface AxMCPInitializeParams {
10584
- protocolVersion: string;
10585
- capabilities: Record<string, unknown>;
10586
- clientInfo: {
10587
- name: string;
10588
- version: string;
10589
- };
10540
+ interface AxMCPJSONRPCNotification<T = Record<string, unknown>> {
10541
+ jsonrpc: '2.0';
10542
+ method: string;
10543
+ params?: T;
10590
10544
  }
10591
- interface AxMCPInitializeResult {
10592
- protocolVersion: string;
10593
- capabilities: {
10594
- tools?: unknown[];
10595
- resources?: Record<string, unknown>;
10596
- prompts?: unknown[];
10545
+ type AxMCPJSONRPCMessage = AxMCPJSONRPCRequest | AxMCPJSONRPCNotification | AxMCPJSONRPCResponse;
10546
+ interface AxMCPIcon {
10547
+ src: string;
10548
+ mimeType?: string;
10549
+ sizes?: string[];
10550
+ }
10551
+ interface AxMCPImplementationInfo {
10552
+ name: string;
10553
+ title?: string;
10554
+ version: string;
10555
+ description?: string;
10556
+ icons?: AxMCPIcon[];
10557
+ websiteUrl?: string;
10558
+ }
10559
+ interface AxMCPClientCapabilities {
10560
+ roots?: {
10561
+ listChanged?: boolean;
10597
10562
  };
10598
- serverInfo: {
10599
- name: string;
10600
- version: string;
10563
+ sampling?: Record<string, unknown>;
10564
+ elicitation?: Record<string, unknown>;
10565
+ tasks?: Record<string, unknown>;
10566
+ experimental?: Record<string, unknown>;
10567
+ }
10568
+ interface AxMCPServerCapabilities {
10569
+ logging?: Record<string, unknown>;
10570
+ prompts?: {
10571
+ listChanged?: boolean;
10572
+ [key: string]: unknown;
10573
+ };
10574
+ resources?: {
10575
+ subscribe?: boolean;
10576
+ listChanged?: boolean;
10577
+ [key: string]: unknown;
10578
+ };
10579
+ tools?: {
10580
+ listChanged?: boolean;
10581
+ [key: string]: unknown;
10601
10582
  };
10583
+ completions?: Record<string, unknown>;
10584
+ tasks?: Record<string, unknown>;
10585
+ experimental?: Record<string, unknown>;
10586
+ [key: string]: unknown;
10602
10587
  }
10603
- interface AxMCPFunctionDescription {
10604
- name: string;
10605
- description: string;
10606
- inputSchema: AxFunctionJSONSchema;
10588
+ interface AxMCPInitializeParams {
10589
+ protocolVersion: string;
10590
+ capabilities: AxMCPClientCapabilities;
10591
+ clientInfo: AxMCPImplementationInfo;
10592
+ _meta?: AxMCPMeta;
10607
10593
  }
10608
- interface AxMCPToolsListResult {
10609
- name: string;
10610
- description: string;
10611
- tools: AxMCPFunctionDescription[];
10594
+ interface AxMCPInitializeResult {
10595
+ protocolVersion: string;
10596
+ capabilities: AxMCPServerCapabilities;
10597
+ serverInfo: AxMCPImplementationInfo;
10598
+ instructions?: string;
10599
+ _meta?: AxMCPMeta;
10600
+ }
10601
+ interface AxMCPAnnotations {
10602
+ audience?: ('user' | 'assistant')[];
10603
+ priority?: number;
10604
+ lastModified?: string;
10605
+ [key: string]: unknown;
10612
10606
  }
10613
- interface AxMCPJSONRPCNotification {
10614
- jsonrpc: '2.0';
10615
- method: string;
10616
- params?: Record<string, unknown>;
10607
+ interface AxMCPBaseAnnotated {
10608
+ annotations?: AxMCPAnnotations;
10609
+ _meta?: AxMCPMeta;
10617
10610
  }
10618
- interface AxMCPTextContent {
10611
+ interface AxMCPTextContent extends AxMCPBaseAnnotated {
10619
10612
  type: 'text';
10620
10613
  text: string;
10621
10614
  }
10622
- interface AxMCPImageContent {
10615
+ interface AxMCPImageContent extends AxMCPBaseAnnotated {
10623
10616
  type: 'image';
10624
10617
  data: string;
10625
10618
  mimeType: string;
10626
10619
  }
10627
- interface AxMCPEmbeddedResource {
10628
- type: 'resource';
10629
- resource: AxMCPTextResourceContents | AxMCPBlobResourceContents;
10620
+ interface AxMCPAudioContent extends AxMCPBaseAnnotated {
10621
+ type: 'audio';
10622
+ data: string;
10623
+ mimeType: string;
10630
10624
  }
10631
- interface AxMCPTextResourceContents {
10625
+ interface AxMCPTextResourceContents extends AxMCPBaseAnnotated {
10632
10626
  uri: string;
10633
10627
  mimeType?: string;
10634
10628
  text: string;
10635
10629
  }
10636
- interface AxMCPBlobResourceContents {
10630
+ interface AxMCPBlobResourceContents extends AxMCPBaseAnnotated {
10637
10631
  uri: string;
10638
10632
  mimeType?: string;
10639
10633
  blob: string;
10640
10634
  }
10641
- interface AxMCPResource {
10635
+ interface AxMCPEmbeddedResource extends AxMCPBaseAnnotated {
10636
+ type: 'resource';
10637
+ resource: AxMCPTextResourceContents | AxMCPBlobResourceContents;
10638
+ }
10639
+ interface AxMCPResourceLink extends AxMCPBaseAnnotated {
10640
+ type: 'resource_link';
10641
+ uri: string;
10642
+ name?: string;
10643
+ title?: string;
10644
+ description?: string;
10645
+ mimeType?: string;
10646
+ }
10647
+ type AxMCPContent = AxMCPTextContent | AxMCPImageContent | AxMCPAudioContent | AxMCPResourceLink | AxMCPEmbeddedResource;
10648
+ interface AxMCPResource extends AxMCPBaseAnnotated {
10642
10649
  uri: string;
10643
10650
  name: string;
10651
+ title?: string;
10644
10652
  description?: string;
10645
10653
  mimeType?: string;
10654
+ size?: number;
10655
+ icons?: AxMCPIcon[];
10646
10656
  }
10647
- interface AxMCPResourceTemplate {
10657
+ interface AxMCPResourceTemplate extends AxMCPBaseAnnotated {
10648
10658
  uriTemplate: string;
10649
10659
  name: string;
10660
+ title?: string;
10650
10661
  description?: string;
10651
10662
  mimeType?: string;
10663
+ icons?: AxMCPIcon[];
10664
+ }
10665
+ interface AxMCPTool extends AxMCPBaseAnnotated {
10666
+ name: string;
10667
+ title?: string;
10668
+ description?: string;
10669
+ icons?: AxMCPIcon[];
10670
+ inputSchema: AxMCPJSONSchema;
10671
+ outputSchema?: AxMCPJSONSchema;
10672
+ execution?: {
10673
+ taskSupport?: 'forbidden' | 'optional' | 'required';
10674
+ [key: string]: unknown;
10675
+ };
10676
+ }
10677
+ type AxMCPFunctionDescription = AxMCPTool;
10678
+ interface AxMCPPaginatedRequest {
10679
+ cursor?: string;
10680
+ _meta?: AxMCPMeta;
10681
+ }
10682
+ interface AxMCPToolsListResult {
10683
+ tools: AxMCPTool[];
10684
+ nextCursor?: string;
10685
+ _meta?: AxMCPMeta;
10686
+ /**
10687
+ * Older Ax tests/examples accepted these fields. Keep them optional so
10688
+ * older servers and fixtures remain type-compatible.
10689
+ */
10690
+ name?: string;
10691
+ description?: string;
10692
+ }
10693
+ interface AxMCPToolCallParams {
10694
+ name: string;
10695
+ arguments?: unknown;
10696
+ _meta?: AxMCPMeta;
10697
+ }
10698
+ interface AxMCPToolCallResult {
10699
+ content?: AxMCPContent[];
10700
+ structuredContent?: Record<string, unknown>;
10701
+ isError?: boolean;
10702
+ _meta?: AxMCPMeta;
10652
10703
  }
10653
10704
  interface AxMCPResourcesListResult {
10654
10705
  resources: AxMCPResource[];
10655
10706
  nextCursor?: string;
10707
+ _meta?: AxMCPMeta;
10656
10708
  }
10657
10709
  interface AxMCPResourceTemplatesListResult {
10658
10710
  resourceTemplates: AxMCPResourceTemplate[];
10659
10711
  nextCursor?: string;
10712
+ _meta?: AxMCPMeta;
10660
10713
  }
10661
10714
  interface AxMCPResourceReadResult {
10662
10715
  contents: (AxMCPTextResourceContents | AxMCPBlobResourceContents)[];
10716
+ _meta?: AxMCPMeta;
10663
10717
  }
10664
10718
  interface AxMCPPromptArgument {
10665
10719
  name: string;
10720
+ title?: string;
10666
10721
  description?: string;
10667
10722
  required?: boolean;
10668
10723
  }
10669
- interface AxMCPPrompt {
10724
+ interface AxMCPPrompt extends AxMCPBaseAnnotated {
10670
10725
  name: string;
10726
+ title?: string;
10671
10727
  description?: string;
10672
10728
  arguments?: AxMCPPromptArgument[];
10729
+ icons?: AxMCPIcon[];
10673
10730
  }
10674
10731
  interface AxMCPPromptMessage {
10675
10732
  role: 'user' | 'assistant';
10676
- content: AxMCPTextContent | AxMCPImageContent | AxMCPEmbeddedResource;
10733
+ content: AxMCPContent;
10677
10734
  }
10678
10735
  interface AxMCPPromptsListResult {
10679
10736
  prompts: AxMCPPrompt[];
10680
10737
  nextCursor?: string;
10738
+ _meta?: AxMCPMeta;
10681
10739
  }
10682
10740
  interface AxMCPPromptGetResult {
10683
10741
  description?: string;
10684
10742
  messages: AxMCPPromptMessage[];
10743
+ _meta?: AxMCPMeta;
10685
10744
  }
10745
+ type AxMCPCompletionReference = {
10746
+ type: 'ref/prompt';
10747
+ name: string;
10748
+ title?: string;
10749
+ } | {
10750
+ type: 'ref/resource';
10751
+ uri: string;
10752
+ };
10753
+ interface AxMCPCompletionArgument {
10754
+ name: string;
10755
+ value: string;
10756
+ }
10757
+ interface AxMCPCompletionRequest {
10758
+ ref: AxMCPCompletionReference;
10759
+ argument: AxMCPCompletionArgument;
10760
+ context?: {
10761
+ arguments?: Record<string, string>;
10762
+ };
10763
+ _meta?: AxMCPMeta;
10764
+ }
10765
+ interface AxMCPCompletionResult {
10766
+ completion: {
10767
+ values: string[];
10768
+ total?: number;
10769
+ hasMore?: boolean;
10770
+ };
10771
+ _meta?: AxMCPMeta;
10772
+ }
10773
+ type AxMCPLoggingLevel = 'debug' | 'info' | 'notice' | 'warning' | 'error' | 'critical' | 'alert' | 'emergency';
10774
+ interface AxMCPRoot {
10775
+ uri: string;
10776
+ name?: string;
10777
+ _meta?: AxMCPMeta;
10778
+ }
10779
+ interface AxMCPListRootsResult {
10780
+ roots: AxMCPRoot[];
10781
+ }
10782
+ declare function axMCPToolInputSchemaToFunctionSchema(schema: AxMCPJSONSchema | undefined): AxFunctionJSONSchema;
10686
10783
 
10687
10784
  interface AxMCPTransport {
10688
10785
  /**
@@ -10696,6 +10793,21 @@ interface AxMCPTransport {
10696
10793
  * @param message The JSON-RPC notification to send
10697
10794
  */
10698
10795
  sendNotification(message: Readonly<AxMCPJSONRPCNotification>): Promise<void>;
10796
+ /**
10797
+ * Sends a JSON-RPC response for a server-initiated request.
10798
+ * Transports that cannot receive server requests do not need to implement it.
10799
+ */
10800
+ sendResponse?(message: Readonly<AxMCPJSONRPCResponse>): Promise<void>;
10801
+ /**
10802
+ * Registers a handler for server-initiated JSON-RPC requests and
10803
+ * notifications that arrive outside a direct client request response.
10804
+ */
10805
+ setMessageHandler?(handler: (message: Readonly<AxMCPJSONRPCMessage>) => void | Promise<void>): void;
10806
+ /**
10807
+ * Stores the negotiated MCP protocol version for transports that must emit
10808
+ * it on later frames or HTTP requests.
10809
+ */
10810
+ setProtocolVersion?(protocolVersion: string): void;
10699
10811
  /**
10700
10812
  * Connects to the transport if needed
10701
10813
  * This method is optional and only required for transports that need connection setup
@@ -10703,10 +10815,7 @@ interface AxMCPTransport {
10703
10815
  connect?(): Promise<void>;
10704
10816
  }
10705
10817
 
10706
- /**
10707
- * Configuration for overriding function properties
10708
- */
10709
- interface FunctionOverride {
10818
+ interface AxMCPFunctionOverride {
10710
10819
  /** Original function name to override */
10711
10820
  name: string;
10712
10821
  /** Updates to apply to the function */
@@ -10717,33 +10826,30 @@ interface FunctionOverride {
10717
10826
  description?: string;
10718
10827
  };
10719
10828
  }
10720
- /**
10721
- * Options for the MCP client
10722
- */
10723
10829
  interface AxMCPClientOptions {
10724
10830
  /** Enable debug logging */
10725
10831
  debug?: boolean;
10726
10832
  /** Logger function for debug output */
10727
10833
  logger?: AxLoggerFunction;
10728
- /**
10729
- * List of function overrides
10730
- * Use this to provide alternative names and descriptions for functions
10731
- * while preserving their original functionality
10732
- *
10733
- * Example:
10734
- * ```
10735
- * functionOverrides: [
10736
- * {
10737
- * name: "original-function-name",
10738
- * updates: {
10739
- * name: "new-function-name",
10740
- * description: "New function description"
10741
- * }
10742
- * }
10743
- * ]
10744
- * ```
10745
- */
10746
- functionOverrides?: FunctionOverride[];
10834
+ /** MCP protocol version to request during initialize. Defaults to latest. */
10835
+ protocolVersion?: string;
10836
+ /** Protocol versions this client can accept during negotiation. */
10837
+ supportedProtocolVersions?: readonly string[];
10838
+ /** Client metadata sent in initialize. */
10839
+ clientInfo?: Partial<AxMCPImplementationInfo>;
10840
+ /** Extra client capabilities to advertise. Advertise only implemented ones. */
10841
+ capabilities?: AxMCPClientCapabilities;
10842
+ /** Optional roots support. When set, Ax advertises and answers roots/list. */
10843
+ roots?: readonly AxMCPRoot[];
10844
+ /** List of function overrides for tool/prompt/resource wrappers. */
10845
+ functionOverrides?: AxMCPFunctionOverride[];
10846
+ /** Generic notification callback for all server notifications. */
10847
+ onNotification?: (notification: Readonly<AxMCPJSONRPCNotification>) => void | Promise<void>;
10848
+ onToolsChanged?: () => void | Promise<void>;
10849
+ onPromptsChanged?: () => void | Promise<void>;
10850
+ onResourcesChanged?: () => void | Promise<void>;
10851
+ onResourceUpdated?: (uri: string) => void | Promise<void>;
10852
+ onLoggingMessage?: (params: Readonly<Record<string, unknown>>) => void | Promise<void>;
10747
10853
  }
10748
10854
  declare class AxMCPClient {
10749
10855
  private readonly transport;
@@ -10752,18 +10858,31 @@ declare class AxMCPClient {
10752
10858
  private promptFunctions;
10753
10859
  private resourceFunctions;
10754
10860
  private activeRequests;
10755
- private capabilities;
10861
+ private serverCapabilities;
10862
+ private negotiatedProtocolVersion?;
10863
+ private serverInfo?;
10864
+ private serverInstructions?;
10756
10865
  private logger;
10757
10866
  constructor(transport: AxMCPTransport, options?: Readonly<AxMCPClientOptions>);
10758
10867
  init(): Promise<void>;
10868
+ refresh(): Promise<void>;
10869
+ getProtocolVersion(): string | undefined;
10870
+ getServerInfo(): AxMCPImplementationInfo | undefined;
10871
+ getServerInstructions(): string | undefined;
10872
+ getServerCapabilities(): AxMCPServerCapabilities;
10873
+ private buildClientCapabilities;
10874
+ private isCapabilityEnabled;
10875
+ private hasSubCapability;
10759
10876
  private discoverFunctions;
10760
10877
  private discoverPromptFunctions;
10761
10878
  private discoverResourceFunctions;
10879
+ private toolToFunction;
10762
10880
  private promptToFunction;
10763
10881
  private resourceToFunction;
10764
10882
  private resourceTemplateToFunction;
10765
10883
  private formatPromptMessages;
10766
10884
  private extractContent;
10885
+ private formatToolResult;
10767
10886
  private formatResourceContents;
10768
10887
  private sanitizeName;
10769
10888
  private parseUriTemplate;
@@ -10778,6 +10897,10 @@ declare class AxMCPClient {
10778
10897
  hasToolsCapability(): boolean;
10779
10898
  hasPromptsCapability(): boolean;
10780
10899
  hasResourcesCapability(): boolean;
10900
+ hasCompletionsCapability(): boolean;
10901
+ hasLoggingCapability(): boolean;
10902
+ listTools(cursor?: string): Promise<AxMCPToolsListResult>;
10903
+ callTool(name: string, args?: unknown): Promise<AxMCPToolCallResult>;
10781
10904
  listPrompts(cursor?: string): Promise<AxMCPPromptsListResult>;
10782
10905
  getPrompt(name: string, args?: Record<string, string>): Promise<AxMCPPromptGetResult>;
10783
10906
  listResources(cursor?: string): Promise<AxMCPResourcesListResult>;
@@ -10785,22 +10908,60 @@ declare class AxMCPClient {
10785
10908
  readResource(uri: string): Promise<AxMCPResourceReadResult>;
10786
10909
  subscribeResource(uri: string): Promise<void>;
10787
10910
  unsubscribeResource(uri: string): Promise<void>;
10911
+ complete(ref: AxMCPCompletionReference, argument: AxMCPCompletionArgument, context?: AxMCPCompletionRequest['context']): Promise<AxMCPCompletionResult>;
10912
+ setLoggingLevel(level: AxMCPLoggingLevel): Promise<void>;
10788
10913
  cancelRequest(id: string): void;
10914
+ private handleInboundMessage;
10915
+ private handleServerRequest;
10916
+ private handleServerNotification;
10789
10917
  private sendRequest;
10790
10918
  private sendNotification;
10791
10919
  }
10792
10920
 
10793
- type TokenSet = {
10921
+ type AxMCPSSRFProtectionContext = 'mcp-endpoint' | 'oauth-resource-metadata' | 'oauth-authorization-server-metadata' | 'oauth-authorization' | 'oauth-registration' | 'oauth-token' | 'redirect';
10922
+ interface AxMCPSSRFProtectionOptions {
10923
+ /**
10924
+ * Disable URL validation. Intended only for controlled development and test
10925
+ * environments.
10926
+ */
10927
+ disabled?: boolean;
10928
+ /** Allow plain HTTP. HTTPS is required by default. */
10929
+ allowHTTP?: boolean;
10930
+ /** Allow loopback hosts such as localhost, 127.0.0.1, and ::1. */
10931
+ allowLoopback?: boolean;
10932
+ /** Allow private, link-local, and otherwise reserved IP literal hosts. */
10933
+ allowPrivateNetwork?: boolean;
10934
+ /** Exact hostnames that should bypass host classification checks. */
10935
+ allowedHosts?: readonly string[];
10936
+ /**
10937
+ * Optional application-specific validator. Throw to reject the URL.
10938
+ * Use this for DNS pinning or deployment-specific egress policy.
10939
+ */
10940
+ validateURL?: (url: URL, context: AxMCPSSRFProtectionContext) => void | Promise<void>;
10941
+ }
10942
+ type AxMCPFetchOptions = RequestInit & {
10943
+ ssrfProtection?: AxMCPSSRFProtectionOptions;
10944
+ ssrfContext?: AxMCPSSRFProtectionContext;
10945
+ maxRedirects?: number;
10946
+ };
10947
+
10948
+ type AxMCPTokenSet = {
10794
10949
  accessToken: string;
10795
10950
  refreshToken?: string;
10796
10951
  expiresAt?: number;
10797
10952
  issuer?: string;
10798
10953
  };
10954
+ type TokenSet = AxMCPTokenSet;
10799
10955
  interface AxMCPOAuthOptions {
10800
10956
  clientId?: string;
10801
10957
  clientSecret?: string;
10802
10958
  redirectUri?: string;
10803
10959
  scopes?: string[];
10960
+ /**
10961
+ * SSRF protection for OAuth discovery, registration, and token URLs supplied
10962
+ * by MCP servers and authorization metadata. Enabled by default.
10963
+ */
10964
+ ssrfProtection?: AxMCPSSRFProtectionOptions;
10804
10965
  selectAuthorizationServer?: (issuers: string[], resourceMetadata: unknown) => Promise<string> | string;
10805
10966
  onAuthCode?: (authorizationUrl: string) => Promise<{
10806
10967
  code: string;
@@ -10817,54 +10978,86 @@ interface AxMCPStreamableHTTPTransportOptions {
10817
10978
  headers?: Record<string, string>;
10818
10979
  authorization?: string;
10819
10980
  oauth?: AxMCPOAuthOptions;
10981
+ /**
10982
+ * SSRF protection for the configured MCP endpoint. HTTPS and public hosts are
10983
+ * required by default; set allowHTTP/allowLoopback for controlled local
10984
+ * development, or disabled for trusted test fixtures.
10985
+ */
10986
+ ssrfProtection?: AxMCPSSRFProtectionOptions;
10987
+ /**
10988
+ * Attempt legacy HTTP+SSE fallback when an initialize POST gets a legacy
10989
+ * status. Defaults to false; use AxMCPHTTPSSETransport when you know the
10990
+ * server is legacy SSE-only.
10991
+ */
10992
+ legacySSEFallback?: boolean;
10820
10993
  }
10821
10994
 
10822
- declare class AxMCPStreambleHTTPTransport implements AxMCPTransport {
10995
+ declare class AxMCPStreamableHTTPTransport implements AxMCPTransport {
10996
+ private readonly options;
10823
10997
  private mcpEndpoint;
10824
10998
  private sessionId?;
10825
- private eventSource?;
10999
+ private protocolVersion?;
10826
11000
  private pendingRequests;
10827
11001
  private messageHandler?;
10828
11002
  private customHeaders;
10829
11003
  private oauthHelper;
10830
- private currentToken?;
10831
- private currentIssuer?;
10832
- constructor(mcpEndpoint: string, options?: AxMCPStreamableHTTPTransportOptions);
11004
+ private listeningAbort?;
11005
+ constructor(mcpEndpoint: string, options?: Readonly<AxMCPStreamableHTTPTransportOptions>);
10833
11006
  setHeaders(headers: Record<string, string>): void;
10834
11007
  setAuthorization(authorization: string): void;
10835
11008
  getHeaders(): Record<string, string>;
11009
+ setProtocolVersion(protocolVersion: string): void;
10836
11010
  private buildHeaders;
10837
- setMessageHandler(handler: (message: AxMCPJSONRPCRequest<unknown> | AxMCPJSONRPCNotification) => void): void;
11011
+ private fetchEndpoint;
11012
+ setMessageHandler(handler: (message: Readonly<AxMCPJSONRPCMessage>) => void | Promise<void>): void;
10838
11013
  connect(): Promise<void>;
10839
11014
  openListeningStream(): Promise<void>;
10840
- private openListeningStreamWithFetch;
10841
11015
  send(message: Readonly<AxMCPJSONRPCRequest<unknown>>): Promise<AxMCPJSONRPCResponse<unknown>>;
10842
- private handleSSEResponse;
10843
11016
  sendNotification(message: Readonly<AxMCPJSONRPCNotification>): Promise<void>;
11017
+ sendResponse(message: Readonly<AxMCPJSONRPCResponse>): Promise<void>;
10844
11018
  terminateSession(): Promise<void>;
10845
11019
  close(): void;
11020
+ private postMessage;
11021
+ private shouldTryLegacySSEFallback;
11022
+ private openLegacySSEEndpoint;
11023
+ private parseLegacyEndpoint;
11024
+ private applyOAuthIfNeeded;
11025
+ private handleSSEResponse;
11026
+ private consumeListeningStream;
11027
+ private openGETStream;
11028
+ private consumeSSE;
11029
+ private parseJSONRPCEvent;
11030
+ private delay;
11031
+ }
11032
+ /**
11033
+ * @deprecated Use AxMCPStreamableHTTPTransport. This misspelled export remains
11034
+ * for backward compatibility.
11035
+ */
11036
+ declare class AxMCPStreambleHTTPTransport extends AxMCPStreamableHTTPTransport {
10846
11037
  }
10847
11038
 
10848
11039
  declare class AxMCPHTTPSSETransport implements AxMCPTransport {
11040
+ private readonly options;
10849
11041
  private endpoint;
10850
11042
  private sseUrl;
10851
11043
  private eventSource?;
10852
11044
  private customHeaders;
10853
11045
  private oauthHelper;
10854
- private currentToken?;
10855
- private currentIssuer?;
10856
11046
  private sseAbort?;
10857
11047
  private pendingRequests;
10858
11048
  private messageHandler?;
10859
11049
  private endpointReady?;
10860
- constructor(sseUrl: string, options?: AxMCPStreamableHTTPTransportOptions);
11050
+ constructor(sseUrl: string, options?: Readonly<AxMCPStreamableHTTPTransportOptions>);
10861
11051
  private buildHeaders;
11052
+ private fetchEndpoint;
11053
+ setMessageHandler(handler: (message: Readonly<AxMCPJSONRPCMessage>) => void | Promise<void>): void;
10862
11054
  private openSSEWithFetch;
10863
11055
  private createEndpointReady;
10864
11056
  private consumeSSEStream;
10865
11057
  connect(): Promise<void>;
10866
11058
  send(message: Readonly<AxMCPJSONRPCRequest<unknown>>): Promise<AxMCPJSONRPCResponse<unknown>>;
10867
11059
  sendNotification(message: Readonly<AxMCPJSONRPCNotification>): Promise<void>;
11060
+ sendResponse(message: Readonly<AxMCPJSONRPCResponse>): Promise<void>;
10868
11061
  close(): void;
10869
11062
  }
10870
11063
 
@@ -10915,4 +11108,4 @@ declare class AxRateLimiterTokenUsage {
10915
11108
  acquire(tokens: number): Promise<void>;
10916
11109
  }
10917
11110
 
10918
- export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicEffortLevel, type AxAIAnthropicEffortLevelMapping, type AxAIAnthropicErrorEvent, type AxAIAnthropicFunctionTool, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicOutputConfig, type AxAIAnthropicPingEvent, type AxAIAnthropicRequestTool, type AxAIAnthropicStopDetails, type AxAIAnthropicTaskBudget, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, type AxAIAnthropicThinkingWire, 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 AxAIGoogleGeminiThinkingLevel, type AxAIGoogleGeminiThinkingLevelMapping, 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, AxAIHuggingFace, type AxAIHuggingFaceArgs, type AxAIHuggingFaceConfig, AxAIHuggingFaceModel, type AxAIHuggingFaceRequest, type AxAIHuggingFaceResponse, type AxAIInputModelList, type AxAIMemory, type AxAIMetricsInstruments, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelCatalogAudioSupport, type AxAIModelCatalogFilter, type AxAIModelCatalogModel, type AxAIModelCatalogModelCapabilities, type AxAIModelCatalogModelType, type AxAIModelCatalogOptions, type AxAIModelCatalogProvider, type AxAIModelCatalogProviderName, type AxAIModelList, type AxAIModelListBase, type AxAIModels, 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, 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 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, 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, type AxAPI, type AxAPIConfig, type AxAPIResponseMetadata, AxAgent, type AxAgentActorTurnCallback, type AxAgentActorTurnCallbackArgs, type AxAgentClarification, type AxAgentClarificationChoice, AxAgentClarificationError, type AxAgentClarificationKind, type AxAgentCompletionProtocol, type AxAgentConfig, type AxAgentContextEvent, AxAgentContextMap, type AxAgentContextMapConfig, type AxAgentContextMapOperation, type AxAgentContextMapOptions, type AxAgentContextMapSnapshot, type AxAgentContextMapUpdateResult, type AxAgentContextPressure, type AxAgentContextStage, type AxAgentDemos, type AxAgentDiscoveryPromptState, type AxAgentEvalDataset, type AxAgentEvalFunctionCall, type AxAgentEvalPrediction, type AxAgentEvalTask, type AxAgentExecutorResultPayload, type AxAgentForwardOptions, type AxAgentFunction, type AxAgentFunctionCall, type AxAgentFunctionCallRecorder, type AxAgentFunctionCollection, type AxAgentFunctionExample, type AxAgentFunctionGroup, type AxAgentFunctionModuleMeta, type AxAgentGuidanceLogEntry, type AxAgentGuidancePayload, type AxAgentGuidanceState, type AxAgentIdentity, type AxAgentInputUpdateCallback, type AxAgentJudgeEvalInput, type AxAgentJudgeEvalOutput, type AxAgentJudgeInput, type AxAgentJudgeOptions, type AxAgentJudgeOutput, type AxAgentMemoriesSearchFn, type AxAgentMemoryEntry, type AxAgentMemoryResult, type AxAgentOnContextEvent, type AxAgentOnFunctionCall, type AxAgentOptimizationTargetDescriptor, type AxAgentOptimizeOptions, type AxAgentOptimizeResult, type AxAgentOptimizeTarget, type AxAgentOptions, AxAgentProtocolCompletionSignal, type AxAgentRecursionOptions, type AxAgentRecursiveExpensiveNode, type AxAgentRecursiveFunctionCall, type AxAgentRecursiveNodeRole, type AxAgentRecursiveStats, type AxAgentRecursiveTargetId, type AxAgentRecursiveTraceNode, type AxAgentRecursiveTurn, type AxAgentRecursiveUsage, type AxAgentRuntimeCompletionState, type AxAgentRuntimeExecutionContext, type AxAgentRuntimeInputState, type AxAgentSkillResult, type AxAgentSkillsPromptState, type AxAgentSkillsSearchFn, type AxAgentState, type AxAgentStateActionLogEntry, type AxAgentStateCheckpointState, type AxAgentStateExecutorModelState, type AxAgentStateRuntimeEntry, type AxAgentStreamingForwardOptions, type AxAgentStructuredClarification, type AxAgentTestCompletionPayload, type AxAgentTestResult, type AxAgentUsage, type AxAgentUsedMemoriesCallback, type AxAgentUsedMemory, type AxAgentUsedSkill, type AxAgentUsedSkillsCallback, type AxAgentic, type AxAnyAgentic, type AxAssertion, AxAssertionError, type AxAttempt, type AxAudioFormat, type AxAudioInput, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, AxBestOfN, type AxBestOfNOptions, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, type AxChatAudioConfig, type AxChatAudioOutput, type AxChatLogEntry, type AxChatLogMessage, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCitation, type AxCodeRuntime, type AxCodeSession, type AxCodeSessionSnapshot, type AxCodeSessionSnapshotEntry, type AxCompileOptions, AxContentProcessingError, type AxContentProcessingServices, type AxContextCacheInfo, type AxContextCacheOperation, type AxContextCacheOptions, type AxContextCacheRegistry, type AxContextCacheRegistryEntry, type AxContextFieldInput, type AxContextFieldPromptConfig, type AxContextPolicyBudget, type AxContextPolicyConfig, type AxContextPolicyPreset, type AxCostTracker, type AxCostTrackerOptions, type AxDateRange, type AxDateRangeValue, type AxDebugChatResponseUsage, AxDefaultCostTracker, type AxDiscoveryTurnSummary, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxErrorCategory, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxExamples, type AxExecutorModelPolicy, type AxExecutorModelPolicyEntry, type AxField, type AxFieldOptions, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, AxFlow, type AxFlowBranchEvaluationData, type AxFlowCompleteData, type AxFlowDynamicContext, type AxFlowErrorData, type AxFlowExecutionPlan, type AxFlowExecutionPlanGroup, type AxFlowExecutionPlanStep, type AxFlowForwardOptions, type AxFlowLogData, type AxFlowLoggerData, type AxFlowLoggerFunction, type AxFlowOptions, type AxFlowParallelGroupCompleteData, type AxFlowParallelGroupStartData, type AxFlowStartData, type AxFlowState, type AxFlowStateDependencyAnalysis, type AxFlowStepCompleteData, type AxFlowStepStartData, type AxFlowTypedParallelBranch, type AxFlowTypedSubContext, type AxFlowable, type AxFluentFieldInfo, AxFluentFieldType, type AxForwardable, type AxFunction, type AxFunctionCallRecord, type AxFunctionCallTrace, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, type AxFunctionProvider, type AxFunctionResult, type AxFunctionResultFormatter, AxGEPA, type AxGEPAAdapter, type AxGEPABatchEvaluation, type AxGEPABatchRow, type AxGEPABootstrapOptions, type AxGEPAComponentBanditState, AxGEPAComponentSelector, type AxGEPAComponentTarget, type AxGEPAEvaluationBatch, type AxGEPAEvaluationState, type AxGEPAOptimizationReport, type AxGEPAReflectiveTuple, type AxGEPATraceSummary, type AxGEPATraceSummaryCall, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenInput, type AxGenMetricsInstruments, type AxGenOut, type AxGenOutput, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, type AxIField, type AxInputFunctionType, AxJSRuntime, type AxJSRuntimeNodePermissionAllowlist, type AxJSRuntimeOutputMode, AxJSRuntimePermission, type AxJSRuntimeResourceLimits, type AxJudgeForwardOptions, type AxJudgeOptions, type AxLlmQueryBudgetState, type AxLlmQueryPromptMode, type AxLoggerData, type AxLoggerFunction, type AxMCPBlobResourceContents, AxMCPClient, type AxMCPEmbeddedResource, type AxMCPFunctionDescription, AxMCPHTTPSSETransport, type AxMCPImageContent, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPOAuthOptions, type AxMCPPrompt, type AxMCPPromptArgument, type AxMCPPromptGetResult, type AxMCPPromptMessage, type AxMCPPromptsListResult, type AxMCPResource, type AxMCPResourceReadResult, type AxMCPResourceTemplate, type AxMCPResourceTemplatesListResult, type AxMCPResourcesListResult, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPTextContent, type AxMCPTextResourceContents, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, type AxMemoryMessageValue, type AxMetricFn, type AxMetricFnArgs, type AxMetricsConfig, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, type AxMultiProviderConfig, AxMultiServiceRouter, type AxNamedProgramInstance, type AxOptimizableComponent, type AxOptimizableValidator, 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, type AxPromptMetrics, AxPromptTemplate, type AxPromptTemplateOptions, type AxProviderMetadata, AxProviderRouter, type AxRLMConfig, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, AxRefine, AxRefineError, type AxRefineOptions, type AxRefineStrategy, type AxRenderedPrompt, type AxResolvedContextPolicy, type AxResolvedExecutorModelPolicy, type AxResolvedExecutorModelPolicyEntry, type AxResultPickerFunction, type AxResultPickerFunctionFieldResults, type AxResultPickerFunctionFunctionResults, type AxRewardFn, type AxRewardFnArgs, type AxRolloutTrace, type AxRoutingResult, type AxRuntimeCallableFormatArgs, type AxRuntimeLanguageInfo, type AxRuntimePrimitive, type AxRuntimePrimitiveExample, type AxRuntimePrimitiveOverrideMap, type AxRuntimePrimitiveSignature, type AxRuntimePrimitiveStage, type AxSamplePickerOptions, type AxSelfTuningConfig, type AxSerializedOptimizedProgram, type AxSetExamplesOptions, AxSignature, AxSignatureBuilder, type AxSignatureConfig, type AxSignatureInput, type AxSpeechConfig, type AxSpeechRequest, type AxSpeechResponse, type AxStageDefinitionBuildOptions, type AxStageOptions, type AxStepContext, type AxStepHooks, type AxStepUsage, AxStopFunctionCallException, type AxStreamingAssertion, AxStreamingAssertionError, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxSynth, type AxSynthExample, type AxSynthOptions, type AxSynthResult, type AxSynthesizerInit, type AxSynthesizerOptions, type AxSynthesizerRole, AxTestPrompt, type AxThoughtBlockItem, AxTokenLimitError, type AxTokenUsage, type AxTranscriptionRequest, type AxTranscriptionResponse, type AxTranscriptionSegment, type AxTunable, type AxTypedExample, type AxUsable, type AxWorkerRuntimeConfig, agent, ai, ax, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIGoogleGeminiLiveAudioDefaultConfig, axAIGrokBestConfig, axAIGrokDefaultConfig, axAIGrokVoiceDefaultConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOpenAIAudioDefaultConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIOpenAIRealtimeDefaultConfig, axAIOpenAIRealtimeTranscriptionDefaultConfig, axAIOpenAIResponsesBestConfig, axAIOpenAIResponsesCreativeConfig, axAIOpenAIResponsesDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAnalyzeChatPromptRequirements, axAnalyzeRequestRequirements, axApplyOpenAIChatAudioRequest, axAudioFormatFromMimeType, axAudioInputFilename, axAudioInputToBlob, axAudioMimeType, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axBuildDistillerDefinition, axBuildExecutorDefinition, axBuildResponderDefinition, axCheckMetricsHealth, axConcatBase64, axCreateDefaultColorLogger, axCreateDefaultOptimizerColorLogger, axCreateDefaultOptimizerTextLogger, axCreateDefaultTextLogger, axCreateFlowColorLogger, axCreateFlowTextLogger, axCreateGeminiLiveAudioApi, axCreateGrokRealtimeApi, axCreateJSRuntime, axCreateOpenAIRealtimeApi, axDefaultFlowLogger, axDefaultMetricsConfig, axDefaultOptimizerLogger, axDefaultOptimizerMetricsConfig, axDeserializeOptimizedProgram, axFetchJsonSpeech, axFetchMultipartTranscription, axGetCompatibilityReport, axGetFormatCompatibility, axGetMetricsConfig, axGetOptimizerMetricsConfig, axGetProvidersWithMediaSupport, axGetSupportedAIModels, axGlobals, axGoogleGeminiLiveAudioDefaults, axIsAudioOutputEnabled, axIsGeminiLiveAudioModel, axIsGrokVoiceModel, axIsOpenAIChatAudioModel, axIsOpenAIRealtimeModel, axIsOpenAIRealtimeTranscriptionModel, axMapGeminiLiveAudioPart, axMapOpenAIChatAudioDelta, axMapOpenAIChatAudioResponse, axMapOpenAIInputAudioPart, axMergeChatAudioConfig, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoOpenAIResponses, axModelInfoReka, axNormalizeOpenAIUsage, axNormalizeTranscriptionResponse, axOpenAIChatAudioDefaults, axOptimizableValidators, axProcessContentForProvider, axResolveGeminiLiveAudioConfig, axResolveGrokRealtimeAudioConfig, axResolveOpenAIChatAudioConfig, axResolveOpenAIRealtimeAudioConfig, axRuntimePrimitives, axScoreProvidersForRequest, axSelectOptimalProvider, axSerializeOptimizedProgram, axShouldUseGeminiLiveAudio, axShouldUseGrokRealtime, axShouldUseOpenAIRealtime, axSpanAttributes, axSpanEvents, axUpdateMetricsConfig, axUpdateOptimizerMetricsConfig, axValidateChatRequestMessage, axValidateChatResponseResult, axValidateGeminiLiveAudioInput, axValidateProviderCapabilities, axWorkerRuntime, bestOfN, f, flow, fn, refine, s };
11111
+ export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicEffortLevel, type AxAIAnthropicEffortLevelMapping, type AxAIAnthropicErrorEvent, type AxAIAnthropicFunctionTool, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicOutputConfig, type AxAIAnthropicPingEvent, type AxAIAnthropicRequestTool, type AxAIAnthropicStopDetails, type AxAIAnthropicTaskBudget, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, type AxAIAnthropicThinkingWire, 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 AxAIGoogleGeminiThinkingLevel, type AxAIGoogleGeminiThinkingLevelMapping, 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, type AxAIInputModelList, type AxAIMemory, type AxAIMetricsInstruments, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelCatalogAudioSupport, type AxAIModelCatalogFilter, type AxAIModelCatalogModel, type AxAIModelCatalogModelCapabilities, type AxAIModelCatalogModelType, type AxAIModelCatalogOptions, type AxAIModelCatalogProvider, type AxAIModelCatalogProviderName, type AxAIModelList, type AxAIModelListBase, type AxAIModels, 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, 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 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, 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, type AxAPI, type AxAPIConfig, type AxAPIResponseMetadata, AxAgent, type AxAgentActorTurnCallback, type AxAgentActorTurnCallbackArgs, type AxAgentClarification, type AxAgentClarificationChoice, AxAgentClarificationError, type AxAgentClarificationKind, type AxAgentCompletionProtocol, type AxAgentConfig, type AxAgentContextEvent, AxAgentContextMap, type AxAgentContextMapConfig, type AxAgentContextMapOperation, type AxAgentContextMapOptions, type AxAgentContextMapSnapshot, type AxAgentContextMapUpdateResult, type AxAgentContextPressure, type AxAgentContextStage, type AxAgentDemos, type AxAgentDiscoveryPromptState, type AxAgentEvalDataset, type AxAgentEvalFunctionCall, type AxAgentEvalPrediction, type AxAgentEvalTask, type AxAgentExecutorResultPayload, type AxAgentForwardOptions, type AxAgentFunction, type AxAgentFunctionCall, type AxAgentFunctionCallRecorder, type AxAgentFunctionCollection, type AxAgentFunctionExample, type AxAgentFunctionGroup, type AxAgentFunctionModuleMeta, type AxAgentGuidanceLogEntry, type AxAgentGuidancePayload, type AxAgentGuidanceState, type AxAgentIdentity, type AxAgentInputUpdateCallback, type AxAgentJudgeEvalInput, type AxAgentJudgeEvalOutput, type AxAgentJudgeInput, type AxAgentJudgeOptions, type AxAgentJudgeOutput, type AxAgentMemoriesSearchFn, type AxAgentMemoryEntry, type AxAgentMemoryResult, type AxAgentOnContextEvent, type AxAgentOnFunctionCall, type AxAgentOptimizationTargetDescriptor, type AxAgentOptimizeOptions, type AxAgentOptimizeResult, type AxAgentOptimizeTarget, type AxAgentOptions, AxAgentProtocolCompletionSignal, type AxAgentRecursionOptions, type AxAgentRecursiveExpensiveNode, type AxAgentRecursiveFunctionCall, type AxAgentRecursiveNodeRole, type AxAgentRecursiveStats, type AxAgentRecursiveTargetId, type AxAgentRecursiveTraceNode, type AxAgentRecursiveTurn, type AxAgentRecursiveUsage, type AxAgentRuntimeCompletionState, type AxAgentRuntimeExecutionContext, type AxAgentRuntimeInputState, type AxAgentSkillResult, type AxAgentSkillsPromptState, type AxAgentSkillsSearchFn, type AxAgentState, type AxAgentStateActionLogEntry, type AxAgentStateCheckpointState, type AxAgentStateExecutorModelState, type AxAgentStateRuntimeEntry, type AxAgentStreamingForwardOptions, type AxAgentStructuredClarification, type AxAgentTestCompletionPayload, type AxAgentTestResult, type AxAgentUsage, type AxAgentUsedMemoriesCallback, type AxAgentUsedMemory, type AxAgentUsedSkill, type AxAgentUsedSkillsCallback, type AxAgentic, type AxAnyAgentic, type AxAssertion, AxAssertionError, type AxAttempt, type AxAudioFormat, type AxAudioInput, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, AxBestOfN, type AxBestOfNOptions, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, type AxChatAudioConfig, type AxChatAudioOutput, type AxChatLogEntry, type AxChatLogMessage, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCitation, type AxCodeRuntime, type AxCodeSession, type AxCodeSessionSnapshot, type AxCodeSessionSnapshotEntry, type AxCompileOptions, AxContentProcessingError, type AxContentProcessingServices, type AxContextCacheInfo, type AxContextCacheOperation, type AxContextCacheOptions, type AxContextCacheRegistry, type AxContextCacheRegistryEntry, type AxContextFieldInput, type AxContextFieldPromptConfig, type AxContextPolicyBudget, type AxContextPolicyConfig, type AxContextPolicyPreset, type AxCostTracker, type AxCostTrackerOptions, type AxDateRange, type AxDateRangeValue, type AxDebugChatResponseUsage, AxDefaultCostTracker, type AxDiscoveryTurnSummary, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxErrorCategory, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxExamples, type AxExecutorModelPolicy, type AxExecutorModelPolicyEntry, type AxField, type AxFieldOptions, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, AxFlow, type AxFlowBranchEvaluationData, type AxFlowCompleteData, type AxFlowDynamicContext, type AxFlowErrorData, type AxFlowExecutionPlan, type AxFlowExecutionPlanGroup, type AxFlowExecutionPlanStep, type AxFlowForwardOptions, type AxFlowLogData, type AxFlowLoggerData, type AxFlowLoggerFunction, type AxFlowOptions, type AxFlowParallelGroupCompleteData, type AxFlowParallelGroupStartData, type AxFlowStartData, type AxFlowState, type AxFlowStateDependencyAnalysis, type AxFlowStepCompleteData, type AxFlowStepStartData, type AxFlowTypedParallelBranch, type AxFlowTypedSubContext, type AxFlowable, type AxFluentFieldInfo, AxFluentFieldType, type AxForwardable, type AxFunction, type AxFunctionCallRecord, type AxFunctionCallTrace, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, type AxFunctionProvider, type AxFunctionResult, type AxFunctionResultFormatter, AxGEPA, type AxGEPAAdapter, type AxGEPABatchEvaluation, type AxGEPABatchRow, type AxGEPABootstrapOptions, type AxGEPAComponentBanditState, AxGEPAComponentSelector, type AxGEPAComponentTarget, type AxGEPAEvaluationBatch, type AxGEPAEvaluationState, type AxGEPAOptimizationReport, type AxGEPAReflectiveTuple, type AxGEPATraceSummary, type AxGEPATraceSummaryCall, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenInput, type AxGenMetricsInstruments, type AxGenOut, type AxGenOutput, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, type AxIField, type AxInputFunctionType, AxJSRuntime, type AxJSRuntimeNodePermissionAllowlist, type AxJSRuntimeOutputMode, AxJSRuntimePermission, type AxJSRuntimeResourceLimits, type AxJudgeForwardOptions, type AxJudgeOptions, type AxLlmQueryBudgetState, type AxLlmQueryPromptMode, type AxLoggerData, type AxLoggerFunction, type AxMCPAnnotations, type AxMCPAudioContent, type AxMCPBaseAnnotated, type AxMCPBlobResourceContents, AxMCPClient, type AxMCPClientCapabilities, type AxMCPClientOptions, type AxMCPCompletionArgument, type AxMCPCompletionReference, type AxMCPCompletionRequest, type AxMCPCompletionResult, type AxMCPContent, type AxMCPEmbeddedResource, type AxMCPFetchOptions, type AxMCPFunctionDescription, type AxMCPFunctionOverride, AxMCPHTTPSSETransport, type AxMCPIcon, type AxMCPImageContent, type AxMCPImplementationInfo, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCMessage, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPJSONSchema, type AxMCPListRootsResult, type AxMCPLoggingLevel, type AxMCPMeta, type AxMCPOAuthOptions, type AxMCPPaginatedRequest, type AxMCPPrompt, type AxMCPPromptArgument, type AxMCPPromptGetResult, type AxMCPPromptMessage, type AxMCPPromptsListResult, type AxMCPProtocolVersion, type AxMCPResource, type AxMCPResourceLink, type AxMCPResourceReadResult, type AxMCPResourceTemplate, type AxMCPResourceTemplatesListResult, type AxMCPResourcesListResult, type AxMCPRoot, type AxMCPSSRFProtectionContext, type AxMCPSSRFProtectionOptions, type AxMCPServerCapabilities, AxMCPStreamableHTTPTransport, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPTextContent, type AxMCPTextResourceContents, type AxMCPTokenSet, type AxMCPTool, type AxMCPToolCallParams, type AxMCPToolCallResult, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, type AxMemoryMessageValue, type AxMetricFn, type AxMetricFnArgs, type AxMetricsConfig, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, type AxMultiProviderConfig, AxMultiServiceRouter, type AxNamedProgramInstance, type AxOptimizableComponent, type AxOptimizableValidator, type AxOptimizationCheckpoint, type AxOptimizationProgress, type AxOptimizationStats, type AxOptimizeOptions, 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, type AxPromptMetrics, AxPromptTemplate, type AxPromptTemplateOptions, type AxProviderMetadata, AxProviderRouter, type AxRLMConfig, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, AxRefine, AxRefineError, type AxRefineOptions, type AxRefineStrategy, type AxRenderedPrompt, type AxResolvedContextPolicy, type AxResolvedExecutorModelPolicy, type AxResolvedExecutorModelPolicyEntry, type AxResultPickerFunction, type AxResultPickerFunctionFieldResults, type AxResultPickerFunctionFunctionResults, type AxRewardFn, type AxRewardFnArgs, type AxRolloutTrace, type AxRoutingResult, type AxRuntimeCallableFormatArgs, type AxRuntimeLanguageInfo, type AxRuntimePrimitive, type AxRuntimePrimitiveExample, type AxRuntimePrimitiveOverrideMap, type AxRuntimePrimitiveSignature, type AxRuntimePrimitiveStage, type AxSamplePickerOptions, type AxSelfTuningConfig, type AxSerializedOptimizedProgram, type AxSetExamplesOptions, AxSignature, AxSignatureBuilder, type AxSignatureConfig, type AxSignatureInput, type AxSpeechConfig, type AxSpeechRequest, type AxSpeechResponse, type AxStageDefinitionBuildOptions, type AxStageOptions, type AxStepContext, type AxStepHooks, type AxStepUsage, AxStopFunctionCallException, type AxStreamingAssertion, AxStreamingAssertionError, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxSynth, type AxSynthExample, type AxSynthOptions, type AxSynthResult, type AxSynthesizerInit, type AxSynthesizerOptions, type AxSynthesizerRole, AxTestPrompt, type AxThoughtBlockItem, AxTokenLimitError, type AxTokenUsage, type AxTranscriptionRequest, type AxTranscriptionResponse, type AxTranscriptionSegment, type AxTunable, type AxTypedExample, type AxUsable, type AxWorkerRuntimeConfig, agent, ai, ax, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIGoogleGeminiLiveAudioDefaultConfig, axAIGrokBestConfig, axAIGrokDefaultConfig, axAIGrokVoiceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOpenAIAudioDefaultConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIOpenAIRealtimeDefaultConfig, axAIOpenAIRealtimeTranscriptionDefaultConfig, axAIOpenAIResponsesBestConfig, axAIOpenAIResponsesCreativeConfig, axAIOpenAIResponsesDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAnalyzeChatPromptRequirements, axAnalyzeRequestRequirements, axApplyOpenAIChatAudioRequest, axAudioFormatFromMimeType, axAudioInputFilename, axAudioInputToBlob, axAudioMimeType, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axBuildDistillerDefinition, axBuildExecutorDefinition, axBuildResponderDefinition, axCheckMetricsHealth, axConcatBase64, axCreateDefaultColorLogger, axCreateDefaultOptimizerColorLogger, axCreateDefaultOptimizerTextLogger, axCreateDefaultTextLogger, axCreateFlowColorLogger, axCreateFlowTextLogger, axCreateGeminiLiveAudioApi, axCreateGrokRealtimeApi, axCreateJSRuntime, axCreateOpenAIRealtimeApi, axDefaultFlowLogger, axDefaultMetricsConfig, axDefaultOptimizerLogger, axDefaultOptimizerMetricsConfig, axDeserializeOptimizedProgram, axFetchJsonSpeech, axFetchMultipartTranscription, axGetCompatibilityReport, axGetFormatCompatibility, axGetMetricsConfig, axGetOptimizerMetricsConfig, axGetProvidersWithMediaSupport, axGetSupportedAIModels, axGlobals, axGoogleGeminiLiveAudioDefaults, axIsAudioOutputEnabled, axIsGeminiLiveAudioModel, axIsGrokVoiceModel, axIsOpenAIChatAudioModel, axIsOpenAIRealtimeModel, axIsOpenAIRealtimeTranscriptionModel, axMCPToolInputSchemaToFunctionSchema, axMapGeminiLiveAudioPart, axMapOpenAIChatAudioDelta, axMapOpenAIChatAudioResponse, axMapOpenAIInputAudioPart, axMergeChatAudioConfig, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoMistral, axModelInfoOpenAI, axModelInfoOpenAIResponses, axModelInfoReka, axNormalizeOpenAIUsage, axNormalizeTranscriptionResponse, axOpenAIChatAudioDefaults, axOptimizableValidators, axProcessContentForProvider, axResolveGeminiLiveAudioConfig, axResolveGrokRealtimeAudioConfig, axResolveOpenAIChatAudioConfig, axResolveOpenAIRealtimeAudioConfig, axRuntimePrimitives, axScoreProvidersForRequest, axSelectOptimalProvider, axSerializeOptimizedProgram, axShouldUseGeminiLiveAudio, axShouldUseGrokRealtime, axShouldUseOpenAIRealtime, axSpanAttributes, axSpanEvents, axUpdateMetricsConfig, axUpdateOptimizerMetricsConfig, axValidateChatRequestMessage, axValidateChatResponseResult, axValidateGeminiLiveAudioInput, axValidateProviderCapabilities, axWorkerRuntime, bestOfN, f, flow, fn, optimize, refine, s };