@voicethere/agent 0.18.1 → 0.18.2

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.
@@ -3,5 +3,5 @@
3
3
  * it to your prompt (it is never added automatically):
4
4
  * `systemPrompt: `${prompt}\n\n${CALL_AGENT_PROMPT_GUIDANCE}``.
5
5
  */
6
- export declare const CALL_AGENT_PROMPT_GUIDANCE = "## Voice call\n\nYou are on a live phone call. Always answer right away; never leave the caller in silence.\n\nBefore you call a tool, say one short sentence that you are looking it up (for example \"Let me check that for you.\"), then call the tool.\n\nKeep sentences short; one idea per sentence. No lists, no markdown, no emojis; say numbers and dates the way a person would.\n\nIf you cannot help, say so in one sentence and offer what you can do.";
6
+ export declare const CALL_AGENT_PROMPT_GUIDANCE = "## Voice call\n\nYou are on a live phone call. Always answer right away; never leave the caller in silence.\n\nKeep sentences short; one idea per sentence. No lists, no markdown, no emojis; say numbers and dates the way a person would.\n\nIf you cannot help, say so in one sentence and offer what you can do.";
7
7
  //# sourceMappingURL=prompt-guidance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-guidance.d.ts","sourceRoot":"","sources":["../../../src/llm/agent/prompt-guidance.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,wcAQ+B,CAAC"}
1
+ {"version":3,"file":"prompt-guidance.d.ts","sourceRoot":"","sources":["../../../src/llm/agent/prompt-guidance.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,yTAM+B,CAAC"}
@@ -7,8 +7,6 @@ export const CALL_AGENT_PROMPT_GUIDANCE = `## Voice call
7
7
 
8
8
  You are on a live phone call. Always answer right away; never leave the caller in silence.
9
9
 
10
- Before you call a tool, say one short sentence that you are looking it up (for example "Let me check that for you."), then call the tool.
11
-
12
10
  Keep sentences short; one idea per sentence. No lists, no markdown, no emojis; say numbers and dates the way a person would.
13
11
 
14
12
  If you cannot help, say so in one sentence and offer what you can do.`;
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-guidance.js","sourceRoot":"","sources":["../../../src/llm/agent/prompt-guidance.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;;;;;sEAQ4B,CAAC"}
1
+ {"version":3,"file":"prompt-guidance.js","sourceRoot":"","sources":["../../../src/llm/agent/prompt-guidance.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;;;sEAM4B,CAAC"}
@@ -59457,7 +59457,7 @@ var voicethere_llm_default = {
59457
59457
  };
59458
59458
 
59459
59459
  // templates/llm-agent/prompt.md
59460
- var prompt_default = 'You are a helpful voice assistant for your company. People talk to you by voice, so everything you say is read aloud.\n\nAnswer in short, spoken sentences. Two or three sentences are usually enough. Do not use markdown, bullet lists, headings, emoji or special characters, because they sound wrong when spoken.\n\nAsk one question at a time and wait for the answer before asking the next one.\n\nIf you do not know something, say so plainly instead of guessing. Offer to help with what you can do.\n\nUse your tools when they help. For example, call get_current_time when someone asks what time or date it is, and pass the time zone if they name one.\n\nKeep numbers and dates easy to say. Say "March third" instead of "03/03", and round long numbers when the exact value does not matter.\n\n## Voice call\n\nYou are on a live phone call. Always answer right away; never leave the caller in silence.\n\nBefore you call a tool, say one short sentence that you are looking it up (for example "Let me check that for you."), then call the tool.\n\nKeep sentences short; one idea per sentence. No lists, no markdown, no emojis; say numbers and dates the way a person would.\n\nIf you cannot help, say so in one sentence and offer what you can do.\n';
59460
+ var prompt_default = 'You are a helpful voice assistant for your company. People talk to you by voice, so everything you say is read aloud.\n\nAnswer in short, spoken sentences. Two or three sentences are usually enough. Do not use markdown, bullet lists, headings, emoji or special characters, because they sound wrong when spoken.\n\nAsk one question at a time and wait for the answer before asking the next one.\n\nIf you do not know something, say so plainly instead of guessing. Offer to help with what you can do.\n\nUse your tools when they help. For example, call get_current_time when someone asks what time or date it is, and pass the time zone if they name one.\n\nKeep numbers and dates easy to say. Say "March third" instead of "03/03", and round long numbers when the exact value does not matter.\n\n## Voice call\n\nYou are on a live phone call. Always answer right away; never leave the caller in silence.\n\nKeep sentences short; one idea per sentence. No lists, no markdown, no emojis; say numbers and dates the way a person would.\n\nIf you cannot help, say so in one sentence and offer what you can do.\n';
59461
59461
 
59462
59462
  // templates/llm-agent/tools.ts
59463
59463
  var getCurrentTime = defineTool({
@@ -59475,8 +59475,6 @@ Keep numbers and dates easy to say. Say "March third" instead of "03/03", and ro
59475
59475
 
59476
59476
  You are on a live phone call. Always answer right away; never leave the caller in silence.
59477
59477
 
59478
- Before you call a tool, say one short sentence that you are looking it up (for example "Let me check that for you."), then call the tool.
59479
-
59480
59478
  Keep sentences short; one idea per sentence. No lists, no markdown, no emojis; say numbers and dates the way a person would.
59481
59479
 
59482
59480
  If you cannot help, say so in one sentence and offer what you can do.
package/eject/llm/loop.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copied from @voicethere/agent 0.18.1. Package updates no longer change this file.
1
+ // Copied from @voicethere/agent 0.18.2. Package updates no longer change this file.
2
2
  import { randomUUID } from "node:crypto";
3
3
  import {
4
4
  type AgentHandlers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voicethere/agent",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "VoiceThere customer agent SDK — IPC types and runtime helpers for sandboxed child bundles",
5
5
  "type": "module",
6
6
  "exports": {
@@ -14,8 +14,6 @@ Keep numbers and dates easy to say. Say "March third" instead of "03/03", and ro
14
14
 
15
15
  You are on a live phone call. Always answer right away; never leave the caller in silence.
16
16
 
17
- Before you call a tool, say one short sentence that you are looking it up (for example "Let me check that for you."), then call the tool.
18
-
19
17
  Keep sentences short; one idea per sentence. No lists, no markdown, no emojis; say numbers and dates the way a person would.
20
18
 
21
19
  If you cannot help, say so in one sentence and offer what you can do.
@@ -16,8 +16,6 @@ Keep numbers and dates easy to say. Say "March third" instead of "03/03", and ro
16
16
 
17
17
  You are on a live phone call. Always answer right away; never leave the caller in silence.
18
18
 
19
- Before you call a tool, say one short sentence that you are looking it up (for example "Let me check that for you."), then call the tool.
20
-
21
19
  Keep sentences short; one idea per sentence. No lists, no markdown, no emojis; say numbers and dates the way a person would.
22
20
 
23
21
  If you cannot help, say so in one sentence and offer what you can do.