@eka-care/medassist-core is the foundation the embed and React widgets are built on. It manages the session, real-time connection, message transport, tool calls, and audio — and leaves the entire UI to you. Reach for it when you want a fully bespoke chat experience.
If you want a ready-made UI, use the React SDK or embed widget instead. The core SDK is for building your own.
Install
The lifecycle
Start a session
startSession() connects and returns the session info (including any initial message).End-to-end example
Constructor options
new SynapseSDK(config) accepts:
Your MedAssist agent identifier.
Which backend to connect to.
Optional user identifier.
ConnectionType.SSE or ConnectionType.SOCKET.User context —
profile, intent, user_location, referer, and any custom keys. See the API reference.UI/behavior overrides —
prompt, firstMessage, language, primaryColor.onSessionRefreshed and onError callbacks.Optional auth header.
Optional auth token.
Optional custom server URL.
Next steps
Events
Subscribe to streamed messages, tips, and lifecycle events.
Tool calls & elicitation
Render the inputs the agent asks for and reply with results.
Voice & audio
Record audio and run voice-mode conversations.
API reference
Every method, type, and enum.

