@langchain/xai 1.4.16 → 1.4.18

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/chat_models/completions.cjs +1 -1
  3. package/dist/chat_models/completions.d.cts +9 -10
  4. package/dist/chat_models/completions.d.cts.map +1 -1
  5. package/dist/chat_models/completions.d.ts +9 -10
  6. package/dist/chat_models/completions.d.ts.map +1 -1
  7. package/dist/chat_models/completions.js +1 -1
  8. package/dist/chat_models/responses-types.d.cts +94 -95
  9. package/dist/chat_models/responses-types.d.cts.map +1 -1
  10. package/dist/chat_models/responses-types.d.ts +94 -95
  11. package/dist/chat_models/responses-types.d.ts.map +1 -1
  12. package/dist/chat_models/responses.cjs +1 -1
  13. package/dist/chat_models/responses.d.cts +2 -2
  14. package/dist/chat_models/responses.d.cts.map +1 -1
  15. package/dist/chat_models/responses.d.ts +2 -2
  16. package/dist/chat_models/responses.d.ts.map +1 -1
  17. package/dist/chat_models/responses.js +1 -1
  18. package/dist/live_search.d.cts +7 -8
  19. package/dist/live_search.d.cts.map +1 -1
  20. package/dist/live_search.d.ts +7 -8
  21. package/dist/live_search.d.ts.map +1 -1
  22. package/dist/tools/code_execution.d.cts +3 -4
  23. package/dist/tools/code_execution.d.cts.map +1 -1
  24. package/dist/tools/code_execution.d.ts +3 -4
  25. package/dist/tools/code_execution.d.ts.map +1 -1
  26. package/dist/tools/collections_search.d.cts +4 -5
  27. package/dist/tools/collections_search.d.cts.map +1 -1
  28. package/dist/tools/collections_search.d.ts +4 -5
  29. package/dist/tools/collections_search.d.ts.map +1 -1
  30. package/dist/tools/index.d.cts +1 -2
  31. package/dist/tools/index.d.cts.map +1 -1
  32. package/dist/tools/index.d.ts +1 -2
  33. package/dist/tools/index.d.ts.map +1 -1
  34. package/dist/tools/live_search.d.cts +10 -11
  35. package/dist/tools/live_search.d.cts.map +1 -1
  36. package/dist/tools/live_search.d.ts +10 -11
  37. package/dist/tools/live_search.d.ts.map +1 -1
  38. package/dist/tools/web_search.d.cts +4 -5
  39. package/dist/tools/web_search.d.cts.map +1 -1
  40. package/dist/tools/web_search.d.ts +4 -5
  41. package/dist/tools/web_search.d.ts.map +1 -1
  42. package/dist/tools/x_search.d.cts +4 -5
  43. package/dist/tools/x_search.d.cts.map +1 -1
  44. package/dist/tools/x_search.d.ts +4 -5
  45. package/dist/tools/x_search.d.ts.map +1 -1
  46. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"responses-types.d.ts","names":[],"sources":["../../src/chat_models/responses-types.ts"],"mappings":";;;;;UAOiB;EACf;;EAEA;;;;;;UAOe;EACf;;EAEA;;EAEA;;;;;UAMe;EACf;;EAEA;;;;;KAMU,+BACR,4BACA,6BACA;;;;UASa;EACf;;EAEA;;EAEA;;EAEA;;EAEA;;;;;UAMe;EACf;;EAEA;;EAEA;;;;;UAMe;EACf;;EAEA;;EAEA;;EAEA;;;;;UAMe;EACf;;EAEA;;EAEA;;EAEA;;;;;KAMU,uBACR,+BACA,gCACA,sCACA;;;;UAKa;;EAEf;;EAEA;;EAEA;;;;;UAMe;;EAEf;;EAEA;;EAEA;;EAEA,eAAe;;;;;UAMA;;EAEf,UAAU;;;;;;UAOK;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,aAAa;;EAEb,WAAW;;;;;UAMI;EACf;;EAEA;;EAEA;;;;;KAMU,yBAAyB;;;;KASzB;;;;UASK;;EAEf,MAAM;;EAEN,kBAAkB;;EAElB;;;;;;KAOU,wBACR,sBACA,+BACA;;;;;KAMQ,6BAA6B;;;;KAS7B;;;;KAKA;;;;UAKK;;EAEf,SAAS;;EAET,UAAU;;;;;UAUK;EACf;;EAEA;;EAEA;;EAEA;;EAEA;;;;;UAMe;EACf;;EAEA;;EAEA;;EAEA;;EAEA;;;;;UAMe;EACf;;EAEA;;;;;KAMU,2BACR,4BACA,8BACA;;;;KAKQ;;;;;UAMK;;EAEf;;EAEA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A;;EAEA;;EAEA,MAAM;;;;;UAMS,yCAAyC;EACxD;;EAEA;;EAEA;;EAEA;;;;;UAMe,wCAAwC;EACvD;;EAEA;;EAEA;;EAEA;;;;;UAMe,0DAA0D;EACzE;;EAEA;;EAEA;;EAEA;;;;;UAMe,yDAAyD;EACxE;;EAEA;;EAEA;;EAEA;;;;;UAMe,yDAAyD;EACxE;;EAEA;;EAEA;;EAEA;;;;;UAMe,wDAAwD;EACvE;;EAEA;;EAEA;;EAEA;;;;;UAMe,qCAAqC;EACpD;;EAEA;;EAEA;;EAEA;;;;;KAMU,0BACR,iCACA,oCACA,mCACA,gCACA,oCACA,yCACA,wCACA,0CACA,yCACA,mCACA,kCACA,oDACA,mDACA,mDACA,kDACA;;;;UAca,oCAAoC;;;;EAInD,OAAO;;;;EAKP,UAAU;;;;;EAMV;;;;EAKA,oBAAoB;;;;EAKpB,YAAY;;;;;;;;;;;;;;;EAgBZ,QAAQ;;;;EAKR,cAAc;;;;EAKd;;;;;UAMe,8BAA8B;;;;;EAK7C;;;;;EAMA;;;;;EAMA;;;;;EAMA;;;;;EAMA;;;;EAKA;;;;;EAMA;;;;EAKA;;;;;EAMA;;;;EAKA,mBAAmB;;;;EAKnB,YAAY;;;;;;;;;;;;;;;EAgBZ,QAAQ;;;;;KAME,mCAAmC,KAC7C"}
