@providerprotocol/ai 0.0.3 → 0.0.5

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.
@@ -0,0 +1,39 @@
1
+ /**
2
+ * xAI provider for UPP (Unified Provider Protocol)
3
+ *
4
+ * This module exports the xAI provider for use with the Grok family of models.
5
+ * xAI's APIs are compatible with both OpenAI and Anthropic SDKs.
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * import { xai } from '@providerprotocol/ai/xai';
10
+ * import { llm } from '@providerprotocol/ai';
11
+ *
12
+ * // Create an LLM instance with Grok
13
+ * const model = llm({
14
+ * model: xai('grok-4'),
15
+ * params: { max_tokens: 1000 }
16
+ * });
17
+ *
18
+ * // Generate a response
19
+ * const turn = await model.generate('What is the meaning of life?');
20
+ * console.log(turn.response.text);
21
+ * ```
22
+ *
23
+ * @packageDocumentation
24
+ */
25
+
26
+ export { xai } from '../providers/xai/index.ts';
27
+ export type {
28
+ XAIProviderOptions,
29
+ XAIProvider,
30
+ } from '../providers/xai/index.ts';
31
+ export type {
32
+ XAILLMParams,
33
+ XAIConfig,
34
+ XAIAPIMode,
35
+ XAIModelOptions,
36
+ XAIModelReference,
37
+ XAISearchParameters,
38
+ XAIAgentTool,
39
+ } from '../providers/xai/types.ts';