@lssm/example.agent-console 0.0.0-canary-20251217034842 → 0.0.0-canary-20251217060433
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/.turbo/turbo-build$colon$bundle.log +81 -0
- package/.turbo/turbo-build.log +48 -46
- package/CHANGELOG.md +11 -8
- package/dist/agent/agent.contracts.d.ts +504 -0
- package/dist/agent/agent.entity.d.ts +54 -0
- package/dist/agent/agent.enum.d.ts +17 -0
- package/dist/agent/agent.event.d.ts +127 -0
- package/dist/agent/agent.handler.d.ts +99 -0
- package/dist/agent/agent.presentation.d.ts +18 -0
- package/dist/agent/agent.schema.d.ts +400 -0
- package/dist/agent/index.d.ts +8 -0
- package/dist/agent.feature.d.ts +11 -0
- package/dist/docs/agent-console.docblock.d.ts +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/example.d.ts +39 -0
- package/dist/handlers/index.d.ts +4 -0
- package/dist/index.d.ts +30 -0
- package/dist/presentations/index.d.ts +4 -0
- package/dist/run/index.d.ts +8 -0
- package/dist/run/run.contracts.d.ts +713 -0
- package/dist/run/run.entity.d.ts +81 -0
- package/dist/run/run.enum.d.ts +21 -0
- package/dist/run/run.event.d.ts +289 -0
- package/dist/run/run.handler.d.ts +202 -0
- package/dist/run/run.presentation.d.ts +14 -0
- package/dist/run/run.schema.d.ts +415 -0
- package/dist/shared/index.d.ts +4 -0
- package/dist/shared/mock-agents.d.ts +87 -0
- package/dist/shared/mock-runs.d.ts +119 -0
- package/dist/shared/mock-tools.d.ts +243 -0
- package/dist/tool/index.d.ts +8 -0
- package/dist/tool/tool.contracts.d.ts +404 -0
- package/dist/tool/tool.entity.d.ts +41 -0
- package/dist/tool/tool.enum.d.ts +17 -0
- package/dist/tool/tool.event.d.ts +102 -0
- package/dist/tool/tool.handler.d.ts +314 -0
- package/dist/tool/tool.presentation.d.ts +14 -0
- package/dist/tool/tool.schema.d.ts +217 -0
- package/package.json +10 -8
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
import * as _lssm_lib_schema415 from "@lssm/lib.schema";
|
|
2
|
+
|
|
3
|
+
//#region src/run/run.schema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Input data for agent execution.
|
|
6
|
+
*/
|
|
7
|
+
declare const RunInputModel: _lssm_lib_schema415.SchemaModel<{
|
|
8
|
+
message: {
|
|
9
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
10
|
+
isOptional: false;
|
|
11
|
+
};
|
|
12
|
+
context: {
|
|
13
|
+
type: _lssm_lib_schema415.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
14
|
+
isOptional: true;
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Individual step within a run.
|
|
19
|
+
*/
|
|
20
|
+
declare const RunStepModel: _lssm_lib_schema415.SchemaModel<{
|
|
21
|
+
id: {
|
|
22
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
23
|
+
isOptional: false;
|
|
24
|
+
};
|
|
25
|
+
stepNumber: {
|
|
26
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
27
|
+
isOptional: false;
|
|
28
|
+
};
|
|
29
|
+
type: {
|
|
30
|
+
type: _lssm_lib_schema415.EnumType<[string, string, string, string]>;
|
|
31
|
+
isOptional: false;
|
|
32
|
+
};
|
|
33
|
+
toolId: {
|
|
34
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
35
|
+
isOptional: true;
|
|
36
|
+
};
|
|
37
|
+
toolName: {
|
|
38
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
39
|
+
isOptional: true;
|
|
40
|
+
};
|
|
41
|
+
input: {
|
|
42
|
+
type: _lssm_lib_schema415.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
43
|
+
isOptional: true;
|
|
44
|
+
};
|
|
45
|
+
output: {
|
|
46
|
+
type: _lssm_lib_schema415.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
47
|
+
isOptional: true;
|
|
48
|
+
};
|
|
49
|
+
status: {
|
|
50
|
+
type: _lssm_lib_schema415.EnumType<[string, string, string, string, string, string]>;
|
|
51
|
+
isOptional: false;
|
|
52
|
+
};
|
|
53
|
+
errorMessage: {
|
|
54
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
55
|
+
isOptional: true;
|
|
56
|
+
};
|
|
57
|
+
tokensUsed: {
|
|
58
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
59
|
+
isOptional: false;
|
|
60
|
+
defaultValue: number;
|
|
61
|
+
};
|
|
62
|
+
durationMs: {
|
|
63
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
64
|
+
isOptional: true;
|
|
65
|
+
};
|
|
66
|
+
startedAt: {
|
|
67
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
68
|
+
isOptional: false;
|
|
69
|
+
};
|
|
70
|
+
completedAt: {
|
|
71
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
72
|
+
isOptional: true;
|
|
73
|
+
};
|
|
74
|
+
}>;
|
|
75
|
+
/**
|
|
76
|
+
* Execution log entry.
|
|
77
|
+
*/
|
|
78
|
+
declare const RunLogModel: _lssm_lib_schema415.SchemaModel<{
|
|
79
|
+
id: {
|
|
80
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
81
|
+
isOptional: false;
|
|
82
|
+
};
|
|
83
|
+
stepId: {
|
|
84
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
85
|
+
isOptional: true;
|
|
86
|
+
};
|
|
87
|
+
level: {
|
|
88
|
+
type: _lssm_lib_schema415.EnumType<[string, string, string, string]>;
|
|
89
|
+
isOptional: false;
|
|
90
|
+
};
|
|
91
|
+
message: {
|
|
92
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
93
|
+
isOptional: false;
|
|
94
|
+
};
|
|
95
|
+
data: {
|
|
96
|
+
type: _lssm_lib_schema415.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
97
|
+
isOptional: true;
|
|
98
|
+
};
|
|
99
|
+
source: {
|
|
100
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
101
|
+
isOptional: true;
|
|
102
|
+
};
|
|
103
|
+
traceId: {
|
|
104
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
105
|
+
isOptional: true;
|
|
106
|
+
};
|
|
107
|
+
spanId: {
|
|
108
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
109
|
+
isOptional: true;
|
|
110
|
+
};
|
|
111
|
+
timestamp: {
|
|
112
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
113
|
+
isOptional: false;
|
|
114
|
+
};
|
|
115
|
+
}>;
|
|
116
|
+
/**
|
|
117
|
+
* Agent reference in a run.
|
|
118
|
+
*/
|
|
119
|
+
declare const RunAgentRefModel: _lssm_lib_schema415.SchemaModel<{
|
|
120
|
+
id: {
|
|
121
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
122
|
+
isOptional: false;
|
|
123
|
+
};
|
|
124
|
+
name: {
|
|
125
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
126
|
+
isOptional: false;
|
|
127
|
+
};
|
|
128
|
+
modelProvider: {
|
|
129
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
130
|
+
isOptional: false;
|
|
131
|
+
};
|
|
132
|
+
modelName: {
|
|
133
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
134
|
+
isOptional: false;
|
|
135
|
+
};
|
|
136
|
+
}>;
|
|
137
|
+
/**
|
|
138
|
+
* Agent execution instance.
|
|
139
|
+
*/
|
|
140
|
+
declare const RunModel: _lssm_lib_schema415.SchemaModel<{
|
|
141
|
+
id: {
|
|
142
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
143
|
+
isOptional: false;
|
|
144
|
+
};
|
|
145
|
+
organizationId: {
|
|
146
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
147
|
+
isOptional: false;
|
|
148
|
+
};
|
|
149
|
+
agentId: {
|
|
150
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
151
|
+
isOptional: false;
|
|
152
|
+
};
|
|
153
|
+
userId: {
|
|
154
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
155
|
+
isOptional: true;
|
|
156
|
+
};
|
|
157
|
+
sessionId: {
|
|
158
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
159
|
+
isOptional: true;
|
|
160
|
+
};
|
|
161
|
+
input: {
|
|
162
|
+
type: _lssm_lib_schema415.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
163
|
+
isOptional: false;
|
|
164
|
+
};
|
|
165
|
+
output: {
|
|
166
|
+
type: _lssm_lib_schema415.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
167
|
+
isOptional: true;
|
|
168
|
+
};
|
|
169
|
+
status: {
|
|
170
|
+
type: _lssm_lib_schema415.EnumType<[string, string, string, string, string, string]>;
|
|
171
|
+
isOptional: false;
|
|
172
|
+
};
|
|
173
|
+
errorMessage: {
|
|
174
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
175
|
+
isOptional: true;
|
|
176
|
+
};
|
|
177
|
+
errorCode: {
|
|
178
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
179
|
+
isOptional: true;
|
|
180
|
+
};
|
|
181
|
+
totalTokens: {
|
|
182
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
183
|
+
isOptional: false;
|
|
184
|
+
defaultValue: number;
|
|
185
|
+
};
|
|
186
|
+
promptTokens: {
|
|
187
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
188
|
+
isOptional: false;
|
|
189
|
+
defaultValue: number;
|
|
190
|
+
};
|
|
191
|
+
completionTokens: {
|
|
192
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
193
|
+
isOptional: false;
|
|
194
|
+
defaultValue: number;
|
|
195
|
+
};
|
|
196
|
+
totalIterations: {
|
|
197
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
198
|
+
isOptional: false;
|
|
199
|
+
defaultValue: number;
|
|
200
|
+
};
|
|
201
|
+
durationMs: {
|
|
202
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
203
|
+
isOptional: true;
|
|
204
|
+
};
|
|
205
|
+
estimatedCostUsd: {
|
|
206
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
207
|
+
isOptional: true;
|
|
208
|
+
};
|
|
209
|
+
queuedAt: {
|
|
210
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
211
|
+
isOptional: false;
|
|
212
|
+
};
|
|
213
|
+
startedAt: {
|
|
214
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
215
|
+
isOptional: true;
|
|
216
|
+
};
|
|
217
|
+
completedAt: {
|
|
218
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
219
|
+
isOptional: true;
|
|
220
|
+
};
|
|
221
|
+
metadata: {
|
|
222
|
+
type: _lssm_lib_schema415.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
223
|
+
isOptional: true;
|
|
224
|
+
};
|
|
225
|
+
steps: {
|
|
226
|
+
type: _lssm_lib_schema415.SchemaModel<{
|
|
227
|
+
id: {
|
|
228
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
229
|
+
isOptional: false;
|
|
230
|
+
};
|
|
231
|
+
stepNumber: {
|
|
232
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
233
|
+
isOptional: false;
|
|
234
|
+
};
|
|
235
|
+
type: {
|
|
236
|
+
type: _lssm_lib_schema415.EnumType<[string, string, string, string]>;
|
|
237
|
+
isOptional: false;
|
|
238
|
+
};
|
|
239
|
+
toolId: {
|
|
240
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
241
|
+
isOptional: true;
|
|
242
|
+
};
|
|
243
|
+
toolName: {
|
|
244
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
245
|
+
isOptional: true;
|
|
246
|
+
};
|
|
247
|
+
input: {
|
|
248
|
+
type: _lssm_lib_schema415.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
249
|
+
isOptional: true;
|
|
250
|
+
};
|
|
251
|
+
output: {
|
|
252
|
+
type: _lssm_lib_schema415.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
253
|
+
isOptional: true;
|
|
254
|
+
};
|
|
255
|
+
status: {
|
|
256
|
+
type: _lssm_lib_schema415.EnumType<[string, string, string, string, string, string]>;
|
|
257
|
+
isOptional: false;
|
|
258
|
+
};
|
|
259
|
+
errorMessage: {
|
|
260
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
261
|
+
isOptional: true;
|
|
262
|
+
};
|
|
263
|
+
tokensUsed: {
|
|
264
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
265
|
+
isOptional: false;
|
|
266
|
+
defaultValue: number;
|
|
267
|
+
};
|
|
268
|
+
durationMs: {
|
|
269
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
270
|
+
isOptional: true;
|
|
271
|
+
};
|
|
272
|
+
startedAt: {
|
|
273
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
274
|
+
isOptional: false;
|
|
275
|
+
};
|
|
276
|
+
completedAt: {
|
|
277
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
278
|
+
isOptional: true;
|
|
279
|
+
};
|
|
280
|
+
}>;
|
|
281
|
+
isArray: true;
|
|
282
|
+
isOptional: true;
|
|
283
|
+
};
|
|
284
|
+
logs: {
|
|
285
|
+
type: _lssm_lib_schema415.SchemaModel<{
|
|
286
|
+
id: {
|
|
287
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
288
|
+
isOptional: false;
|
|
289
|
+
};
|
|
290
|
+
stepId: {
|
|
291
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
292
|
+
isOptional: true;
|
|
293
|
+
};
|
|
294
|
+
level: {
|
|
295
|
+
type: _lssm_lib_schema415.EnumType<[string, string, string, string]>;
|
|
296
|
+
isOptional: false;
|
|
297
|
+
};
|
|
298
|
+
message: {
|
|
299
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
300
|
+
isOptional: false;
|
|
301
|
+
};
|
|
302
|
+
data: {
|
|
303
|
+
type: _lssm_lib_schema415.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
304
|
+
isOptional: true;
|
|
305
|
+
};
|
|
306
|
+
source: {
|
|
307
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
308
|
+
isOptional: true;
|
|
309
|
+
};
|
|
310
|
+
traceId: {
|
|
311
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
312
|
+
isOptional: true;
|
|
313
|
+
};
|
|
314
|
+
spanId: {
|
|
315
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
316
|
+
isOptional: true;
|
|
317
|
+
};
|
|
318
|
+
timestamp: {
|
|
319
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
320
|
+
isOptional: false;
|
|
321
|
+
};
|
|
322
|
+
}>;
|
|
323
|
+
isArray: true;
|
|
324
|
+
isOptional: true;
|
|
325
|
+
};
|
|
326
|
+
agent: {
|
|
327
|
+
type: _lssm_lib_schema415.SchemaModel<{
|
|
328
|
+
id: {
|
|
329
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
330
|
+
isOptional: false;
|
|
331
|
+
};
|
|
332
|
+
name: {
|
|
333
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
334
|
+
isOptional: false;
|
|
335
|
+
};
|
|
336
|
+
modelProvider: {
|
|
337
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
338
|
+
isOptional: false;
|
|
339
|
+
};
|
|
340
|
+
modelName: {
|
|
341
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
342
|
+
isOptional: false;
|
|
343
|
+
};
|
|
344
|
+
}>;
|
|
345
|
+
isOptional: true;
|
|
346
|
+
};
|
|
347
|
+
}>;
|
|
348
|
+
/**
|
|
349
|
+
* Summary of a run for list views.
|
|
350
|
+
*/
|
|
351
|
+
declare const RunSummaryModel: _lssm_lib_schema415.SchemaModel<{
|
|
352
|
+
id: {
|
|
353
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
354
|
+
isOptional: false;
|
|
355
|
+
};
|
|
356
|
+
agentId: {
|
|
357
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
358
|
+
isOptional: false;
|
|
359
|
+
};
|
|
360
|
+
agentName: {
|
|
361
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
362
|
+
isOptional: false;
|
|
363
|
+
};
|
|
364
|
+
status: {
|
|
365
|
+
type: _lssm_lib_schema415.EnumType<[string, string, string, string, string, string]>;
|
|
366
|
+
isOptional: false;
|
|
367
|
+
};
|
|
368
|
+
totalTokens: {
|
|
369
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
370
|
+
isOptional: false;
|
|
371
|
+
};
|
|
372
|
+
durationMs: {
|
|
373
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
374
|
+
isOptional: true;
|
|
375
|
+
};
|
|
376
|
+
estimatedCostUsd: {
|
|
377
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
378
|
+
isOptional: true;
|
|
379
|
+
};
|
|
380
|
+
queuedAt: {
|
|
381
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
382
|
+
isOptional: false;
|
|
383
|
+
};
|
|
384
|
+
completedAt: {
|
|
385
|
+
type: _lssm_lib_schema415.FieldType<Date, string>;
|
|
386
|
+
isOptional: true;
|
|
387
|
+
};
|
|
388
|
+
}>;
|
|
389
|
+
/**
|
|
390
|
+
* Timeline data point for metrics.
|
|
391
|
+
*/
|
|
392
|
+
declare const TimelineDataPointModel: _lssm_lib_schema415.SchemaModel<{
|
|
393
|
+
period: {
|
|
394
|
+
type: _lssm_lib_schema415.FieldType<string, string>;
|
|
395
|
+
isOptional: false;
|
|
396
|
+
};
|
|
397
|
+
runs: {
|
|
398
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
399
|
+
isOptional: false;
|
|
400
|
+
};
|
|
401
|
+
tokens: {
|
|
402
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
403
|
+
isOptional: false;
|
|
404
|
+
};
|
|
405
|
+
costUsd: {
|
|
406
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
407
|
+
isOptional: false;
|
|
408
|
+
};
|
|
409
|
+
avgDurationMs: {
|
|
410
|
+
type: _lssm_lib_schema415.FieldType<number, number>;
|
|
411
|
+
isOptional: false;
|
|
412
|
+
};
|
|
413
|
+
}>;
|
|
414
|
+
//#endregion
|
|
415
|
+
export { RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStepModel, RunSummaryModel, TimelineDataPointModel };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
//#region src/shared/mock-agents.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Mock agent data for testing and demos.
|
|
4
|
+
*/
|
|
5
|
+
declare const MOCK_AGENTS: ({
|
|
6
|
+
id: string;
|
|
7
|
+
organizationId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
slug: string;
|
|
10
|
+
description: string;
|
|
11
|
+
status: "ACTIVE";
|
|
12
|
+
modelProvider: "OPENAI";
|
|
13
|
+
modelName: string;
|
|
14
|
+
modelConfig: {
|
|
15
|
+
temperature: number;
|
|
16
|
+
};
|
|
17
|
+
systemPrompt: string;
|
|
18
|
+
toolChoice: "auto";
|
|
19
|
+
maxIterations: number;
|
|
20
|
+
timeoutMs: number;
|
|
21
|
+
version: string;
|
|
22
|
+
tags: string[];
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
} | {
|
|
26
|
+
id: string;
|
|
27
|
+
organizationId: string;
|
|
28
|
+
name: string;
|
|
29
|
+
slug: string;
|
|
30
|
+
description: string;
|
|
31
|
+
status: "ACTIVE";
|
|
32
|
+
modelProvider: "ANTHROPIC";
|
|
33
|
+
modelName: string;
|
|
34
|
+
modelConfig: {
|
|
35
|
+
temperature: number;
|
|
36
|
+
};
|
|
37
|
+
systemPrompt: string;
|
|
38
|
+
toolChoice: "auto";
|
|
39
|
+
maxIterations: number;
|
|
40
|
+
timeoutMs: number;
|
|
41
|
+
version: string;
|
|
42
|
+
tags: string[];
|
|
43
|
+
createdAt: Date;
|
|
44
|
+
updatedAt: Date;
|
|
45
|
+
} | {
|
|
46
|
+
id: string;
|
|
47
|
+
organizationId: string;
|
|
48
|
+
name: string;
|
|
49
|
+
slug: string;
|
|
50
|
+
description: string;
|
|
51
|
+
status: "PAUSED";
|
|
52
|
+
modelProvider: "OPENAI";
|
|
53
|
+
modelName: string;
|
|
54
|
+
modelConfig: {
|
|
55
|
+
temperature: number;
|
|
56
|
+
};
|
|
57
|
+
systemPrompt: string;
|
|
58
|
+
toolChoice: "required";
|
|
59
|
+
maxIterations: number;
|
|
60
|
+
timeoutMs: number;
|
|
61
|
+
version: string;
|
|
62
|
+
tags: string[];
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
updatedAt: Date;
|
|
65
|
+
} | {
|
|
66
|
+
id: string;
|
|
67
|
+
organizationId: string;
|
|
68
|
+
name: string;
|
|
69
|
+
slug: string;
|
|
70
|
+
description: string;
|
|
71
|
+
status: "DRAFT";
|
|
72
|
+
modelProvider: "GOOGLE";
|
|
73
|
+
modelName: string;
|
|
74
|
+
modelConfig: {
|
|
75
|
+
temperature: number;
|
|
76
|
+
};
|
|
77
|
+
systemPrompt: string;
|
|
78
|
+
toolChoice: "auto";
|
|
79
|
+
maxIterations: number;
|
|
80
|
+
timeoutMs: number;
|
|
81
|
+
version: string;
|
|
82
|
+
tags: string[];
|
|
83
|
+
createdAt: Date;
|
|
84
|
+
updatedAt: Date;
|
|
85
|
+
})[];
|
|
86
|
+
//#endregion
|
|
87
|
+
export { MOCK_AGENTS };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
//#region src/shared/mock-runs.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Mock run data for testing and demos.
|
|
4
|
+
*/
|
|
5
|
+
declare const MOCK_RUNS: ({
|
|
6
|
+
id: string;
|
|
7
|
+
organizationId: string;
|
|
8
|
+
agentId: string;
|
|
9
|
+
agentName: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
sessionId: string;
|
|
12
|
+
input: {
|
|
13
|
+
message: string;
|
|
14
|
+
context: {
|
|
15
|
+
prNumber?: undefined;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
output: {
|
|
19
|
+
response: string;
|
|
20
|
+
};
|
|
21
|
+
status: "COMPLETED";
|
|
22
|
+
totalTokens: number;
|
|
23
|
+
promptTokens: number;
|
|
24
|
+
completionTokens: number;
|
|
25
|
+
totalIterations: number;
|
|
26
|
+
durationMs: number;
|
|
27
|
+
estimatedCostUsd: number;
|
|
28
|
+
queuedAt: Date;
|
|
29
|
+
startedAt: Date;
|
|
30
|
+
completedAt: Date;
|
|
31
|
+
steps: never[];
|
|
32
|
+
logs: never[];
|
|
33
|
+
errorMessage?: undefined;
|
|
34
|
+
errorCode?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
id: string;
|
|
37
|
+
organizationId: string;
|
|
38
|
+
agentId: string;
|
|
39
|
+
agentName: string;
|
|
40
|
+
userId: string;
|
|
41
|
+
input: {
|
|
42
|
+
message: string;
|
|
43
|
+
context: {
|
|
44
|
+
prNumber: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
status: "IN_PROGRESS";
|
|
48
|
+
totalTokens: number;
|
|
49
|
+
promptTokens: number;
|
|
50
|
+
completionTokens: number;
|
|
51
|
+
totalIterations: number;
|
|
52
|
+
queuedAt: Date;
|
|
53
|
+
startedAt: Date;
|
|
54
|
+
steps: never[];
|
|
55
|
+
logs: never[];
|
|
56
|
+
sessionId?: undefined;
|
|
57
|
+
output?: undefined;
|
|
58
|
+
durationMs?: undefined;
|
|
59
|
+
estimatedCostUsd?: undefined;
|
|
60
|
+
completedAt?: undefined;
|
|
61
|
+
errorMessage?: undefined;
|
|
62
|
+
errorCode?: undefined;
|
|
63
|
+
} | {
|
|
64
|
+
id: string;
|
|
65
|
+
organizationId: string;
|
|
66
|
+
agentId: string;
|
|
67
|
+
agentName: string;
|
|
68
|
+
userId: string;
|
|
69
|
+
input: {
|
|
70
|
+
message: string;
|
|
71
|
+
context?: undefined;
|
|
72
|
+
};
|
|
73
|
+
output: {
|
|
74
|
+
response: string;
|
|
75
|
+
};
|
|
76
|
+
status: "COMPLETED";
|
|
77
|
+
totalTokens: number;
|
|
78
|
+
promptTokens: number;
|
|
79
|
+
completionTokens: number;
|
|
80
|
+
totalIterations: number;
|
|
81
|
+
durationMs: number;
|
|
82
|
+
estimatedCostUsd: number;
|
|
83
|
+
queuedAt: Date;
|
|
84
|
+
startedAt: Date;
|
|
85
|
+
completedAt: Date;
|
|
86
|
+
steps: never[];
|
|
87
|
+
logs: never[];
|
|
88
|
+
sessionId?: undefined;
|
|
89
|
+
errorMessage?: undefined;
|
|
90
|
+
errorCode?: undefined;
|
|
91
|
+
} | {
|
|
92
|
+
id: string;
|
|
93
|
+
organizationId: string;
|
|
94
|
+
agentId: string;
|
|
95
|
+
agentName: string;
|
|
96
|
+
userId: string;
|
|
97
|
+
input: {
|
|
98
|
+
message: string;
|
|
99
|
+
context?: undefined;
|
|
100
|
+
};
|
|
101
|
+
status: "FAILED";
|
|
102
|
+
errorMessage: string;
|
|
103
|
+
errorCode: string;
|
|
104
|
+
totalTokens: number;
|
|
105
|
+
promptTokens: number;
|
|
106
|
+
completionTokens: number;
|
|
107
|
+
totalIterations: number;
|
|
108
|
+
durationMs: number;
|
|
109
|
+
queuedAt: Date;
|
|
110
|
+
startedAt: Date;
|
|
111
|
+
completedAt: Date;
|
|
112
|
+
steps: never[];
|
|
113
|
+
logs: never[];
|
|
114
|
+
sessionId?: undefined;
|
|
115
|
+
output?: undefined;
|
|
116
|
+
estimatedCostUsd?: undefined;
|
|
117
|
+
})[];
|
|
118
|
+
//#endregion
|
|
119
|
+
export { MOCK_RUNS };
|