@voicethere/agent 0.16.0 → 0.18.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.
Files changed (102) hide show
  1. package/README.md +122 -0
  2. package/dist/llm/agent/config.d.ts +122 -0
  3. package/dist/llm/agent/config.d.ts.map +1 -1
  4. package/dist/llm/agent/config.js +209 -0
  5. package/dist/llm/agent/config.js.map +1 -1
  6. package/dist/llm/agent/create-llm-agent.d.ts +12 -0
  7. package/dist/llm/agent/create-llm-agent.d.ts.map +1 -1
  8. package/dist/llm/agent/create-llm-agent.js +154 -2
  9. package/dist/llm/agent/create-llm-agent.js.map +1 -1
  10. package/dist/llm/agent/redact.d.ts +16 -0
  11. package/dist/llm/agent/redact.d.ts.map +1 -0
  12. package/dist/llm/agent/redact.js +154 -0
  13. package/dist/llm/agent/redact.js.map +1 -0
  14. package/dist/llm/agent/tool-call-log.d.ts +37 -0
  15. package/dist/llm/agent/tool-call-log.d.ts.map +1 -0
  16. package/dist/llm/agent/tool-call-log.js +74 -0
  17. package/dist/llm/agent/tool-call-log.js.map +1 -0
  18. package/dist/llm/bounded-embedder.d.ts +22 -0
  19. package/dist/llm/bounded-embedder.d.ts.map +1 -0
  20. package/dist/llm/bounded-embedder.js +150 -0
  21. package/dist/llm/bounded-embedder.js.map +1 -0
  22. package/dist/llm/gemini-provider.d.ts +8 -1
  23. package/dist/llm/gemini-provider.d.ts.map +1 -1
  24. package/dist/llm/gemini-provider.js +31 -0
  25. package/dist/llm/gemini-provider.js.map +1 -1
  26. package/dist/llm/gemini.d.ts +2 -2
  27. package/dist/llm/gemini.d.ts.map +1 -1
  28. package/dist/llm/gemini.js +3 -2
  29. package/dist/llm/gemini.js.map +1 -1
  30. package/dist/llm/index.d.ts +10 -4
  31. package/dist/llm/index.d.ts.map +1 -1
  32. package/dist/llm/index.js +4 -1
  33. package/dist/llm/index.js.map +1 -1
  34. package/dist/llm/knowledge/chunk-markdown.d.ts +20 -0
  35. package/dist/llm/knowledge/chunk-markdown.d.ts.map +1 -0
  36. package/dist/llm/knowledge/chunk-markdown.js +90 -0
  37. package/dist/llm/knowledge/chunk-markdown.js.map +1 -0
  38. package/dist/llm/knowledge/index.d.ts +10 -0
  39. package/dist/llm/knowledge/index.d.ts.map +1 -0
  40. package/dist/llm/knowledge/index.js +6 -0
  41. package/dist/llm/knowledge/index.js.map +1 -0
  42. package/dist/llm/knowledge/redis-knowledge-base.d.ts +3 -0
  43. package/dist/llm/knowledge/redis-knowledge-base.d.ts.map +1 -0
  44. package/dist/llm/knowledge/redis-knowledge-base.js +498 -0
  45. package/dist/llm/knowledge/redis-knowledge-base.js.map +1 -0
  46. package/dist/llm/knowledge/search-knowledge-tool.d.ts +12 -0
  47. package/dist/llm/knowledge/search-knowledge-tool.d.ts.map +1 -0
  48. package/dist/llm/knowledge/search-knowledge-tool.js +44 -0
  49. package/dist/llm/knowledge/search-knowledge-tool.js.map +1 -0
  50. package/dist/llm/knowledge/supabase-knowledge-base.d.ts +35 -0
  51. package/dist/llm/knowledge/supabase-knowledge-base.d.ts.map +1 -0
  52. package/dist/llm/knowledge/supabase-knowledge-base.js +227 -0
  53. package/dist/llm/knowledge/supabase-knowledge-base.js.map +1 -0
  54. package/dist/llm/knowledge/types.d.ts +102 -0
  55. package/dist/llm/knowledge/types.d.ts.map +1 -0
  56. package/dist/llm/knowledge/types.js +9 -0
  57. package/dist/llm/knowledge/types.js.map +1 -0
  58. package/dist/llm/mcp/index.d.ts +1 -1
  59. package/dist/llm/mcp/index.d.ts.map +1 -1
  60. package/dist/llm/mcp/mcp-tool-source.d.ts +1 -1
  61. package/dist/llm/mcp/mcp-tool-source.d.ts.map +1 -1
  62. package/dist/llm/mcp/mcp-tool-source.js.map +1 -1
  63. package/dist/llm/mcp/tool-registry.d.ts +20 -0
  64. package/dist/llm/mcp/tool-registry.d.ts.map +1 -1
  65. package/dist/llm/mcp/tool-registry.js +76 -7
  66. package/dist/llm/mcp/tool-registry.js.map +1 -1
  67. package/dist/llm/openai-provider.d.ts +9 -1
  68. package/dist/llm/openai-provider.d.ts.map +1 -1
  69. package/dist/llm/openai-provider.js +36 -0
  70. package/dist/llm/openai-provider.js.map +1 -1
  71. package/dist/llm/openai.d.ts +2 -2
  72. package/dist/llm/openai.d.ts.map +1 -1
  73. package/dist/llm/openai.js +7 -2
  74. package/dist/llm/openai.js.map +1 -1
  75. package/dist/llm/providers.d.ts +5 -1
  76. package/dist/llm/providers.d.ts.map +1 -1
  77. package/dist/llm/providers.js +22 -0
  78. package/dist/llm/providers.js.map +1 -1
  79. package/dist/llm/types.d.ts +26 -1
  80. package/dist/llm/types.d.ts.map +1 -1
  81. package/dist/llm/types.js.map +1 -1
  82. package/dist/templates/llm-agent/agent.js +12508 -213
  83. package/dist/templates/llm-mcp-service/agent.js +59459 -0
  84. package/dist/templates/registry.d.ts.map +1 -1
  85. package/dist/templates/registry.js +28 -0
  86. package/dist/templates/registry.js.map +1 -1
  87. package/eject/llm/loop.ts +214 -2
  88. package/package.json +2 -1
  89. package/schema/voicethere.llm.schema.json +108 -52
  90. package/templates/README.md +2 -0
  91. package/templates/llm-agent/README.md +11 -0
  92. package/templates/llm-agent/agent.ts +15 -1
  93. package/templates/llm-agent/knowledge/about.md +11 -0
  94. package/templates/llm-agent/voicethere.llm.json +10 -0
  95. package/templates/llm-mcp-service/README.md +112 -0
  96. package/templates/llm-mcp-service/agent.ts +31 -0
  97. package/templates/llm-mcp-service/hooks.ts +21 -0
  98. package/templates/llm-mcp-service/knowledge/about.md +11 -0
  99. package/templates/llm-mcp-service/md.d.ts +4 -0
  100. package/templates/llm-mcp-service/prompt.md +23 -0
  101. package/templates/llm-mcp-service/tools.ts +51 -0
  102. package/templates/llm-mcp-service/voicethere.llm.json +47 -0
