@onereach/step-voice 7.0.23-voiceagent.1 → 7.0.24-agentfix.0

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.
@@ -14,6 +14,8 @@ interface INPUT {
14
14
  handlers: Handler[];
15
15
  system_instruction: string;
16
16
  developer_messages: string[];
17
+ greeting_message: string;
18
+ prevent_greeting_interruption: boolean;
17
19
  custom_config_enabled: boolean;
18
20
  agent_url_overwritten: boolean;
19
21
  agent_url: string;
@@ -34,7 +34,7 @@ class VoiceAgent extends voice_1.default {
34
34
  }
35
35
  });
36
36
  this.triggers.otherwise(async () => {
37
- const { handlers = [], system_instruction = '', developer_messages = [], custom_config_enabled = false, agent_url_overwritten = false, agent_url = '', mode = '', stt = {}, llm = {}, tts = {}, realtime = {} } = this.data;
37
+ const { handlers = [], system_instruction = '', developer_messages = [], greeting_message = '', prevent_greeting_interruption = false, custom_config_enabled = false, agent_url_overwritten = false, agent_url = '', mode = '', stt = {}, llm = {}, tts = {}, realtime = {} } = this.data;
38
38
  const tools = handlers.map(h => {
39
39
  let parameters = h.parameters;
40
40
  if (typeof parameters === 'string') {
@@ -50,6 +50,8 @@ class VoiceAgent extends voice_1.default {
50
50
  const config = {
51
51
  system_instruction,
52
52
  developer_messages,
53
+ greeting_message,
54
+ prevent_greeting_interruption,
53
55
  tools
54
56
  };
55
57
  let agentCustomUrl = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.23-voiceagent.1",
3
+ "version": "7.0.24-agentfix.0",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",