@glydeunity/voice-sdk 1.6.17 → 1.6.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -219,7 +219,7 @@ class Ji {
219
219
  context_type: this.config.contextType,
220
220
  domain: typeof window < "u" ? window.location.hostname : "localhost"
221
221
  };
222
- this.sessionContext?.clientUuid && (f.client_uuid = this.sessionContext.clientUuid), this.config.contextType === "candidate_discover" && this.config.contextId ? f.candidate_uuid = this.config.contextId : this.sessionContext?.candidateUuid && (f.candidate_uuid = this.sessionContext.candidateUuid), this.sessionContext?.currentJobUuid && (f.job_uuid = this.sessionContext.currentJobUuid), this.config.deepgramConfig && (f.deepgram_config = this.config.deepgramConfig), this.conversationHistory.length > 0 && (f.conversation_history = this.conversationHistory), this.config.skipContinuityLimit === !0 && (f.skip_continuity_limit = !0), this.config.limitToLast != null && this.config.limitToLast > 0 && (f.limit_to_last = this.config.limitToLast);
222
+ this.sessionContext?.clientUuid && (f.client_uuid = this.sessionContext.clientUuid), this.config.contextType === "screening" && this.config.contextId && (f.application_uuid = this.config.contextId), this.config.contextType === "candidate_discover" && this.config.contextId ? f.candidate_uuid = this.config.contextId : this.sessionContext?.candidateUuid && (f.candidate_uuid = this.sessionContext.candidateUuid), this.sessionContext?.currentJobUuid && (f.job_uuid = this.sessionContext.currentJobUuid), this.config.deepgramConfig && (f.deepgram_config = this.config.deepgramConfig), this.conversationHistory.length > 0 && (f.conversation_history = this.conversationHistory), this.config.skipContinuityLimit === !0 && (f.skip_continuity_limit = !0), this.config.limitToLast != null && this.config.limitToLast > 0 && (f.limit_to_last = this.config.limitToLast);
223
223
  const o = await fetch(`${this.unityUrl}/api/unity/voice/auth`, {
224
224
  method: "POST",
225
225
  headers: this.getAuthHeaders(),
@@ -236,7 +236,7 @@ class Ji {
236
236
  contextType: this.config.contextType,
237
237
  currentJobUuid: z?.job_uuid
238
238
  });
239
- const H = z?.instructions || this.serverConfig?.system_prompt || "You are a helpful AI assistant.";
239
+ const H = z?.instructions || this.serverConfig?.system_prompt || "You are not available at the moment. Please try again later. Do not accept any questions.";
240
240
  await this.initializeAudio();
241
241
  let U = "wss://agent.deepgram.com/v1/agent/converse";
242
242
  const x = this.config.deepgramConfig || M || this.serverConfig?.deepgram_config;
@@ -13561,7 +13561,7 @@ const kl = /* @__PURE__ */ new Map(), _n = {
13561
13561
  * Get SDK version (replaced at build time via Vite define).
13562
13562
  */
13563
13563
  get version() {
13564
- return "1.6.17";
13564
+ return "1.6.18";
13565
13565
  }
13566
13566
  };
13567
13567
  async function Kg(h, f) {