1
+ {"version":3,"file":"responses-types.d.ts","names":[],"sources":["../../src/chat_models/responses-types.ts"],"mappings":";;;;;iBAOiB;EACf;;EAEA;;;;;;iBAOe;EACf;;EAEA;;EAEA;;;;;iBAMe;EACf;;EAEA;;;;;YAMU,+BACR,4BACA,6BACA;;;;iBASa;EACf;;EAEA;;EAEA;;EAEA;;EAEA;;;;;iBAMe;EACf;;EAEA;;EAEA;;;;;iBAMe;EACf;;EAEA;;EAEA;;EAEA;;;;;iBAMe;EACf;;EAEA;;EAEA;;EAEA;;;;;YAMU,uBACR,+BACA,gCACA,sCACA;;;;iBAKa;;EAEf;;EAEA;;EAEA;;;;;iBAMe;;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AMA;;;;;EAMA;;;;;EAMA;;;;;EAMA;;;;EAKA;;;;;EAMA;;;;EAKA;;;;;EAMA;;;;EAKA,mBAAmB;;;;EAKnB,YAAY;;;;;;;;;;;;;;;EAgBZ,QAAQ;;;;;YAME,mCAAmC,KAC7C"}
@@ -56,7 +56,7 @@ var ChatXAIResponses = class extends _langchain_core_language_models_chat_models
56
56
  model: modelOrFields
57
57
  } : modelOrFields ?? {};
58
58
  super(fields);
59
- this._addVersion("@langchain/xai", "1.4.16");
59
+ this._addVersion("@langchain/xai", "1.4.18");
60
60
  const apiKey = fields?.apiKey ?? (0, _langchain_core_utils_env.getEnvironmentVariable)("XAI_API_KEY");
61
61
  if (!apiKey) throw new Error(`xAI API key not found. Please set the XAI_API_KEY environment variable or provide the key in the "apiKey" field.`);
62
62
  this.apiKey = apiKey;
@@ -25,7 +25,7 @@ import { ChatGenerationChunk, ChatResult } from "@langchain/core/outputs";
25
25
  * console.log(result.content);
26
26
  * ```
27
27
  */
28
- declare class ChatXAIResponses<CallOptions extends ChatXAIResponsesCallOptions = ChatXAIResponsesCallOptions> extends BaseChatModel<CallOptions> {
28
+ export declare class ChatXAIResponses<CallOptions extends ChatXAIResponsesCallOptions = ChatXAIResponsesCallOptions> extends BaseChatModel<CallOptions> {
29
29
  static lc_name(): string;
30
30
  lc_serializable: boolean;
31
31
  lc_namespace: string[];
@@ -67,5 +67,5 @@ declare class ChatXAIResponses<CallOptions extends ChatXAIResponsesCallOptions =
67
67
  _streamResponseChunks(messages: BaseMessage[], options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMRun): AsyncGenerator<ChatGenerationChunk>;
68
68
  }
69
69
  //#endregion
70
- export { ChatXAIResponses, type ChatXAIResponsesCallOptions, type ChatXAIResponsesInput, type ChatXAIResponsesInvocationParams };
70
+ export type { ChatXAIResponsesCallOptions, ChatXAIResponsesInput, ChatXAIResponsesInvocationParams };
71
71
  //# sourceMappingURL=responses.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.cts","names":[],"sources":["../../src/chat_models/responses.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;cA+Da,iBACX,oBAAoB,8BAA8B,qCAC1C,cAAc;SACf;EAIP;EAEA;MAEI;KAAiB;;MAMjB;KAAiB;;EAUrB;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA,mBAAmB;EAEnB,YAAY;EAEZ,QAAQ;EAMR,YAAY,eAAe,SAAS,KAAK;EACzC,YAAY,SAAS;EAsCrB;EAIS,YAAY,qCAAqC;EAUjD,UAAU;EAkBnB,iBACE,sCACC;;;;YA2Ba,aACd,SAAS,uCACR,QAAQ;YAEK,aACd,SAAS,oCACR,QAAQ,cAAc;;;;YAuCR,sBACf,aACA,SAAS,wBACT,SAAS,2BACR,cAAc;EA0DX,UACJ,UAAU,eACV,oCACA,aAAa,2BACZ,QAAQ;EAuDJ,uBACL,UAAU,eACV,oCACA,cAAc,2BACb,eAAe;EA8BX,sBACL,UAAU,eACV,oCACA,aAAa,2BACZ,eAAe"}
1
+ {"version":3,"file":"responses.d.cts","names":[],"sources":["../../src/chat_models/responses.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+Da,iBACX,oBAAoB,8BAA8B,qCAC1C,cAAc;SACf;EAIP;EAEA;MAEI;KAAiB;;MAMjB;KAAiB;;EAUrB;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA,mBAAmB;EAEnB,YAAY;EAEZ,QAAQ;EAMR,YAAY,eAAe,SAAS,KAAK;EACzC,YAAY,SAAS;EAsCrB;EAIS,YAAY,qCAAqC;EAUjD,UAAU;EAkBnB,iBACE,sCACC;;;;YA2Ba,aACd,SAAS,uCACR,QAAQ;YAEK,aACd,SAAS,oCACR,QAAQ,cAAc;;;;YAuCR,sBACf,aACA,SAAS,wBACT,SAAS,2BACR,cAAc;EA0DX,UACJ,UAAU,eACV,oCACA,aAAa,2BACZ,QAAQ;EAuDJ,uBACL,UAAU,eACV,oCACA,cAAc,2BACb,eAAe;EA8BX,sBACL,UAAU,eACV,oCACA,aAAa,2BACZ,eAAe"}
@@ -25,7 +25,7 @@ import { ChatModelStreamEvent } from "@langchain/core/language_models/event";
25
25
  * console.log(result.content);
26
26
  * ```
27
27
  */
