@anam-ai/js-sdk
Version:
Client side JavaScript SDK for Anam AI
21 lines • 776 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolCallManager = void 0;
class ToolCallManager {
/**
* Converts a WebRtcClientToolEvent to a ClientToolEvent
*/
static WebRTCClientToolEventToClientToolEvent(webRtcEvent) {
return {
eventUid: webRtcEvent.event_uid,
sessionId: webRtcEvent.session_id,
eventName: webRtcEvent.event_name,
eventData: webRtcEvent.event_data,
timestamp: webRtcEvent.timestamp,
timestampUserAction: webRtcEvent.timestamp_user_action,
userActionCorrelationId: webRtcEvent.user_action_correlation_id,
};
}
}
exports.ToolCallManager = ToolCallManager;
//# sourceMappingURL=ToolCallManager.js.map