@peopl-health/nexus 4.7.0-dev.454 → 4.7.0-dev.455
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/lib/index.d.ts +11 -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
|
|
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():
|
|
342
|
+
getLLMProvider(): LLMProvider | null;
|
|
334
343
|
}
|
|
335
344
|
|
|
336
345
|
// Utility Functions
|