28
- declare class ChatXAIResponses<CallOptions extends ChatXAIResponsesCallOptions = ChatXAIResponsesCallOptions> extends BaseChatModel<CallOptions> {
28
+ export declare class ChatXAIResponses<CallOptions extends ChatXAIResponsesCallOptions = ChatXAIResponsesCallOptions> extends BaseChatModel<CallOptions> {
29
29
  static lc_name(): string;
30
30
  lc_serializable: boolean;
31
31
  lc_namespace: string[];
@@ -67,5 +67,5 @@ declare class ChatXAIResponses<CallOptions extends ChatXAIResponsesCallOptions =
67
67
  _streamResponseChunks(messages: BaseMessage[], options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMRun): AsyncGenerator<ChatGenerationChunk>;
68
68
  }
69
69
  //#endregion
70
- export { ChatXAIResponses, type ChatXAIResponsesCallOptions, type ChatXAIResponsesInput, type ChatXAIResponsesInvocationParams };
70
+ export type { ChatXAIResponsesCallOptions, ChatXAIResponsesInput, ChatXAIResponsesInvocationParams };
71
71
  //# sourceMappingURL=responses.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responses.d.ts","names":[],"sources":["../../src/chat_models/responses.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;cA+Da,iBACX,oBAAoB,8BAA8B,qCAC1C,cAAc;SACf;EAIP;EAEA;MAEI;KAAiB;;MAMjB;KAAiB;;EAUrB;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA,mBAAmB;EAEnB,YAAY;EAEZ,QAAQ;EAMR,YAAY,eAAe,SAAS,KAAK;EACzC,YAAY,SAAS;EAsCrB;EAIS,YAAY,qCAAqC;EAUjD,UAAU;EAkBnB,iBACE,sCACC;;;;YA2Ba,aACd,SAAS,uCACR,QAAQ;YAEK,aACd,SAAS,oCACR,QAAQ,cAAc;;;;YAuCR,sBACf,aACA,SAAS,wBACT,SAAS,2BACR,cAAc;EA0DX,UACJ,UAAU,eACV,oCACA,aAAa,2BACZ,QAAQ;EAuDJ,uBACL,UAAU,eACV,oCACA,cAAc,2BACb,eAAe;EA8BX,sBACL,UAAU,eACV,oCACA,aAAa,2BACZ,eAAe"}
1
+ {"version":3,"file":"responses.d.ts","names":[],"sources":["../../src/chat_models/responses.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;qBA+Da,iBACX,oBAAoB,8BAA8B,qCAC1C,cAAc;SACf;EAIP;EAEA;MAEI;KAAiB;;MAMjB;KAAiB;;EAUrB;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA;EAEA,mBAAmB;EAEnB,YAAY;EAEZ,QAAQ;EAMR,YAAY,eAAe,SAAS,KAAK;EACzC,YAAY,SAAS;EAsCrB;EAIS,YAAY,qCAAqC;EAUjD,UAAU;EAkBnB,iBACE,sCACC;;;;YA2Ba,aACd,SAAS,uCACR,QAAQ;YAEK,aACd,SAAS,oCACR,QAAQ,cAAc;;;;YAuCR,sBACf,aACA,SAAS,wBACT,SAAS,2BACR,cAAc;EA0DX,UACJ,UAAU,eACV,oCACA,aAAa,2BACZ,QAAQ;EAuDJ,uBACL,UAAU,eACV,oCACA,cAAc,2BACb,eAAe;EA8BX,sBACL,UAAU,eACV,oCACA,aAAa,2BACZ,eAAe"}
@@ -56,7 +56,7 @@ var ChatXAIResponses = class extends BaseChatModel {
56
56
  model: modelOrFields
57
57
  } : modelOrFields ?? {};
58
58
  super(fields);
59
- this._addVersion("@langchain/xai", "1.4.16");
59
+ this._addVersion("@langchain/xai", "1.4.18");
60
60
  const apiKey = fields?.apiKey ?? getEnvironmentVariable("XAI_API_KEY");
61
61
  if (!apiKey) throw new Error(`xAI API key not found. Please set the XAI_API_KEY environment variable or provide the key in the "apiKey" field.`);
62
62
  this.apiKey = apiKey;
@@ -3,7 +3,7 @@
3
3
  * Web search source configuration for xAI Live Search.
4
4
  * Corresponds to a `{"type": "web", ...}` entry in `search_parameters.sources`.
5
5
  */
6
- interface XAIWebSource {
6
+ export interface XAIWebSource {
7
7
  type: "web";
8
8
  /**
9
9
  * Optional ISO alpha-2 country code used to bias results
@@ -29,7 +29,7 @@ interface XAIWebSource {
29
29
  * News search source configuration for xAI Live Search.
30
30
  * Corresponds to a `{"type": "news", ...}` entry in `search_parameters.sources`.
31
31
  */
32
- interface XAINewsSource {
32
+ export interface XAINewsSource {
33
33
  type: "news";
34
34
  /**
35
35
  * Optional ISO alpha-2 country code used to bias results
@@ -50,7 +50,7 @@ interface XAINewsSource {
50
50
  * X (formerly Twitter) search source configuration for xAI Live Search.
51
51
  * Corresponds to a `{"type": "x", ...}` entry in `search_parameters.sources`.
52
52
  */
53
- interface XAIXSource {
53
+ export interface XAIXSource {
54
54
  type: "x";
55
55
  /**
56
56
  * X handles that should be explicitly included in the search.
@@ -75,7 +75,7 @@ interface XAIXSource {
75
75
  * RSS feed search source configuration for xAI Live Search.
76
76
  * Corresponds to a `{"type": "rss", ...}` entry in `search_parameters.sources`.
77
77
  */
78
- interface XAIRssSource {
78
+ export interface XAIRssSource {
79
79
  type: "rss";
80
80
  /**
81
81
  * Links to RSS feeds to be used as a data source.
@@ -83,7 +83,7 @@ interface XAIRssSource {
83
83
  */
84
84
  links: string[];
85
85
  }
86
- type XAISearchSource = XAIWebSource | XAINewsSource | XAIXSource | XAIRssSource;
86
+ export type XAISearchSource = XAIWebSource | XAINewsSource | XAIXSource | XAIRssSource;
87
87
  /**
88
88
  * Search parameters for xAI's Live Search API.
89
89
  * Controls how the model searches for and retrieves real-time information.
@@ -92,7 +92,7 @@ type XAISearchSource = XAIWebSource | XAINewsSource | XAIXSource | XAIRssSource;
92
92
  * the agentic tool calling approach. Consider using `tools: [{ type: "live_search" }]`
93
93
  * for future compatibility.
94
94
  */
95
- interface XAISearchParameters {
95
+ export interface XAISearchParameters {
96
96
  /**
97
97
  * Controls when the model should perform a search.
98
98
  * - "auto": Let the model decide when to search (default)
@@ -132,7 +132,7 @@ interface XAISearchParameters {
132
132
  /**
133
133
  * Concrete payload shape sent as `search_parameters` to the xAI API.
134
134
  */
135
- interface XAISearchParametersPayload {
135
+ export interface XAISearchParametersPayload {
136
136
  mode: "auto" | "on" | "off";
137
137
  max_search_results?: number;
138
138
  from_date?: string;
@@ -141,5 +141,4 @@ interface XAISearchParametersPayload {
141
141
  sources?: XAISearchSource[];
142
142
  }
143
143
  //#endregion
144
- export { XAINewsSource, XAIRssSource, XAISearchParameters, XAISearchParametersPayload, XAISearchSource, XAIWebSource, XAIXSource };
145
144
  //# sourceMappingURL=live_search.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"live_search.d.cts","names":[],"sources":["../src/live_search.ts"],"mappings":";;;;;UAIiB;EACf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;;;UAOe;EACf;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;;;UAOe;EACf;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;EAIA;;;;;;UAOe;EACf;;;;;EAKA;;KAGU,kBACR,eACA,gBACA,aACA;;;;;;;;;UAUa;;;;;;;EAOf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;;;EAQA,UAAU;;;;;UAMK;EACf;EACA;EACA;EACA;EACA;EACA,UAAU"}
1
+ {"version":3,"file":"live_search.d.cts","names":[],"sources":["../src/live_search.ts"],"mappings":";;;;;iBAIiB;EACf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;;;iBAOe;EACf;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;;;iBAOe;EACf;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;EAIA;;;;;;iBAOe;EACf;;;;;EAKA;;YAGU,kBACR,eACA,gBACA,aACA;;;;;;;;;iBAUa;;;;;;;EAOf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;;;EAQA,UAAU;;;;;iBAMK;EACf;EACA;EACA;EACA;EACA;EACA,UAAU"}
@@ -3,7 +3,7 @@
3
3
  * Web search source configuration for xAI Live Search.
4
4
  * Corresponds to a `{"type": "web", ...}` entry in `search_parameters.sources`.
5
5
  */
6
- interface XAIWebSource {
6
+ export interface XAIWebSource {
7
7
  type: "web";
8
8
  /**
9
9
  * Optional ISO alpha-2 country code used to bias results
@@ -29,7 +29,7 @@ interface XAIWebSource {
29
29
  * News search source configuration for xAI Live Search.
30
30
  * Corresponds to a `{"type": "news", ...}` entry in `search_parameters.sources`.
31
31
  */
32
- interface XAINewsSource {
32
+ export interface XAINewsSource {
33
33
  type: "news";
34
34
  /**
35
35
  * Optional ISO alpha-2 country code used to bias results
@@ -50,7 +50,7 @@ interface XAINewsSource {
50
50
  * X (formerly Twitter) search source configuration for xAI Live Search.
51
51
  * Corresponds to a `{"type": "x", ...}` entry in `search_parameters.sources`.
52
52
  */
53
- interface XAIXSource {
53
+ export interface XAIXSource {
54
54
  type: "x";
55
55
  /**
56
56
  * X handles that should be explicitly included in the search.
@@ -75,7 +75,7 @@ interface XAIXSource {
75
75
  * RSS feed search source configuration for xAI Live Search.
76
76
  * Corresponds to a `{"type": "rss", ...}` entry in `search_parameters.sources`.
77
77
  */
78
- interface XAIRssSource {
78
+ export interface XAIRssSource {
79
79
  type: "rss";
80
80
  /**
81
81
  * Links to RSS feeds to be used as a data source.
@@ -83,7 +83,7 @@ interface XAIRssSource {
83
83
  */
84
84
  links: string[];
85
85
  }
86
- type XAISearchSource = XAIWebSource | XAINewsSource | XAIXSource | XAIRssSource;
86
+ export type XAISearchSource = XAIWebSource | XAINewsSource | XAIXSource | XAIRssSource;
87
87
  /**
88
88
  * Search parameters for xAI's Live Search API.
89
89
  * Controls how the model searches for and retrieves real-time information.
@@ -92,7 +92,7 @@ type XAISearchSource = XAIWebSource | XAINewsSource | XAIXSource | XAIRssSource;
92
92
  * the agentic tool calling approach. Consider using `tools: [{ type: "live_search" }]`
93
93
  * for future compatibility.
94
94
  */
95
- interface XAISearchParameters {
95
+ export interface XAISearchParameters {
96
96
  /**
97
97
  * Controls when the model should perform a search.
98
98
  * - "auto": Let the model decide when to search (default)
@@ -132,7 +132,7 @@ interface XAISearchParameters {
132
132
  /**
133
133
  * Concrete payload shape sent as `search_parameters` to the xAI API.
134
134
  */
135
- interface XAISearchParametersPayload {
135
+ export interface XAISearchParametersPayload {
136
136
  mode: "auto" | "on" | "off";
137
137
  max_search_results?: number;
138
138
  from_date?: string;
@@ -141,5 +141,4 @@ interface XAISearchParametersPayload {
141
141
  sources?: XAISearchSource[];
142
142
  }
143
143
  //#endregion
144
- export { XAINewsSource, XAIRssSource, XAISearchParameters, XAISearchParametersPayload, XAISearchSource, XAIWebSource, XAIXSource };
145
144
  //# sourceMappingURL=live_search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"live_search.d.ts","names":[],"sources":["../src/live_search.ts"],"mappings":";;;;;UAIiB;EACf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;;;UAOe;EACf;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;;;UAOe;EACf;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;EAIA;;;;;;UAOe;EACf;;;;;EAKA;;KAGU,kBACR,eACA,gBACA,aACA;;;;;;;;;UAUa;;;;;;;EAOf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;;;EAQA,UAAU;;;;;UAMK;EACf;EACA;EACA;EACA;EACA;EACA,UAAU"}
1
+ {"version":3,"file":"live_search.d.ts","names":[],"sources":["../src/live_search.ts"],"mappings":";;;;;iBAIiB;EACf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;;;iBAOe;EACf;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;;;iBAOe;EACf;;;;;EAKA;;;;;EAKA;;;;EAIA;;;;EAIA;;;;;;iBAOe;EACf;;;;;EAKA;;YAGU,kBACR,eACA,gBACA,aACA;;;;;;;;;iBAUa;;;;;;;EAOf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;;;EAQA,UAAU;;;;;iBAMK;EACf;EACA;EACA;EACA;EACA;EACA,UAAU"}
@@ -3,7 +3,7 @@
3
3
  * xAI Code Execution tool type constant.
4
4
  * Note: The Responses API uses "code_interpreter" as the type name.
5
5
  */
6
- declare const XAI_CODE_EXECUTION_TOOL_TYPE = "code_interpreter";
6
+ export declare const XAI_CODE_EXECUTION_TOOL_TYPE = "code_interpreter";
7
7
  /**
8
8
  * xAI's built-in code execution tool interface.
9
9
  * Enables the model to write and execute Python code in real-time.
@@ -15,7 +15,7 @@ declare const XAI_CODE_EXECUTION_TOOL_TYPE = "code_interpreter";
15
15
  * - Scientific computing
16
16
  * - Code generation and testing
17
17
  */
18
- interface XAICodeExecutionTool {
18
+ export interface XAICodeExecutionTool {
19
19
  /**
20
20
  * The type of the tool. Must be "code_interpreter".
21
21
  */
@@ -58,7 +58,6 @@ interface XAICodeExecutionTool {
58
58
  * );
59
59
  * ```
60
60
  */
61
- declare function xaiCodeExecution(): XAICodeExecutionTool;
61
+ export declare function xaiCodeExecution(): XAICodeExecutionTool;
62
62
  //#endregion
63
- export { XAICodeExecutionTool, XAI_CODE_EXECUTION_TOOL_TYPE, xaiCodeExecution };
64
63
  //# sourceMappingURL=code_execution.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"code_execution.d.cts","names":[],"sources":["../../src/tools/code_execution.ts"],"mappings":";;;;;cAIa;;;;;;;;;;;;UAaI;;;;EAIf,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCC,oBAAoB"}
1
+ {"version":3,"file":"code_execution.d.cts","names":[],"sources":["../../src/tools/code_execution.ts"],"mappings":";;;;;qBAIa;;;;;;;;;;;;iBAaI;;;;EAIf,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAwCC,oBAAoB"}
@@ -3,7 +3,7 @@
3
3
  * xAI Code Execution tool type constant.
4
4
  * Note: The Responses API uses "code_interpreter" as the type name.
5
5
  */
6
- declare const XAI_CODE_EXECUTION_TOOL_TYPE = "code_interpreter";
6
+ export declare const XAI_CODE_EXECUTION_TOOL_TYPE = "code_interpreter";
7
7
  /**
8
8
  * xAI's built-in code execution tool interface.
9
9
  * Enables the model to write and execute Python code in real-time.
@@ -15,7 +15,7 @@ declare const XAI_CODE_EXECUTION_TOOL_TYPE = "code_interpreter";
15
15
  * - Scientific computing
16
16
  * - Code generation and testing
17
17
  */
18
- interface XAICodeExecutionTool {
18
+ export interface XAICodeExecutionTool {
19
19
  /**
20
20
  * The type of the tool. Must be "code_interpreter".
21
21
  */
@@ -58,7 +58,6 @@ interface XAICodeExecutionTool {
58
58
  * );
59
59
  * ```
60
60
  */
61
- declare function xaiCodeExecution(): XAICodeExecutionTool;
61
+ export declare function xaiCodeExecution(): XAICodeExecutionTool;
62
62
  //#endregion
63
- export { XAICodeExecutionTool, XAI_CODE_EXECUTION_TOOL_TYPE, xaiCodeExecution };
64
63
  //# sourceMappingURL=code_execution.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"code_execution.d.ts","names":[],"sources":["../../src/tools/code_execution.ts"],"mappings":";;;;;cAIa;;;;;;;;;;;;UAaI;;;;EAIf,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCC,oBAAoB"}
1
+ {"version":3,"file":"code_execution.d.ts","names":[],"sources":["../../src/tools/code_execution.ts"],"mappings":";;;;;qBAIa;;;;;;;;;;;;iBAaI;;;;EAIf,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAwCC,oBAAoB"}
@@ -3,7 +3,7 @@
3
3
  * xAI Collections Search tool type constant.
4
4
  * Note: The Responses API uses "file_search" as the type name.
5
5
  */
6
- declare const XAI_COLLECTIONS_SEARCH_TOOL_TYPE = "file_search";
6
+ export declare const XAI_COLLECTIONS_SEARCH_TOOL_TYPE = "file_search";
7
7
  /**
8
8
  * xAI's built-in collections search tool interface.
9
9
  * Enables the model to search through uploaded knowledge bases (collections)
@@ -16,7 +16,7 @@ declare const XAI_COLLECTIONS_SEARCH_TOOL_TYPE = "file_search";
16
16
  * - RAG (Retrieval-Augmented Generation) applications
17
17
  * - Enterprise knowledge base queries
18
18
  */
19
- interface XAICollectionsSearchTool {
19
+ export interface XAICollectionsSearchTool {
20
20
  /**
21
21
  * The type of the tool. Must be "file_search".
22
22
  */
@@ -32,7 +32,7 @@ interface XAICollectionsSearchTool {
32
32
  * All fields are camel-cased for the TypeScript API and are mapped to the
33
33
  * corresponding snake_case fields in the API request.
34
34
  */
35
- interface XAICollectionsSearchToolOptions {
35
+ export interface XAICollectionsSearchToolOptions {
36
36
  /**
37
37
  * List of vector store (collection) IDs to search.
38
38
  * These are the IDs of collections created via the xAI Collections API.
@@ -84,7 +84,6 @@ interface XAICollectionsSearchToolOptions {
84
84
  * );
85
85
  * ```
86
86
  */
87
- declare function xaiCollectionsSearch(options?: XAICollectionsSearchToolOptions): XAICollectionsSearchTool;
87
+ export declare function xaiCollectionsSearch(options?: XAICollectionsSearchToolOptions): XAICollectionsSearchTool;
88
88
  //#endregion
89
- export { XAICollectionsSearchTool, XAICollectionsSearchToolOptions, XAI_COLLECTIONS_SEARCH_TOOL_TYPE, xaiCollectionsSearch };
90
89
  //# sourceMappingURL=collections_search.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collections_search.d.cts","names":[],"sources":["../../src/tools/collections_search.ts"],"mappings":";;;;;cAIa;;;;;;;;;;;;;UAcI;;;;EAIf,aAAa;;;;;EAKb;;;;;;;UAQe;;;;;;;EAOf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8Cc,qBACd,UAAS,kCACR"}
1
+ {"version":3,"file":"collections_search.d.cts","names":[],"sources":["../../src/tools/collections_search.ts"],"mappings":";;;;;qBAIa;;;;;;;;;;;;;iBAcI;;;;EAIf,aAAa;;;;;EAKb;;;;;;;iBAQe;;;;;;;EAOf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA8Cc,qBACd,UAAS,kCACR"}
@@ -3,7 +3,7 @@
3
3
  * xAI Collections Search tool type constant.
4
4
  * Note: The Responses API uses "file_search" as the type name.
5
5
  */
6
- declare const XAI_COLLECTIONS_SEARCH_TOOL_TYPE = "file_search";
6
+ export declare const XAI_COLLECTIONS_SEARCH_TOOL_TYPE = "file_search";
7
7
  /**
8
8
  * xAI's built-in collections search tool interface.
9
9
  * Enables the model to search through uploaded knowledge bases (collections)
@@ -16,7 +16,7 @@ declare const XAI_COLLECTIONS_SEARCH_TOOL_TYPE = "file_search";
16
16
  * - RAG (Retrieval-Augmented Generation) applications
17
17
  * - Enterprise knowledge base queries
18
18
  */
19
- interface XAICollectionsSearchTool {
19
+ export interface XAICollectionsSearchTool {
20
20
  /**
21
21
  * The type of the tool. Must be "file_search".
22
22
  */
@@ -32,7 +32,7 @@ interface XAICollectionsSearchTool {
32
32
  * All fields are camel-cased for the TypeScript API and are mapped to the
33
33
  * corresponding snake_case fields in the API request.
34
34
  */
35
- interface XAICollectionsSearchToolOptions {
35
+ export interface XAICollectionsSearchToolOptions {
36
36
  /**
37
37
  * List of vector store (collection) IDs to search.
38
38
  * These are the IDs of collections created via the xAI Collections API.
@@ -84,7 +84,6 @@ interface XAICollectionsSearchToolOptions {
84
84
  * );
85
85
  * ```
86
86
  */
87
- declare function xaiCollectionsSearch(options?: XAICollectionsSearchToolOptions): XAICollectionsSearchTool;
87
+ export declare function xaiCollectionsSearch(options?: XAICollectionsSearchToolOptions): XAICollectionsSearchTool;
88
88
  //#endregion
89
- export { XAICollectionsSearchTool, XAICollectionsSearchToolOptions, XAI_COLLECTIONS_SEARCH_TOOL_TYPE, xaiCollectionsSearch };
90
89
  //# sourceMappingURL=collections_search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collections_search.d.ts","names":[],"sources":["../../src/tools/collections_search.ts"],"mappings":";;;;;cAIa;;;;;;;;;;;;;UAcI;;;;EAIf,aAAa;;;;;EAKb;;;;;;;UAQe;;;;;;;EAOf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8Cc,qBACd,UAAS,kCACR"}
1
+ {"version":3,"file":"collections_search.d.ts","names":[],"sources":["../../src/tools/collections_search.ts"],"mappings":";;;;;qBAIa;;;;;;;;;;;;;iBAcI;;;;EAIf,aAAa;;;;;EAKb;;;;;;;iBAQe;;;;;;;EAOf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA8Cc,qBACd,UAAS,kCACR"}
@@ -4,7 +4,7 @@ import { XAIXSearchTool, XAIXSearchToolOptions, XAI_X_SEARCH_TOOL_TYPE, xaiXSear
4
4
  import { XAICodeExecutionTool, XAI_CODE_EXECUTION_TOOL_TYPE, xaiCodeExecution } from "./code_execution.cjs";
5
5
  import { XAICollectionsSearchTool, XAICollectionsSearchToolOptions, XAI_COLLECTIONS_SEARCH_TOOL_TYPE, xaiCollectionsSearch } from "./collections_search.cjs";
6
6
  //#region src/tools/index.d.ts
7
- declare const tools: {
7
+ export declare const tools: {
8
8
  /** @deprecated Use xaiWebSearch and xaiXSearch instead */
9
9
  xaiLiveSearch: typeof xaiLiveSearch;
10
10
  xaiWebSearch: typeof xaiWebSearch;
@@ -13,5 +13,4 @@ declare const tools: {
13
13
  xaiCollectionsSearch: typeof xaiCollectionsSearch;
14
14
  };
15
15
  //#endregion
16
- export { tools };
17
16
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/tools/index.ts"],"mappings":";;;;;;cAMa"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/tools/index.ts"],"mappings":";;;;;;qBAMa"}
@@ -4,7 +4,7 @@ import { XAIXSearchTool, XAIXSearchToolOptions, XAI_X_SEARCH_TOOL_TYPE, xaiXSear
4
4
  import { XAICodeExecutionTool, XAI_CODE_EXECUTION_TOOL_TYPE, xaiCodeExecution } from "./code_execution.js";
5
5
  import { XAICollectionsSearchTool, XAICollectionsSearchToolOptions, XAI_COLLECTIONS_SEARCH_TOOL_TYPE, xaiCollectionsSearch } from "./collections_search.js";
6
6
  //#region src/tools/index.d.ts
7
- declare const tools: {
7
+ export declare const tools: {
8
8
  /** @deprecated Use xaiWebSearch and xaiXSearch instead */
9
9
  xaiLiveSearch: typeof xaiLiveSearch;
10
10
  xaiWebSearch: typeof xaiWebSearch;
@@ -13,5 +13,4 @@ declare const tools: {
13
13
  xaiCollectionsSearch: typeof xaiCollectionsSearch;
14
14
  };
15
15
  //#endregion
16
- export { tools };
17
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/tools/index.ts"],"mappings":";;;;;;cAMa"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/tools/index.ts"],"mappings":";;;;;;qBAMa"}
@@ -3,13 +3,13 @@ import { XAISearchParameters } from "../live_search.cjs";
3
3
  /**
4
4
  * xAI's deprecated live_search tool type.
5
5
  */
6
- declare const XAI_LIVE_SEARCH_TOOL_TYPE = "live_search_deprecated_20251215";
7
- declare const XAI_LIVE_SEARCH_TOOL_NAME = "live_search";
6
+ export declare const XAI_LIVE_SEARCH_TOOL_TYPE = "live_search_deprecated_20251215";
7
+ export declare const XAI_LIVE_SEARCH_TOOL_NAME = "live_search";
8
8
  /**
9
9
  * xAI's built-in live_search tool type.
10
10
  * Enables the model to search the web for real-time information.
11
11
  */
12
- interface XAILiveSearchTool extends XAISearchParameters {
12
+ export interface XAILiveSearchTool extends XAISearchParameters {
13
13
  /**
14
14
  * The name of the tool. Must be "live_search" for xAI's built-in search.
15
15
  */
@@ -26,7 +26,7 @@ interface XAILiveSearchTool extends XAISearchParameters {
26
26
  * Web search source configuration for the xAI live search tool (camelCase).
27
27
  * This is converted to the snake_case `XAIWebSource` internally.
28
28
  */
29
- interface XAIWebSearchToolSource {
29
+ export interface XAIWebSearchToolSource {
30
30
  type: "web";
31
31
  country?: string;
32
32
  excludedWebsites?: string[];
@@ -37,7 +37,7 @@ interface XAIWebSearchToolSource {
37
37
  * News search source configuration for the xAI live search tool (camelCase).
38
38
  * This is converted to the snake_case `XAINewsSource` internally.
39
39
  */
40
- interface XAINewsSearchToolSource {
40
+ export interface XAINewsSearchToolSource {
41
41
  type: "news";
42
42
  country?: string;
43
43
  excludedWebsites?: string[];
@@ -47,7 +47,7 @@ interface XAINewsSearchToolSource {
47
47
  * X (formerly Twitter) search source configuration for the xAI live search tool (camelCase).
48
48
  * This is converted to the snake_case `XAIXSource` internally.
49
49
  */
50
- interface XAIXSearchToolSource {
50
+ export interface XAIXSearchToolSource {
51
51
  type: "x";
52
52
  includedXHandles?: string[];
53
53
  excludedXHandles?: string[];
@@ -58,18 +58,18 @@ interface XAIXSearchToolSource {
58
58
  * RSS feed search source configuration for the xAI live search tool.
59
59
  * The structure matches `XAIRssSource` (only `links`).
60
60
  */
61
- interface XAIRssSearchToolSource {
61
+ export interface XAIRssSearchToolSource {
62
62
  type: "rss";
63
63
  links: string[];
64
64
  }
65
- type XAISearchToolSource = XAIWebSearchToolSource | XAINewsSearchToolSource | XAIXSearchToolSource | XAIRssSearchToolSource;
65
+ export type XAISearchToolSource = XAIWebSearchToolSource | XAINewsSearchToolSource | XAIXSearchToolSource | XAIRssSearchToolSource;
66
66
  /**
67
67
  * Options for the xAI live search tool (camelCase).
68
68
  * All fields are camel-cased for the TypeScript API and are mapped to the
69
69
  * corresponding snake_case fields in the underlying `XAISearchParameters`
70
70
  * object that is sent to xAI's deprecated Live Search API.
71
71
  */
72
- interface XAILiveSearchToolOptions {
72
+ export interface XAILiveSearchToolOptions {
73
73
  /**
74
74
  * Controls when the model should perform a search.
75
75
  * - "auto": Let the model decide when to search (default)
@@ -141,7 +141,6 @@ interface XAILiveSearchToolOptions {
141
141
  * const result = await llmWithSearch.invoke("What happened in tech today?");
142
142
  * ```
143
143
  */
144
- declare function xaiLiveSearch(options?: XAILiveSearchToolOptions): XAILiveSearchTool;
144
+ export declare function xaiLiveSearch(options?: XAILiveSearchToolOptions): XAILiveSearchTool;
145
145
  //#endregion
146
- export { XAILiveSearchTool, XAILiveSearchToolOptions, XAINewsSearchToolSource, XAIRssSearchToolSource, XAISearchToolSource, XAIWebSearchToolSource, XAIXSearchToolSource, XAI_LIVE_SEARCH_TOOL_NAME, XAI_LIVE_SEARCH_TOOL_TYPE, xaiLiveSearch };
147
146
  //# sourceMappingURL=live_search.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"live_search.d.cts","names":[],"sources":["../../src/tools/live_search.ts"],"mappings":";;;;;cAKa;cACA;;;;;UAMI,0BAA0B;;;;EAIzC,aAAa;;;;;;;EAOb,aAAa;;;;;;UAOE;EACf;EACA;EACA;EACA;EACA;;;;;;UAOe;EACf;EACA;EACA;EACA;;;;;;UAOe;EACf;EACA;EACA;EACA;EACA;;;;;;UAOe;EACf;EACA;;KAGU,sBACR,yBACA,0BACA,uBACA;;;;;;;UAQa;;;;;;;EAOf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;EAMA,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiGI,cACd,UAAS,2BACR"}
1
+ {"version":3,"file":"live_search.d.cts","names":[],"sources":["../../src/tools/live_search.ts"],"mappings":";;;;;qBAKa;qBACA;;;;;iBAMI,0BAA0B;;;;EAIzC,aAAa;;;;;;;EAOb,aAAa;;;;;;iBAOE;EACf;EACA;EACA;EACA;EACA;;;;;;iBAOe;EACf;EACA;EACA;EACA;;;;;;iBAOe;EACf;EACA;EACA;EACA;EACA;;;;;;iBAOe;EACf;EACA;;YAGU,sBACR,yBACA,0BACA,uBACA;;;;;;;iBAQa;;;;;;;EAOf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;EAMA,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiGI,cACd,UAAS,2BACR"}
@@ -3,13 +3,13 @@ import { XAISearchParameters } from "../live_search.js";
3
3
  /**
4
4
  * xAI's deprecated live_search tool type.
5
5
  */
6
- declare const XAI_LIVE_SEARCH_TOOL_TYPE = "live_search_deprecated_20251215";
7
- declare const XAI_LIVE_SEARCH_TOOL_NAME = "live_search";
6
+ export declare const XAI_LIVE_SEARCH_TOOL_TYPE = "live_search_deprecated_20251215";
7
+ export declare const XAI_LIVE_SEARCH_TOOL_NAME = "live_search";
8
8
  /**
9
9
  * xAI's built-in live_search tool type.
10
10
  * Enables the model to search the web for real-time information.
11
11
  */
12
- interface XAILiveSearchTool extends XAISearchParameters {
12
+ export interface XAILiveSearchTool extends XAISearchParameters {
13
13
  /**
14
14
  * The name of the tool. Must be "live_search" for xAI's built-in search.
15
15
  */
@@ -26,7 +26,7 @@ interface XAILiveSearchTool extends XAISearchParameters {
26
26
  * Web search source configuration for the xAI live search tool (camelCase).
27
27
  * This is converted to the snake_case `XAIWebSource` internally.
28
28
  */
29
- interface XAIWebSearchToolSource {
29
+ export interface XAIWebSearchToolSource {
30
30
  type: "web";
31
31
  country?: string;
32
32
  excludedWebsites?: string[];
@@ -37,7 +37,7 @@ interface XAIWebSearchToolSource {
37
37
  * News search source configuration for the xAI live search tool (camelCase).
38
38
  * This is converted to the snake_case `XAINewsSource` internally.
39
39
  */
40
- interface XAINewsSearchToolSource {
40
+ export interface XAINewsSearchToolSource {
41
41
  type: "news";
42
42
  country?: string;
43
43
  excludedWebsites?: string[];
@@ -47,7 +47,7 @@ interface XAINewsSearchToolSource {
47
47
  * X (formerly Twitter) search source configuration for the xAI live search tool (camelCase).
48
48
  * This is converted to the snake_case `XAIXSource` internally.
49
49
  */
50
- interface XAIXSearchToolSource {
50
+ export interface XAIXSearchToolSource {
51
51
  type: "x";
52
52
  includedXHandles?: string[];
53
53
  excludedXHandles?: string[];
@@ -58,18 +58,18 @@ interface XAIXSearchToolSource {
58
58
  * RSS feed search source configuration for the xAI live search tool.
59
59
  * The structure matches `XAIRssSource` (only `links`).
60
60
  */
61
- interface XAIRssSearchToolSource {
61
+ export interface XAIRssSearchToolSource {
62
62
  type: "rss";
63
63
  links: string[];
64
64
  }
65
- type XAISearchToolSource = XAIWebSearchToolSource | XAINewsSearchToolSource | XAIXSearchToolSource | XAIRssSearchToolSource;
65
+ export type XAISearchToolSource = XAIWebSearchToolSource | XAINewsSearchToolSource | XAIXSearchToolSource | XAIRssSearchToolSource;
66
66
  /**
67
67
  * Options for the xAI live search tool (camelCase).
68
68
  * All fields are camel-cased for the TypeScript API and are mapped to the
69
69
  * corresponding snake_case fields in the underlying `XAISearchParameters`
70
70
  * object that is sent to xAI's deprecated Live Search API.
71
71
  */
72
- interface XAILiveSearchToolOptions {
72
+ export interface XAILiveSearchToolOptions {
73
73
  /**
74
74
  * Controls when the model should perform a search.
75
75
  * - "auto": Let the model decide when to search (default)
@@ -141,7 +141,6 @@ interface XAILiveSearchToolOptions {
141
141
  * const result = await llmWithSearch.invoke("What happened in tech today?");
142
142
  * ```
143
143
  */
144
- declare function xaiLiveSearch(options?: XAILiveSearchToolOptions): XAILiveSearchTool;
144
+ export declare function xaiLiveSearch(options?: XAILiveSearchToolOptions): XAILiveSearchTool;
145
145
  //#endregion
146
- export { XAILiveSearchTool, XAILiveSearchToolOptions, XAINewsSearchToolSource, XAIRssSearchToolSource, XAISearchToolSource, XAIWebSearchToolSource, XAIXSearchToolSource, XAI_LIVE_SEARCH_TOOL_NAME, XAI_LIVE_SEARCH_TOOL_TYPE, xaiLiveSearch };
147
146
  //# sourceMappingURL=live_search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"live_search.d.ts","names":[],"sources":["../../src/tools/live_search.ts"],"mappings":";;;;;cAKa;cACA;;;;;UAMI,0BAA0B;;;;EAIzC,aAAa;;;;;;;EAOb,aAAa;;;;;;UAOE;EACf;EACA;EACA;EACA;EACA;;;;;;UAOe;EACf;EACA;EACA;EACA;;;;;;UAOe;EACf;EACA;EACA;EACA;EACA;;;;;;UAOe;EACf;EACA;;KAGU,sBACR,yBACA,0BACA,uBACA;;;;;;;UAQa;;;;;;;EAOf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;EAMA,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiGI,cACd,UAAS,2BACR"}
1
+ {"version":3,"file":"live_search.d.ts","names":[],"sources":["../../src/tools/live_search.ts"],"mappings":";;;;;qBAKa;qBACA;;;;;iBAMI,0BAA0B;;;;EAIzC,aAAa;;;;;;;EAOb,aAAa;;;;;;iBAOE;EACf;EACA;EACA;EACA;EACA;;;;;;iBAOe;EACf;EACA;EACA;EACA;;;;;;iBAOe;EACf;EACA;EACA;EACA;EACA;;;;;;iBAOe;EACf;EACA;;YAGU,sBACR,yBACA,0BACA,uBACA;;;;;;;iBAQa;;;;;;;EAOf;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;EAKA;;;;;;EAMA,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiGI,cACd,UAAS,2BACR"}
@@ -2,14 +2,14 @@
2
2
  /**
3
3
  * xAI Web Search tool type constant.
4
4
  */
5
- declare const XAI_WEB_SEARCH_TOOL_TYPE = "web_search";
5
+ export declare const XAI_WEB_SEARCH_TOOL_TYPE = "web_search";
6
6
  /**
7
7
  * xAI's built-in web search tool interface.
8
8
  * Enables the model to search the web and browse pages for real-time information.
9
9
  *
10
10
  * This tool is part of xAI's agentic tool calling API.
11
11
  */
12
- interface XAIWebSearchTool {
12
+ export interface XAIWebSearchTool {
13
13
  /**
14
14
  * The type of the tool. Must be "web_search".
15
15
  */
@@ -35,7 +35,7 @@ interface XAIWebSearchTool {
35
35
  * All fields are camel-cased for the TypeScript API and are mapped to the
36
36
  * corresponding snake_case fields in the API request.
37
37
  */
38
- interface XAIWebSearchToolOptions {
38
+ export interface XAIWebSearchToolOptions {
39
39
  /**
40
40
  * Domains to exclusively include in the search (max 5).
41
41
  * Cannot be used together with `excludedDomains`.
@@ -98,7 +98,6 @@ interface XAIWebSearchToolOptions {
98
98
  * });
99
99
  * ```
100
100
  */
101
- declare function xaiWebSearch(options?: XAIWebSearchToolOptions): XAIWebSearchTool;
101
+ export declare function xaiWebSearch(options?: XAIWebSearchToolOptions): XAIWebSearchTool;
102
102
  //#endregion
103
- export { XAIWebSearchTool, XAIWebSearchToolOptions, XAI_WEB_SEARCH_TOOL_TYPE, xaiWebSearch };
104
103
  //# sourceMappingURL=web_search.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"web_search.d.cts","names":[],"sources":["../../src/tools/web_search.ts"],"mappings":";;;;cAGa;;;;;;;UAQI;;;;EAIf,aAAa;;;;;EAKb;;;;;EAKA;;;;;EAKA;;;;;;;UAQe;;;;;;;EAOf;;;;;;;EAOA;;;;;;;;EAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0Cc,aACd,UAAS,0BACR"}
1
+ {"version":3,"file":"web_search.d.cts","names":[],"sources":["../../src/tools/web_search.ts"],"mappings":";;;;qBAGa;;;;;;;iBAQI;;;;EAIf,aAAa;;;;;EAKb;;;;;EAKA;;;;;EAKA;;;;;;;iBAQe;;;;;;;EAOf;;;;;;;EAOA;;;;;;;;EAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA0Cc,aACd,UAAS,0BACR"}