UNPKG

@coherenceplatform/sdk

Version:

Coherence SDK for embedding AI-powered chat into your applications

55 lines 1.59 kB
export class MessageHandler { constructor(config: any, authProvider: any, messageBus: any); config: any; authProvider: any; messageBus: any; sendMessage(messageData: any): Promise<{ message: any; conversationId: any; token: any; }>; sendMessageViaDemo({ messageText, conversationId, extraContext, attachments }: { messageText: any; conversationId: any; extraContext: any; attachments: any; }): Promise<{ message: any; conversationId: any; token: any; }>; sendMessageViaOAuth({ messageText, conversationId, extraContext, attachments }: { messageText: any; conversationId: any; extraContext: any; attachments: any; }): Promise<{ message: any; conversationId: any; token: any; }>; sendMessageViaBackend({ messageText, conversationId, extraContext, attachments }: { messageText: any; conversationId: any; extraContext: any; attachments: any; }): Promise<{ message: any; conversationId: any; token: any; }>; makeRequest({ url, method, headers, body, credentials, errorPrefix }: { url: any; method: any; headers: any; body: any; credentials: any; errorPrefix: any; }): Promise<Response>; parseMessageResponse(data: any, conversationId: any, token: any): { message: any; conversationId: any; token: any; }; } //# sourceMappingURL=message-handler.d.ts.map