@@ -5,6 +5,7 @@ import config from "./voicethere.llm.json";
5
5
  import systemPrompt from "./prompt.md";
6
6
  import { tools } from "./tools";
7
7
  import { hooks } from "./hooks";
8
+ import about from "./knowledge/about.md";
8
9
 
9
10
  // The template runs on OpenRouter, which is served by the openai module, so
10
11
  // switching between openai and openrouter needs no import change. Only the
@@ -12,6 +13,19 @@ import { hooks } from "./hooks";
12
13
  // "provider" in voicethere.llm.json and import its module instead:
13
14
  // anthropic → import { anthropic } from "@voicethere/agent/llm/anthropic";
14
15
  // gemini → import { gemini } from "@voicethere/agent/llm/gemini";
16
+ //
17
+ // Knowledge (RAG) is off. To turn it on, set knowledge.store in
18
+ // voicethere.llm.json to "redis" (needs Project Redis) or "supabase" (see the
19
+ // README for the SQL). Add Markdown files under knowledge/, import each one
20
+ // above and list it in documents below. The embeddings provider module (openai)
21
+ // is already imported and registered in providers.
15
22
  defineAgent(
16
- createLlmAgent({ config, systemPrompt, tools, hooks, providers: [openai] }),
23
+ createLlmAgent({
24
+ config,
25
+ systemPrompt,
26
+ tools,
27
+ hooks,
28
+ providers: [openai],
29
+ knowledge: { documents: [{ id: "about", title: "About", text: about }] },
30
+ }),
17
31
  );
