mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage-server
synced 2026-04-12 02:18:18 +00:00
feat: recording analysis module with Deepgram + AI insights + Redis cache
- RecordingsModule: POST /api/recordings/analyze - Deepgram pre-recorded API: diarize, summarize, topics, sentiment, utterances - AI insights via OpenAI generateObject: call outcome, coaching, compliance, satisfaction - Redis cache: 7-day TTL per callId, check before hitting Deepgram/OpenAI - Generic getCache/setCache added to SessionService for cross-module use Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -50,4 +50,13 @@ export class SessionService implements OnModuleInit {
|
||||
async unlockSession(agentId: string): Promise<void> {
|
||||
await this.redis.del(this.key(agentId));
|
||||
}
|
||||
|
||||
// Generic cache operations for any module
|
||||
async getCache(key: string): Promise<string | null> {
|
||||
return this.redis.get(key);
|
||||
}
|
||||
|
||||
async setCache(key: string, value: string, ttlSeconds: number): Promise<void> {
|
||||
await this.redis.set(key, value, 'EX', ttlSeconds);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user