@eka-care/medassist-core
v1.0.22
Published
TypeScript SDK for real-time medical chatbot experiences with session management, WebSocket connectivity, and media handling
Readme
@eka-care/medassist-core
TypeScript SDK for real-time medical chatbot experiences with session management, WebSocket connectivity, and media handling.
Installation
npm install @eka-care/medassist-coreQuick Start
import { SynapseSDK } from "@eka-care/medassist-core";
const sdk = new SynapseSDK({
agentId: "agent-123",
environment: "production",
userId: "user-456",
callbacks: {
onSessionRefreshed: (session) => console.log("session refreshed", session),
onConnectionStatusChange: (status) => console.log("status", status),
onRecordingStatusChange: (status) => console.log("recording", status),
onError: (error) => console.error("synapse error", error),
},
});
const session = await sdk.startSession();
sdk.sendMessage({ message: "Hello, doctor!" });For more details, see the main README.
