@superatomai/sdk-node 0.0.17 → 0.0.19

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/dist/index.d.mts CHANGED
@@ -566,11 +566,11 @@ declare const ToolSchema: z.ZodObject<{
566
566
  type Tool$1 = z.infer<typeof ToolSchema>;
567
567
  type CollectionOperation = 'getMany' | 'getOne' | 'query' | 'mutation' | 'updateOne' | 'deleteOne' | 'createOne';
568
568
  type CollectionHandler<TParams = any, TResult = any> = (params: TParams) => Promise<TResult> | TResult;
569
- type LLMProvider = 'anthropic' | 'groq';
569
+ type LLMProvider = 'anthropic' | 'groq' | 'gemini' | 'openai';
570
570
 
571
571
  interface SuperatomSDKConfig {
572
572
  url?: string;
573
- apiKey: string;
573
+ apiKey?: string;
574
574
  projectId: string;
575
575
  userId?: string;
576
576
  type?: string;
@@ -578,6 +578,8 @@ interface SuperatomSDKConfig {
578
578
  promptsDir?: string;
579
579
  ANTHROPIC_API_KEY?: string;
580
580
  GROQ_API_KEY?: string;
581
+ GEMINI_API_KEY?: string;
582
+ OPENAI_API_KEY?: string;
581
583
  LLM_PROVIDERS?: LLMProvider[];
582
584
  logLevel?: LogLevel;
583
585
  }
@@ -895,6 +897,12 @@ declare class LLM {
895
897
  private static _anthropicStreamWithTools;
896
898
  private static _groqText;
897
899
  private static _groqStream;
900
+ private static _geminiText;
901
+ private static _geminiStream;
902
+ private static _geminiStreamWithTools;
903
+ private static _openaiText;
904
+ private static _openaiStream;
905
+ private static _openaiStreamWithTools;
898
906
  /**
899
907
  * Parse JSON string, handling markdown code blocks and surrounding text
900
908
  * Enhanced version with jsonrepair to handle malformed JSON from LLMs
@@ -1340,7 +1348,7 @@ type MessageTypeHandler = (message: IncomingMessage) => void | Promise<void>;
1340
1348
  declare class SuperatomSDK {
1341
1349
  private ws;
1342
1350
  private url;
1343
- private apiKey;
1351
+ private apiKey?;
1344
1352
  private projectId;
1345
1353
  private userId;
1346
1354
  private type;
@@ -1355,6 +1363,8 @@ declare class SuperatomSDK {
1355
1363
  private tools;
1356
1364
  private anthropicApiKey;
1357
1365
  private groqApiKey;
1366
+ private geminiApiKey;
1367
+ private openaiApiKey;
1358
1368
  private llmProviders;
1359
1369
  private userManager;
1360
1370
  private dashboardManager;
package/dist/index.d.ts CHANGED
@@ -566,11 +566,11 @@ declare const ToolSchema: z.ZodObject<{
566
566
  type Tool$1 = z.infer<typeof ToolSchema>;
567
567
  type CollectionOperation = 'getMany' | 'getOne' | 'query' | 'mutation' | 'updateOne' | 'deleteOne' | 'createOne';
568
568
  type CollectionHandler<TParams = any, TResult = any> = (params: TParams) => Promise<TResult> | TResult;
569
- type LLMProvider = 'anthropic' | 'groq';
569
+ type LLMProvider = 'anthropic' | 'groq' | 'gemini' | 'openai';
570
570
 
571
571
  interface SuperatomSDKConfig {
572
572
  url?: string;
573
- apiKey: string;
573
+ apiKey?: string;
574
574
  projectId: string;
575
575
  userId?: string;
576
576
  type?: string;
@@ -578,6 +578,8 @@ interface SuperatomSDKConfig {
578
578
  promptsDir?: string;
579
579
  ANTHROPIC_API_KEY?: string;
580
580
  GROQ_API_KEY?: string;
581
+ GEMINI_API_KEY?: string;
582
+ OPENAI_API_KEY?: string;
581
583
  LLM_PROVIDERS?: LLMProvider[];
582
584
  logLevel?: LogLevel;
583
585
  }
@@ -895,6 +897,12 @@ declare class LLM {
895
897
  private static _anthropicStreamWithTools;
896
898
  private static _groqText;
897
899
  private static _groqStream;
900
+ private static _geminiText;
901
+ private static _geminiStream;
902
+ private static _geminiStreamWithTools;
903
+ private static _openaiText;
904
+ private static _openaiStream;
905
+ private static _openaiStreamWithTools;
898
906
  /**
899
907
  * Parse JSON string, handling markdown code blocks and surrounding text
900
908
  * Enhanced version with jsonrepair to handle malformed JSON from LLMs
@@ -1340,7 +1348,7 @@ type MessageTypeHandler = (message: IncomingMessage) => void | Promise<void>;
1340
1348
  declare class SuperatomSDK {
1341
1349
  private ws;
1342
1350
  private url;
1343
- private apiKey;
1351
+ private apiKey?;
1344
1352
  private projectId;
1345
1353
  private userId;
1346
1354
  private type;
@@ -1355,6 +1363,8 @@ declare class SuperatomSDK {
1355
1363
  private tools;
1356
1364
  private anthropicApiKey;
1357
1365
  private groqApiKey;
1366
+ private geminiApiKey;
1367
+ private openaiApiKey;
1358
1368
  private llmProviders;
1359
1369
  private userManager;
1360
1370
  private dashboardManager;