SynapseSDK class and the public exports of @eka-care/medassist-core.
SynapseSDK methods
startSession
SessionResponse.
sendMessage
callTool
TOOL_CALL event.
sendFeedback
on / off
off needs the same function reference passed to on.
startRecording / endRecording
getSessionConfig
getAgentConfig
isConnected
voice
VoiceAgent for voice-mode conversations.
endSession
Types
SessionResponse
TContext
Environment
SynapseSDKCallbacks
TSynapseError
ToolCallData
Enums
SYNAPSE_REALTIME_EVENTS
CONNECTED, DISCONNECTED, PROGRESS_MESSAGE, MESSAGE_CHUNK, TIPS_MESSAGE, END_OF_STREAM, ERROR, TOOL_CALL, AUDIO_TRANSCRIPT, TOOL_START, TOOL_END. See Events.
SYNAPSE_COMPONENTS
MOBILE (mobile_number), OTP (otp), EMAIL (email_address), PILL (pills), MULTI (multi), DOCTOR_CARD (doctor_card), CARD (card), MEDIA_CARD (media_card).
SYNAPSE_EICITATION_STATUS
PROGRESS (progress), SUCCESS (success), FAILURE (failure).
USER_FEEDBACK
LIKE, DISLIKE, NONE.
SYNAPSE_REALTIME_ERROR_CODES
DisconnectionReason
CLIENT_CLOSED, SERVER_CLOSED, CONNECTION_ERROR, AUTHENTICATION_ERROR, MAX_RECONNECT_ATTEMPTS, TIMEOUT, NETWORK_ERROR.
Always import enum values from
@eka-care/medassist-core rather than hardcoding their string values — the strings are an implementation detail and the enums are the stable contract.
