@peopl-health/nexus 4.7.0-dev.454 → 4.7.0-dev.457

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 (2) hide show
  1. package/lib/index.d.ts +11 -2
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -286,7 +286,16 @@ declare module '@peopl-health/nexus' {
286
286
  runStructured(params?: { promptId?: string; presetId?: string; variables?: any; input?: any[]; text?: any; metadata?: any }): Promise<any>;
287
287
  }
288
288
 
289
- export function createLLMProvider(config?: { variant?: string; [key: string]: any }): OpenAIResponsesProvider;
289
+ export interface LLMProvider {
290
+ getVariant(): string;
291
+ getClient?(): any;
292
+ executeRun(options: { thread: any; assistant: any; message?: string; tools?: any[]; config?: any }): Promise<any>;
293
+ runConversation(config?: any): Promise<any>;
294
+ runStructured?(params?: { promptId?: string; presetId?: string; variables?: any; input?: any[]; text?: any; metadata?: any }): Promise<any>;
295
+ transcribeAudio?(options?: any): Promise<any>;
296
+ }
297
+
298
+ export function createLLMProvider(config?: { variant?: string; [key: string]: any }): LLMProvider;
290
299
 
291
300
  // Main Nexus Class
292
301
  export interface NexusConfig {
@@ -330,7 +339,7 @@ declare module '@peopl-health/nexus' {
330
339
  getMessaging(): NexusMessaging;
331
340
  getStorage(): MongoStorage | null;
332
341
  getMessageParser(): MessageParser | null;
333
- getLLMProvider(): OpenAIResponsesProvider | null;
342
+ getLLMProvider(): LLMProvider | null;
334
343
  }
335
344
 
336
345
  // Utility Functions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "4.7.0-dev.454",
3
+ "version": "4.7.0-dev.457",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",