@@ -0,0 +1,11 @@
1
+ # About this agent
2
+
3
+ This is a sample document. It tells the agent what it is: a voice and chat assistant built from the VoiceThere llm-agent template.
4
+
5
+ ## How to replace this file
6
+
7
+ Delete this text and write what your agent should know: product facts, prices, opening hours, policies. Use one heading per topic, because the agent splits every file by heading and searches the pieces. Keep each section short and self-contained, around 300 words at most.
8
+
9
+ ## How to add more files
10
+
11
+ Put more Markdown files in this folder, import each one in agent.ts and add it to the documents list. When a file changes, the next start indexes it again. Files that did not change are not embedded a second time.
@@ -33,5 +33,15 @@
33
33
  "timeoutMs": 15000
34
34
  },
35
35
  "toolSources": [],
36
+ "knowledge": {
37
+ "store": "off",
38
+ "topK": 4,
39
+ "embeddings": {
40
+ "provider": "openai",
41
+ "model": "text-embedding-3-small",
42
+ "dimensions": 512,
43
+ "apiKeySecret": "AGENT_OPENAI_API_KEY"
44
+ }
45
+ },
36
46
  "interruptPolicy": "cancel"
37
47
  }
@@ -0,0 +1,112 @@
1
+ # llm-mcp-service
2
+
3
+ The `llm-agent` template wired to a project service that speaks MCP. The agent lists the service's tools at `/mcp` (`toolSources: [{ "kind": "service", "path": "/mcp" }]` in `voicethere.llm.json`) and the model can call them. Source: `templates/llm-mcp-service/agent.ts`.
4
+
5
+ ## Run the example MCP service
6
+
7
+ The public image `ghcr.io/voicethere/mcp-example-service` is a small MCP server with two tools, `get_plan_price` (sample prices, not real ones) and `get_server_time`. In the dashboard, open **Services** and set:
8
+
9
+ - Image: `ghcr.io/voicethere/mcp-example-service:<version>` (use a release tag, or `latest`)
10
+ - Port: `8080`, HTTP health check path `/healthz`
11
+
12
+ Redeploy the project. The agent connects to `/mcp` on the service with the project's service token and discovers both tools; the agent log shows an `llm tools discovered` line.
13
+
14
+ To use your own server, replace the image with one that serves MCP over streamable HTTP at `/mcp` and answers `GET /healthz`. The platform checks the service token before a request reaches your service and does not pass it on, so your server needs no token handling when it runs as a project service. The example image reads an optional `MCP_TOKEN` and then requires `Authorization: Bearer <MCP_TOKEN>`; use that only when you run the server outside a project service.
15
+
16
+ ## External MCP server
17
+
18
+ To use a server you do not host as a project service, add an `mcp` entry to `toolSources` in `voicethere.llm.json`:
19
+
20
+ ```json
21
+ {
22
+ "kind": "mcp",
23
+ "name": "docs",
24
+ "url": "https://mcp.example.com/mcp",
25
+ "auth": { "type": "bearer", "secret": "AGENT_MCP_TOKEN" }
26
+ }
27
+ ```
28
+
29
+ Create the project secret `AGENT_MCP_TOKEN` first. `auth` can also be `{ "type": "none" }` or `{ "type": "headers", "headers": { "X-Api-Key": "AGENT_MCP_KEY" } }`, where each value names a project secret. `allow` and `deny` lists narrow which tools the model sees. You can keep the `service` entry and add external servers next to it.
30
+
31
+ The rest of this file is the `llm-agent` README, which applies here too.
32
+
33
+ ## Files
34
+
35
+ - `agent.ts` wires the pieces together. You rarely need to change it.
36
+ - `voicethere.llm.json` holds the provider, model, greeting, barge-in, history and tool settings. The dashboard LLM tab edits this file.
37
+ - `prompt.md` is the system prompt. The dashboard LLM tab edits this file too.
38
+ - `tools.ts` lists your own tools. It ships with `get_current_time`.
39
+ - `hooks.ts` is where you adjust a turn in code. It is empty by default.
40
+ - `knowledge/about.md` is a sample document for retrieval (off by default).
41
+ - `md.d.ts` lets TypeScript accept `import prompt from "./prompt.md"`.
42
+
43
+ ## Set the API key
44
+
45
+ The template starts on OpenRouter with the model `amazon/nova-micro-v1`. Create a key at openrouter.ai, add it as a project secret named `AGENT_OPENROUTER_API_KEY`, then deploy. For production, pick the model from OpenRouter's list yourself, checking cost, latency and tool support. The key is read by name from `apiKeySecret` in `voicethere.llm.json`; it is never stored in the file. Only project secrets whose names start with `AGENT_` reach the agent.
46
+
47
+ ## Filler phrases
48
+
49
+ The `fillers` block in `voicethere.llm.json` lists short sentences the agent speaks while the caller waits. Each situation has its own phrases; leave a situation out, or give it an empty list, to turn it off. The whole block is off when absent.
50
+
51
+ ```json
52
+ "fillers": {
53
+ "thinking": { "phrases": ["Hmm.", "Okay.", "Mm-hm.", "Right."], "afterMs": 1500 },
54
+ "toolCall": { "phrases": ["Let me check that for you.", "One moment, I'll look that up."] },
55
+ "toolWait": { "phrases": ["Still checking, one moment.", "Almost there."], "afterMs": 4000 },
56
+ "interruptible": true
57
+ }
58
+ ```
59
+
60
+ - `thinking`: no sentence of the reply was spoken `afterMs` (300 to 10000, default 1500) after the model call started. Phrases up to 60 characters. Once per turn.
61
+ - `toolCall`: the model asked for a tool and nothing has been spoken in this turn yet (no reply sentence, and no `thinking` filler in the last 2 seconds). It is spoken at once, before the tool runs. Phrases up to 120 characters. Once per turn.
62
+ - `toolWait`: a tool round is still running `afterMs` (1000 to 30000, default 4000) after it started. Once per tool round, twice per turn.
63
+ - At most 3 fillers per turn. Two fillers never play back to back unless the reply spoke in between or `afterMs` passed. Phrases are picked at random and never repeat the previous filler of the session. Each list takes up to 20 phrases.
64
+ - Callers can cut a filler by speaking (`interruptible`, default true). If the answer arrives while a filler plays, the answer follows it.
65
+ - Fillers are speech only. They do not appear in the conversation the model sees or in chat text.
66
+ - `tools.filler` (a single text) is deprecated. It still works when `toolCall` and `toolWait` have no phrases; otherwise `fillers` wins and a warning is logged.
67
+
68
+ ## Speech coalescing
69
+
70
+ `speech.coalesceMs` (0 to 1000, default 150) sets how long the agent holds a finished sentence to join it with the next one. Sentences that complete within the window are spoken as one utterance, so a reply the model returns at once has no gap between its sentences. The buffer is also spoken when the stream ends, at 400 characters, or when a tool call starts. Chat `assistant_delta` messages are not delayed. `0` speaks every sentence on its own.
71
+
72
+ ## Prompt guidance for phone calls
73
+
74
+ The template prompt ends with a "Voice call" section. In your own agent you can append the same text with `CALL_AGENT_PROMPT_GUIDANCE` from `@voicethere/agent/llm`:
75
+
76
+ ```ts
77
+ import { CALL_AGENT_PROMPT_GUIDANCE } from "@voicethere/agent/llm";
78
+
79
+ createLlmAgent({
80
+ systemPrompt: `${prompt}\n\n${CALL_AGENT_PROMPT_GUIDANCE}` /* ... */,
81
+ });
82
+ ```
83
+
84
+ It is never added automatically.
85
+
86
+ ## Switch providers
87
+
88
+ Change `provider`, `model` and `apiKeySecret` in `voicethere.llm.json`. To go back to OpenAI, use `provider: "openai"`, `model: "gpt-4o-mini"` and `AGENT_OPENAI_API_KEY`; no import changes. Other options are `anthropic` with `AGENT_ANTHROPIC_API_KEY` and `gemini` with `AGENT_GEMINI_API_KEY`. Create the matching project secret before you deploy.
89
+
90
+ ## Switching provider
91
+
92
+ Only the provider you import in `agent.ts` is bundled. When you change `provider` in `voicethere.llm.json`, also change the import and the `providers` list:
93
+
94
+ - `anthropic`: `import { anthropic } from "@voicethere/agent/llm/anthropic";` and `providers: [anthropic]`
95
+ - `gemini`: `import { gemini } from "@voicethere/agent/llm/gemini";` and `providers: [gemini]`
96
+ - `openrouter` uses the `openai` module.
97
+
98
+ If they do not match, `createLlmAgent` throws when the bundle loads, and the deploy check reports it.
99
+
100
+ ## Knowledge (RAG)
101
+
102
+ The `knowledge` block in `voicethere.llm.json` ships with `"store": "off"`, so the template runs without Redis. Turning it on takes three steps:
103
+
104
+ 1. Put your Markdown files in `knowledge/`, import each one in `agent.ts` and add it to the `documents` list. The agent splits every file by heading and indexes the pieces.
105
+ 2. Set `"store": "redis"` and enable Project Redis for the project. Create the project secret `AGENT_OPENAI_API_KEY` for the embeddings (or change `knowledge.embeddings`; Anthropic has no embeddings API). The agent indexes in the background on start and skips files that did not change.
106
+ 3. Redeploy. The model now has a `search_knowledge` tool and answers from the retrieved chunks.
107
+
108
+ For a large or changing data set use your own Supabase project instead: set `"store": "supabase"`, add a `supabase` block with `urlSecret` and `keySecret` (see the knowledge section of the package README for the SQL to run in your project), and fill the table yourself. Set `dimensions` to match your table. Chunk and query text never reach VoiceThere logs.
109
+
110
+ ## Learn more
111
+
112
+ See the docs page `/docs/llm-agents` for the full list of settings, tools, MCP servers and hooks.
@@ -0,0 +1,31 @@
1
+ import { defineAgent } from "@voicethere/agent";
2
+ import { createLlmAgent } from "@voicethere/agent/llm";
3
+ import { openai } from "@voicethere/agent/llm/openai";
4
+ import config from "./voicethere.llm.json";
5
+ import systemPrompt from "./prompt.md";
6
+ import { tools } from "./tools";
7
+ import { hooks } from "./hooks";
8
+ import about from "./knowledge/about.md";
9
+
10
+ // The template runs on OpenRouter, which is served by the openai module, so
11
+ // switching between openai and openrouter needs no import change. Only the
12
+ // provider you import here is bundled. To use another provider, change
13
+ // "provider" in voicethere.llm.json and import its module instead:
14
+ // anthropic → import { anthropic } from "@voicethere/agent/llm/anthropic";
15
+ // gemini → import { gemini } from "@voicethere/agent/llm/gemini";
16
+ //
17
+ // Knowledge (RAG) is off. To turn it on, set knowledge.store in
18
+ // voicethere.llm.json to "redis" (needs Project Redis) or "supabase" (see the
19
+ // README for the SQL). Add Markdown files under knowledge/, import each one
20
+ // above and list it in documents below. The embeddings provider module (openai)
21
+ // is already imported and registered in providers.
22
+ defineAgent(
23
+ createLlmAgent({
24
+ config,
25
+ systemPrompt,
26
+ tools,
27
+ hooks,
28
+ providers: [openai],
29
+ knowledge: { documents: [{ id: "about", title: "About", text: about }] },
30
+ }),
31
+ );
@@ -0,0 +1,21 @@
1
+ import type { LlmAgentHooks } from "@voicethere/agent/llm";
2
+
3
+ export const hooks: LlmAgentHooks = {};
4
+
5
+ // Example: rewrite or drop a sentence before it is spoken.
6
+ //
7
+ // export const hooks: LlmAgentHooks = {
8
+ // onAssistantText: (text) => text.replace(/\*+/g, ""),
9
+ // };
10
+ //
11
+ // Example: take over a turn, then fall back to the model.
12
+ //
13
+ // export const hooks: LlmAgentHooks = {
14
+ // respond: async (ctx, next) => {
15
+ // if (/^(bye|goodbye)\b/i.test(ctx.inputText)) {
16
+ // ctx.speak("Goodbye!");
17
+ // return;
18
+ // }
19
+ // return next();
20
+ // },
21
+ // };
@@ -0,0 +1,11 @@
1
+ # About this agent
2
+
3
+ This is a sample document. It tells the agent what it is: a voice and chat assistant built from the VoiceThere llm-agent template.
4
+
5
+ ## How to replace this file
6
+
7
+ Delete this text and write what your agent should know: product facts, prices, opening hours, policies. Use one heading per topic, because the agent splits every file by heading and searches the pieces. Keep each section short and self-contained, around 300 words at most.
8
+
9
+ ## How to add more files
10
+
11
+ Put more Markdown files in this folder, import each one in agent.ts and add it to the documents list. When a file changes, the next start indexes it again. Files that did not change are not embedded a second time.
@@ -0,0 +1,4 @@
1
+ declare module "*.md" {
2
+ const text: string;
3
+ export default text;
4
+ }
@@ -0,0 +1,23 @@
1
+ You are a helpful voice assistant for your company. People talk to you by voice, so everything you say is read aloud.
2
+
3
+ Answer 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.
4
+
5
+ Ask one question at a time and wait for the answer before asking the next one.
6
+
7
+ If you do not know something, say so plainly instead of guessing. Offer to help with what you can do.
8
+
9
+ Use 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.
10
+
11
+ You also have tools from the project's MCP service. Call get_plan_price when someone asks what a plan costs, and get_server_time when they ask for the service's time. The prices come from sample data, so say they are examples if asked.
12
+
13
+ Keep numbers and dates easy to say. Say "March third" instead of "03/03", and round long numbers when the exact value does not matter.
14
+
15
+ ## Voice call
16
+
17
+ You are on a live phone call. Always answer right away; never leave the caller in silence.
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
+ Keep sentences short; one idea per sentence. No lists, no markdown, no emojis; say numbers and dates the way a person would.
22
+
23
+ If you cannot help, say so in one sentence and offer what you can do.
@@ -0,0 +1,51 @@
1
+ import { defineTool } from "@voicethere/agent/llm";
2
+
3
+ const getCurrentTime = defineTool<{ timeZone?: string }>({
4
+ name: "get_current_time",
5
+ description: "Current date and time in a time zone.",
6
+ inputSchema: {
7
+ type: "object",
8
+ properties: {
9
+ timeZone: {
10
+ type: "string",
11
+ description: "IANA time zone, e.g. Europe/Berlin",
12
+ },
13
+ },
14
+ additionalProperties: false,
15
+ },
16
+ handler: ({ timeZone }) => {
17
+ const zone = timeZone || "UTC";
18
+ try {
19
+ return new Date().toLocaleString("en-US", {
20
+ timeZone: zone,
21
+ dateStyle: "full",
22
+ timeStyle: "short",
23
+ });
24
+ } catch {
25
+ return `Unknown time zone: ${zone}`;
26
+ }
27
+ },
28
+ });
29
+
30
+ // Example: a tool that calls an HTTP API. Keep every request bounded.
31
+ //
32
+ // const lookupOrder = defineTool<{ orderId: string }>({
33
+ // name: "lookup_order",
34
+ // description: "Status of an order by its id.",
35
+ // inputSchema: {
36
+ // type: "object",
37
+ // properties: { orderId: { type: "string" } },
38
+ // required: ["orderId"],
39
+ // additionalProperties: false,
40
+ // },
41
+ // handler: async ({ orderId }) => {
42
+ // const res = await fetch(
43
+ // `https://api.example.com/orders/${encodeURIComponent(orderId)}`,
44
+ // { signal: AbortSignal.timeout(5000) },
45
+ // );
46
+ // if (!res.ok) return `Order lookup failed with status ${res.status}`;
47
+ // return await res.text();
48
+ // },
49
+ // });
50
+
51
+ export const tools = [getCurrentTime];
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "./node_modules/@voicethere/agent/schema/voicethere.llm.schema.json",
3
+ "version": 1,
4
+ "provider": "openrouter",
5
+ "model": "amazon/nova-micro-v1",
6
+ "apiKeySecret": "AGENT_OPENROUTER_API_KEY",
7
+ "maxOutputTokens": 300,
8
+ "greeting": {
9
+ "text": "Hi! How can I help you today?",
10
+ "interruptible": true
11
+ },
12
+ "bargeIn": { "mode": "project" },
13
+ "history": { "turns": 20, "interruptionNote": true },
14
+ "fillers": {
15
+ "thinking": {
16
+ "phrases": ["Hmm.", "Okay.", "Mm-hm.", "Right."],
17
+ "afterMs": 1500
18
+ },
19
+ "toolCall": {
20
+ "phrases": [
21
+ "Let me check that for you.",
22
+ "One moment, I'll look that up."
23
+ ]
24
+ },
25
+ "toolWait": {
26
+ "phrases": ["Still checking, one moment.", "Almost there."],
27
+ "afterMs": 4000
28
+ },
29
+ "interruptible": true
30
+ },
31
+ "tools": {
32
+ "maxRounds": 5,
33
+ "timeoutMs": 15000
34
+ },
35
+ "toolSources": [{ "kind": "service", "path": "/mcp" }],
36
+ "knowledge": {
37
+ "store": "off",
38
+ "topK": 4,
39
+ "embeddings": {
40
+ "provider": "openai",
41
+ "model": "text-embedding-3-small",
42
+ "dimensions": 512,
43
+ "apiKeySecret": "AGENT_OPENAI_API_KEY"
44
+ }
45
+ },
46
+ "interruptPolicy": "cancel"
47
+ }