@voicethere/agent 0.11.0 → 0.12.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.
- package/dist/build-bundle.d.ts.map +1 -1
- package/dist/build-bundle.js +1 -0
- package/dist/build-bundle.js.map +1 -1
- package/dist/llm/agent/config.d.ts +376 -0
- package/dist/llm/agent/config.d.ts.map +1 -0
- package/dist/llm/agent/config.js +678 -0
- package/dist/llm/agent/config.js.map +1 -0
- package/dist/llm/agent/create-llm-agent.d.ts +22 -0
- package/dist/llm/agent/create-llm-agent.d.ts.map +1 -0
- package/dist/llm/agent/create-llm-agent.js +720 -0
- package/dist/llm/agent/create-llm-agent.js.map +1 -0
- package/dist/llm/agent/define-tool.d.ts +8 -0
- package/dist/llm/agent/define-tool.d.ts.map +1 -0
- package/dist/llm/agent/define-tool.js +9 -0
- package/dist/llm/agent/define-tool.js.map +1 -0
- package/dist/llm/agent/history.d.ts +35 -0
- package/dist/llm/agent/history.d.ts.map +1 -0
- package/dist/llm/agent/history.js +79 -0
- package/dist/llm/agent/history.js.map +1 -0
- package/dist/llm/agent/hooks.d.ts +50 -0
- package/dist/llm/agent/hooks.d.ts.map +1 -0
- package/dist/llm/agent/hooks.js +2 -0
- package/dist/llm/agent/hooks.js.map +1 -0
- package/dist/llm/agent/sentence-splitter.d.ts +10 -0
- package/dist/llm/agent/sentence-splitter.d.ts.map +1 -0
- package/dist/llm/agent/sentence-splitter.js +92 -0
- package/dist/llm/agent/sentence-splitter.js.map +1 -0
- package/dist/llm/anthropic-provider.d.ts +7 -0
- package/dist/llm/anthropic-provider.d.ts.map +1 -0
- package/dist/llm/anthropic-provider.js +115 -0
- package/dist/llm/anthropic-provider.js.map +1 -0
- package/dist/llm/bounded-provider.d.ts +12 -0
- package/dist/llm/bounded-provider.d.ts.map +1 -0
- package/dist/llm/bounded-provider.js +132 -0
- package/dist/llm/bounded-provider.js.map +1 -0
- package/dist/llm/catalog.d.ts +9 -0
- package/dist/llm/catalog.d.ts.map +1 -0
- package/dist/llm/catalog.js +35 -0
- package/dist/llm/catalog.js.map +1 -0
- package/dist/llm/gemini-provider.d.ts +7 -0
- package/dist/llm/gemini-provider.d.ts.map +1 -0
- package/dist/llm/gemini-provider.js +120 -0
- package/dist/llm/gemini-provider.js.map +1 -0
- package/dist/llm/index.d.ts +18 -0
- package/dist/llm/index.d.ts.map +1 -0
- package/dist/llm/index.js +11 -0
- package/dist/llm/index.js.map +1 -0
- package/dist/llm/mcp/index.d.ts +5 -0
- package/dist/llm/mcp/index.d.ts.map +1 -0
- package/dist/llm/mcp/index.js +3 -0
- package/dist/llm/mcp/index.js.map +1 -0
- package/dist/llm/mcp/mcp-tool-source.d.ts +65 -0
- package/dist/llm/mcp/mcp-tool-source.d.ts.map +1 -0
- package/dist/llm/mcp/mcp-tool-source.js +328 -0
- package/dist/llm/mcp/mcp-tool-source.js.map +1 -0
- package/dist/llm/mcp/tool-registry.d.ts +44 -0
- package/dist/llm/mcp/tool-registry.d.ts.map +1 -0
- package/dist/llm/mcp/tool-registry.js +147 -0
- package/dist/llm/mcp/tool-registry.js.map +1 -0
- package/dist/llm/openai-provider.d.ts +8 -0
- package/dist/llm/openai-provider.d.ts.map +1 -0
- package/dist/llm/openai-provider.js +146 -0
- package/dist/llm/openai-provider.js.map +1 -0
- package/dist/llm/providers.d.ts +10 -0
- package/dist/llm/providers.d.ts.map +1 -0
- package/dist/llm/providers.js +32 -0
- package/dist/llm/providers.js.map +1 -0
- package/dist/llm/types.d.ts +70 -0
- package/dist/llm/types.d.ts.map +1 -0
- package/dist/llm/types.js +11 -0
- package/dist/llm/types.js.map +1 -0
- package/dist/templates/llm-agent/agent.js +121378 -0
- package/dist/templates/registry.d.ts +1 -1
- package/dist/templates/registry.d.ts.map +1 -1
- package/dist/templates/registry.js +24 -0
- package/dist/templates/registry.js.map +1 -1
- package/eject/llm/loop.ts +913 -0
- package/package.json +48 -4
- package/schema/voicethere.llm.schema.json +325 -0
- package/templates/llm-agent/README.md +24 -0
- package/templates/llm-agent/agent.ts +8 -0
- package/templates/llm-agent/hooks.ts +21 -0
- package/templates/llm-agent/md.d.ts +4 -0
- package/templates/llm-agent/prompt.md +11 -0
- package/templates/llm-agent/tools.ts +51 -0
- package/templates/llm-agent/voicethere.llm.json +21 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-bundle.d.ts","sourceRoot":"","sources":["../src/build-bundle.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,MAAM,WAAW,uBAAuB;IACtC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAqCD;;;;GAIG;AACH,wBAAgB,yBAAyB,IAAI,OAAO,CAAC,MAAM,CAY1D;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"build-bundle.d.ts","sourceRoot":"","sources":["../src/build-bundle.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,MAAM,WAAW,uBAAuB;IACtC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,OAAO,EAAE,MAAM,CAAC;IAChB,yEAAyE;IACzE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAqCD;;;;GAIG;AACH,wBAAgB,yBAAyB,IAAI,OAAO,CAAC,MAAM,CAY1D;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAuB9B"}
|
package/dist/build-bundle.js
CHANGED
package/dist/build-bundle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|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M,EAAE,QAAQ;QAChB,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE;QACnC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;QACzC,OAAO,EAAE,CAAC,yBAAyB,EAAE,EAAE,gBAAgB,EAAE,CAAC;KAC3D,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
import type { LlmProviderId } from "../types.js";
|
|
2
|
+
export interface LlmAgentGreeting {
|
|
3
|
+
text: string;
|
|
4
|
+
/** Default false: the greeting is announced and the caller cannot cut it. */
|
|
5
|
+
interruptible?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface LlmAgentToolFiller {
|
|
8
|
+
text: string;
|
|
9
|
+
afterMs?: number;
|
|
10
|
+
interruptible?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface LlmAgentToolsConfig {
|
|
13
|
+
maxRounds?: number;
|
|
14
|
+
timeoutMs?: number;
|
|
15
|
+
maxResultBytes?: number;
|
|
16
|
+
filler?: LlmAgentToolFiller;
|
|
17
|
+
}
|
|
18
|
+
export type LlmAgentMcpAuth = {
|
|
19
|
+
type: "none";
|
|
20
|
+
} | {
|
|
21
|
+
type: "bearer";
|
|
22
|
+
secret: string;
|
|
23
|
+
} | {
|
|
24
|
+
type: "headers";
|
|
25
|
+
headers: Record<string, string>;
|
|
26
|
+
};
|
|
27
|
+
export interface LlmAgentServiceSource {
|
|
28
|
+
kind: "service";
|
|
29
|
+
path?: string;
|
|
30
|
+
allow?: string[];
|
|
31
|
+
deny?: string[];
|
|
32
|
+
}
|
|
33
|
+
export interface LlmAgentMcpSource {
|
|
34
|
+
kind: "mcp";
|
|
35
|
+
name: string;
|
|
36
|
+
url: string;
|
|
37
|
+
auth?: LlmAgentMcpAuth;
|
|
38
|
+
allow?: string[];
|
|
39
|
+
deny?: string[];
|
|
40
|
+
}
|
|
41
|
+
export type LlmAgentToolSource = LlmAgentServiceSource | LlmAgentMcpSource;
|
|
42
|
+
export interface LlmAgentConfig {
|
|
43
|
+
version: 1;
|
|
44
|
+
provider: LlmProviderId;
|
|
45
|
+
model?: string;
|
|
46
|
+
/** Name of the environment variable that holds the API key. */
|
|
47
|
+
apiKeySecret: string;
|
|
48
|
+
baseUrl?: string;
|
|
49
|
+
temperature?: number;
|
|
50
|
+
maxOutputTokens?: number;
|
|
51
|
+
greeting?: LlmAgentGreeting;
|
|
52
|
+
bargeIn?: {
|
|
53
|
+
mode: "project" | "on" | "off";
|
|
54
|
+
};
|
|
55
|
+
speechDuringNonInterruptible?: "answer_after" | "discard";
|
|
56
|
+
history?: {
|
|
57
|
+
turns?: number;
|
|
58
|
+
interruptionNote?: boolean;
|
|
59
|
+
};
|
|
60
|
+
tools?: LlmAgentToolsConfig;
|
|
61
|
+
toolSources?: LlmAgentToolSource[];
|
|
62
|
+
interruptPolicy?: "cancel" | "finish";
|
|
63
|
+
serviceWaitMs?: number;
|
|
64
|
+
fallbackText?: string;
|
|
65
|
+
speakChatReplies?: boolean;
|
|
66
|
+
}
|
|
67
|
+
export declare const LLM_AGENT_CONFIG_DEFAULTS: {
|
|
68
|
+
readonly maxOutputTokens: 512;
|
|
69
|
+
readonly greetingInterruptible: false;
|
|
70
|
+
readonly bargeInMode: "project";
|
|
71
|
+
readonly speechDuringNonInterruptible: "answer_after";
|
|
72
|
+
readonly historyTurns: 20;
|
|
73
|
+
readonly interruptionNote: true;
|
|
74
|
+
readonly toolMaxRounds: 5;
|
|
75
|
+
readonly toolTimeoutMs: 15000;
|
|
76
|
+
readonly toolMaxResultBytes: 16384;
|
|
77
|
+
readonly fillerAfterMs: 1500;
|
|
78
|
+
readonly fillerInterruptible: false;
|
|
79
|
+
readonly servicePath: "/mcp";
|
|
80
|
+
readonly interruptPolicy: "cancel";
|
|
81
|
+
readonly serviceWaitMs: 20000;
|
|
82
|
+
readonly fallbackText: "Sorry, something went wrong. Please try again.";
|
|
83
|
+
readonly speakChatReplies: true;
|
|
84
|
+
};
|
|
85
|
+
export interface LlmAgentConfigError {
|
|
86
|
+
path: string;
|
|
87
|
+
message: string;
|
|
88
|
+
}
|
|
89
|
+
export type LlmAgentConfigResult = {
|
|
90
|
+
ok: true;
|
|
91
|
+
config: LlmAgentConfig;
|
|
92
|
+
} | {
|
|
93
|
+
ok: false;
|
|
94
|
+
errors: LlmAgentConfigError[];
|
|
95
|
+
};
|
|
96
|
+
export declare function validateLlmAgentConfig(input: unknown): LlmAgentConfigResult;
|
|
97
|
+
export declare const LLM_AGENT_CONFIG_JSON_SCHEMA: {
|
|
98
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
99
|
+
readonly $id: "https://voicethere.io/schema/voicethere.llm.schema.json";
|
|
100
|
+
readonly title: "VoiceThere LLM agent config";
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly additionalProperties: false;
|
|
103
|
+
readonly required: readonly ["version", "provider", "apiKeySecret"];
|
|
104
|
+
readonly properties: {
|
|
105
|
+
readonly $schema: {
|
|
106
|
+
readonly type: "string";
|
|
107
|
+
};
|
|
108
|
+
readonly version: {
|
|
109
|
+
readonly const: 1;
|
|
110
|
+
};
|
|
111
|
+
readonly provider: {
|
|
112
|
+
readonly enum: readonly ["openai", "anthropic", "gemini", "openrouter"];
|
|
113
|
+
};
|
|
114
|
+
readonly model: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly minLength: 1;
|
|
117
|
+
readonly maxLength: 200;
|
|
118
|
+
};
|
|
119
|
+
readonly apiKeySecret: {
|
|
120
|
+
type: string;
|
|
121
|
+
pattern: string;
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
readonly baseUrl: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
readonly format: "uri";
|
|
127
|
+
readonly pattern: "^https?://";
|
|
128
|
+
readonly description: "Only allowed when provider is \"openai\".";
|
|
129
|
+
};
|
|
130
|
+
readonly temperature: {
|
|
131
|
+
readonly type: "number";
|
|
132
|
+
readonly minimum: 0;
|
|
133
|
+
readonly maximum: 2;
|
|
134
|
+
};
|
|
135
|
+
readonly maxOutputTokens: {
|
|
136
|
+
readonly type: "integer";
|
|
137
|
+
readonly minimum: 1;
|
|
138
|
+
readonly maximum: 8192;
|
|
139
|
+
readonly default: 512;
|
|
140
|
+
};
|
|
141
|
+
readonly greeting: {
|
|
142
|
+
readonly type: "object";
|
|
143
|
+
readonly additionalProperties: false;
|
|
144
|
+
readonly required: readonly ["text"];
|
|
145
|
+
readonly properties: {
|
|
146
|
+
readonly text: {
|
|
147
|
+
readonly type: "string";
|
|
148
|
+
readonly minLength: 1;
|
|
149
|
+
readonly maxLength: 500;
|
|
150
|
+
};
|
|
151
|
+
readonly interruptible: {
|
|
152
|
+
readonly type: "boolean";
|
|
153
|
+
readonly default: false;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
readonly bargeIn: {
|
|
158
|
+
readonly type: "object";
|
|
159
|
+
readonly additionalProperties: false;
|
|
160
|
+
readonly required: readonly ["mode"];
|
|
161
|
+
readonly properties: {
|
|
162
|
+
readonly mode: {
|
|
163
|
+
readonly enum: readonly ["project", "on", "off"];
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly default: {
|
|
167
|
+
readonly mode: "project";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly speechDuringNonInterruptible: {
|
|
171
|
+
readonly enum: readonly ["answer_after", "discard"];
|
|
172
|
+
readonly default: "answer_after";
|
|
173
|
+
};
|
|
174
|
+
readonly history: {
|
|
175
|
+
readonly type: "object";
|
|
176
|
+
readonly additionalProperties: false;
|
|
177
|
+
readonly properties: {
|
|
178
|
+
readonly turns: {
|
|
179
|
+
readonly type: "integer";
|
|
180
|
+
readonly minimum: 1;
|
|
181
|
+
readonly maximum: 100;
|
|
182
|
+
readonly default: 20;
|
|
183
|
+
};
|
|
184
|
+
readonly interruptionNote: {
|
|
185
|
+
readonly type: "boolean";
|
|
186
|
+
readonly default: true;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
readonly tools: {
|
|
191
|
+
readonly type: "object";
|
|
192
|
+
readonly additionalProperties: false;
|
|
193
|
+
readonly properties: {
|
|
194
|
+
readonly maxRounds: {
|
|
195
|
+
readonly type: "integer";
|
|
196
|
+
readonly minimum: 1;
|
|
197
|
+
readonly maximum: 10;
|
|
198
|
+
readonly default: 5;
|
|
199
|
+
};
|
|
200
|
+
readonly timeoutMs: {
|
|
201
|
+
readonly type: "integer";
|
|
202
|
+
readonly minimum: 1000;
|
|
203
|
+
readonly maximum: 60000;
|
|
204
|
+
readonly default: 15000;
|
|
205
|
+
};
|
|
206
|
+
readonly maxResultBytes: {
|
|
207
|
+
readonly type: "integer";
|
|
208
|
+
readonly minimum: 1024;
|
|
209
|
+
readonly maximum: 65536;
|
|
210
|
+
readonly default: 16384;
|
|
211
|
+
};
|
|
212
|
+
readonly filler: {
|
|
213
|
+
readonly type: "object";
|
|
214
|
+
readonly additionalProperties: false;
|
|
215
|
+
readonly required: readonly ["text"];
|
|
216
|
+
readonly properties: {
|
|
217
|
+
readonly text: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
readonly minLength: 1;
|
|
220
|
+
readonly maxLength: 500;
|
|
221
|
+
};
|
|
222
|
+
readonly afterMs: {
|
|
223
|
+
readonly type: "integer";
|
|
224
|
+
readonly minimum: 500;
|
|
225
|
+
readonly maximum: 10000;
|
|
226
|
+
readonly default: 1500;
|
|
227
|
+
};
|
|
228
|
+
readonly interruptible: {
|
|
229
|
+
readonly type: "boolean";
|
|
230
|
+
readonly default: false;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
readonly toolSources: {
|
|
237
|
+
readonly type: "array";
|
|
238
|
+
readonly maxItems: 8;
|
|
239
|
+
readonly items: {
|
|
240
|
+
readonly oneOf: readonly [{
|
|
241
|
+
readonly type: "object";
|
|
242
|
+
readonly additionalProperties: false;
|
|
243
|
+
readonly required: readonly ["kind"];
|
|
244
|
+
readonly properties: {
|
|
245
|
+
readonly kind: {
|
|
246
|
+
readonly const: "service";
|
|
247
|
+
};
|
|
248
|
+
readonly path: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
readonly pattern: "^/";
|
|
251
|
+
readonly default: "/mcp";
|
|
252
|
+
};
|
|
253
|
+
readonly allow: {
|
|
254
|
+
type: string;
|
|
255
|
+
items: {
|
|
256
|
+
type: string;
|
|
257
|
+
minLength: number;
|
|
258
|
+
maxLength: number;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
readonly deny: {
|
|
262
|
+
type: string;
|
|
263
|
+
items: {
|
|
264
|
+
type: string;
|
|
265
|
+
minLength: number;
|
|
266
|
+
maxLength: number;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
}, {
|
|
271
|
+
readonly type: "object";
|
|
272
|
+
readonly additionalProperties: false;
|
|
273
|
+
readonly required: readonly ["kind", "name", "url"];
|
|
274
|
+
readonly properties: {
|
|
275
|
+
readonly kind: {
|
|
276
|
+
readonly const: "mcp";
|
|
277
|
+
};
|
|
278
|
+
readonly name: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
readonly pattern: "^[a-z0-9-]{1,40}$";
|
|
281
|
+
};
|
|
282
|
+
readonly url: {
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
readonly format: "uri";
|
|
285
|
+
readonly pattern: "^https://";
|
|
286
|
+
readonly description: "https only; local and private addresses are rejected.";
|
|
287
|
+
};
|
|
288
|
+
readonly auth: {
|
|
289
|
+
readonly oneOf: readonly [{
|
|
290
|
+
readonly type: "object";
|
|
291
|
+
readonly additionalProperties: false;
|
|
292
|
+
readonly required: readonly ["type"];
|
|
293
|
+
readonly properties: {
|
|
294
|
+
readonly type: {
|
|
295
|
+
readonly const: "none";
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
}, {
|
|
299
|
+
readonly type: "object";
|
|
300
|
+
readonly additionalProperties: false;
|
|
301
|
+
readonly required: readonly ["type", "secret"];
|
|
302
|
+
readonly properties: {
|
|
303
|
+
readonly type: {
|
|
304
|
+
readonly const: "bearer";
|
|
305
|
+
};
|
|
306
|
+
readonly secret: {
|
|
307
|
+
type: string;
|
|
308
|
+
pattern: string;
|
|
309
|
+
description: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
}, {
|
|
313
|
+
readonly type: "object";
|
|
314
|
+
readonly additionalProperties: false;
|
|
315
|
+
readonly required: readonly ["type", "headers"];
|
|
316
|
+
readonly properties: {
|
|
317
|
+
readonly type: {
|
|
318
|
+
readonly const: "headers";
|
|
319
|
+
};
|
|
320
|
+
readonly headers: {
|
|
321
|
+
readonly type: "object";
|
|
322
|
+
readonly propertyNames: {
|
|
323
|
+
readonly pattern: "^[A-Za-z0-9-]{1,64}$";
|
|
324
|
+
};
|
|
325
|
+
readonly additionalProperties: {
|
|
326
|
+
type: string;
|
|
327
|
+
pattern: string;
|
|
328
|
+
description: string;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
}];
|
|
333
|
+
};
|
|
334
|
+
readonly allow: {
|
|
335
|
+
type: string;
|
|
336
|
+
items: {
|
|
337
|
+
type: string;
|
|
338
|
+
minLength: number;
|
|
339
|
+
maxLength: number;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
readonly deny: {
|
|
343
|
+
type: string;
|
|
344
|
+
items: {
|
|
345
|
+
type: string;
|
|
346
|
+
minLength: number;
|
|
347
|
+
maxLength: number;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
}];
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
readonly interruptPolicy: {
|
|
355
|
+
readonly enum: readonly ["cancel", "finish"];
|
|
356
|
+
readonly default: "cancel";
|
|
357
|
+
};
|
|
358
|
+
readonly serviceWaitMs: {
|
|
359
|
+
readonly type: "integer";
|
|
360
|
+
readonly minimum: 0;
|
|
361
|
+
readonly maximum: 60000;
|
|
362
|
+
readonly default: 20000;
|
|
363
|
+
};
|
|
364
|
+
readonly fallbackText: {
|
|
365
|
+
readonly type: "string";
|
|
366
|
+
readonly minLength: 1;
|
|
367
|
+
readonly maxLength: 500;
|
|
368
|
+
readonly default: "Sorry, something went wrong. Please try again.";
|
|
369
|
+
};
|
|
370
|
+
readonly speakChatReplies: {
|
|
371
|
+
readonly type: "boolean";
|
|
372
|
+
readonly default: true;
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/llm/agent/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,6EAA6E;IAC7E,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAED,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MA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