@lssm/example.agent-console 0.0.0-canary-20251215234340 → 0.0.0-canary-20251216024228
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.log +38 -28
- package/CHANGELOG.md +6 -6
- package/dist/agent/agent.contracts.js +1 -0
- package/dist/{entities/agent.js → agent/agent.entity.js} +1 -1
- package/dist/agent/agent.enum.js +1 -0
- package/dist/agent/agent.event.js +1 -0
- package/dist/agent/agent.handler.js +1 -0
- package/dist/agent/agent.presentation.js +1 -0
- package/dist/agent/agent.schema.js +1 -0
- package/dist/agent/index.js +1 -0
- package/dist/handlers/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/presentations/index.js +1 -1
- package/dist/run/index.js +1 -0
- package/dist/run/run.contracts.js +1 -0
- package/dist/run/run.entity.js +1 -0
- package/dist/run/run.enum.js +1 -0
- package/dist/run/run.event.js +1 -0
- package/dist/run/run.handler.js +1 -0
- package/dist/run/run.presentation.js +1 -0
- package/dist/run/run.schema.js +1 -0
- package/dist/shared/index.js +1 -0
- package/dist/shared/mock-agents.js +1 -0
- package/dist/shared/mock-runs.js +1 -0
- package/dist/shared/mock-tools.js +1 -0
- package/dist/tool/index.js +1 -0
- package/dist/tool/tool.contracts.js +1 -0
- package/dist/tool/tool.entity.js +1 -0
- package/dist/tool/tool.enum.js +1 -0
- package/dist/tool/tool.event.js +1 -0
- package/dist/tool/tool.handler.js +1 -0
- package/dist/tool/tool.presentation.js +1 -0
- package/dist/tool/tool.schema.js +1 -0
- package/package.json +59 -39
- package/src/agent/agent.contracts.ts +275 -0
- package/src/agent/agent.entity.ts +84 -0
- package/src/agent/agent.enum.ts +31 -0
- package/src/agent/agent.event.ts +109 -0
- package/src/{handlers/agent.handlers.ts → agent/agent.handler.ts} +23 -78
- package/src/{presentations/agent-list.ts → agent/agent.presentation.ts} +26 -14
- package/src/agent/agent.schema.ts +147 -0
- package/src/agent/index.ts +65 -0
- package/src/handlers/index.ts +17 -44
- package/src/index.ts +6 -15
- package/src/presentations/index.ts +13 -34
- package/src/run/index.ts +65 -0
- package/src/run/run.contracts.ts +266 -0
- package/src/run/run.entity.ts +126 -0
- package/src/run/run.enum.ts +45 -0
- package/src/run/run.event.ts +211 -0
- package/src/run/run.handler.ts +103 -0
- package/src/run/run.presentation.ts +47 -0
- package/src/run/run.schema.ts +139 -0
- package/src/shared/index.ts +6 -0
- package/src/shared/mock-agents.ts +83 -0
- package/src/shared/mock-runs.ts +108 -0
- package/src/shared/mock-tools.ts +146 -0
- package/src/tool/index.ts +35 -0
- package/src/tool/tool.contracts.ts +180 -0
- package/src/tool/tool.entity.ts +66 -0
- package/src/tool/tool.enum.ts +34 -0
- package/src/tool/tool.event.ts +84 -0
- package/src/tool/tool.handler.ts +107 -0
- package/src/{presentations/tool-registry.ts → tool/tool.presentation.ts} +12 -17
- package/src/tool/tool.schema.ts +134 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/contracts/agent.js +0 -1
- package/dist/contracts/index.js +0 -1
- package/dist/contracts/run.js +0 -1
- package/dist/contracts/tool.js +0 -1
- package/dist/entities/index.js +0 -1
- package/dist/entities/log.js +0 -1
- package/dist/entities/run.js +0 -1
- package/dist/entities/tool.js +0 -1
- package/dist/events.js +0 -1
- package/dist/handlers/agent.handlers.js +0 -1
- package/dist/handlers/mock-data.js +0 -1
- package/dist/handlers/run.handlers.js +0 -1
- package/dist/handlers/tool.handlers.js +0 -1
- package/dist/presentations/agent-list.js +0 -1
- package/dist/presentations/dashboard.js +0 -1
- package/dist/presentations/run-list.js +0 -1
- package/dist/presentations/tool-registry.js +0 -1
- package/src/contracts/agent.ts +0 -501
- package/src/contracts/index.ts +0 -29
- package/src/contracts/run.ts +0 -561
- package/src/contracts/tool.ts +0 -392
- package/src/entities/agent.ts +0 -151
- package/src/entities/index.ts +0 -20
- package/src/entities/log.ts +0 -76
- package/src/entities/run.ts +0 -240
- package/src/entities/tool.ts +0 -105
- package/src/events.ts +0 -419
- package/src/handlers/mock-data.ts +0 -413
- package/src/handlers/run.handlers.ts +0 -331
- package/src/handlers/tool.handlers.ts +0 -188
- package/src/presentations/dashboard.ts +0 -29
- package/src/presentations/run-list.ts +0 -76
- /package/dist/{feature.js → agent.feature.js} +0 -0
- /package/src/{feature.ts → agent.feature.ts} +0 -0
|
@@ -1,413 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mock data for agent-console handlers
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// ============ Agent Mock Data ============
|
|
6
|
-
|
|
7
|
-
export const MOCK_AGENTS = [
|
|
8
|
-
{
|
|
9
|
-
id: 'agent-1',
|
|
10
|
-
organizationId: 'demo-org',
|
|
11
|
-
name: 'Customer Support Bot',
|
|
12
|
-
slug: 'customer-support-bot',
|
|
13
|
-
description: 'Handles tier-1 customer inquiries and routes complex issues.',
|
|
14
|
-
status: 'ACTIVE' as const,
|
|
15
|
-
modelProvider: 'OPENAI' as const,
|
|
16
|
-
modelName: 'gpt-4o-mini',
|
|
17
|
-
modelConfig: { temperature: 0.7 },
|
|
18
|
-
systemPrompt: 'You are a helpful customer support assistant.',
|
|
19
|
-
toolChoice: 'auto' as const,
|
|
20
|
-
maxIterations: 10,
|
|
21
|
-
timeoutMs: 120000,
|
|
22
|
-
version: '1.0.0',
|
|
23
|
-
tags: ['support', 'tier-1'],
|
|
24
|
-
createdAt: new Date('2024-01-15T10:00:00Z'),
|
|
25
|
-
updatedAt: new Date('2024-03-20T14:30:00Z'),
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: 'agent-2',
|
|
29
|
-
organizationId: 'demo-org',
|
|
30
|
-
name: 'Code Review Assistant',
|
|
31
|
-
slug: 'code-review-assistant',
|
|
32
|
-
description: 'Reviews pull requests and provides actionable feedback.',
|
|
33
|
-
status: 'ACTIVE' as const,
|
|
34
|
-
modelProvider: 'ANTHROPIC' as const,
|
|
35
|
-
modelName: 'claude-sonnet-4-20250514',
|
|
36
|
-
modelConfig: { temperature: 0.3 },
|
|
37
|
-
systemPrompt: 'You are a code review expert.',
|
|
38
|
-
toolChoice: 'auto' as const,
|
|
39
|
-
maxIterations: 15,
|
|
40
|
-
timeoutMs: 180000,
|
|
41
|
-
version: '2.1.0',
|
|
42
|
-
tags: ['code', 'review', 'dev'],
|
|
43
|
-
createdAt: new Date('2024-02-10T09:00:00Z'),
|
|
44
|
-
updatedAt: new Date('2024-04-05T11:15:00Z'),
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
id: 'agent-3',
|
|
48
|
-
organizationId: 'demo-org',
|
|
49
|
-
name: 'Data Analyst',
|
|
50
|
-
slug: 'data-analyst',
|
|
51
|
-
description: 'Queries databases and generates insights from data.',
|
|
52
|
-
status: 'PAUSED' as const,
|
|
53
|
-
modelProvider: 'OPENAI' as const,
|
|
54
|
-
modelName: 'gpt-4o',
|
|
55
|
-
modelConfig: { temperature: 0.5 },
|
|
56
|
-
systemPrompt: 'You are a data analyst expert in SQL and analytics.',
|
|
57
|
-
toolChoice: 'required' as const,
|
|
58
|
-
maxIterations: 20,
|
|
59
|
-
timeoutMs: 300000,
|
|
60
|
-
version: '1.2.0',
|
|
61
|
-
tags: ['data', 'analytics', 'sql'],
|
|
62
|
-
createdAt: new Date('2024-03-01T08:00:00Z'),
|
|
63
|
-
updatedAt: new Date('2024-04-10T16:45:00Z'),
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
id: 'agent-4',
|
|
67
|
-
organizationId: 'demo-org',
|
|
68
|
-
name: 'Meeting Scheduler',
|
|
69
|
-
slug: 'meeting-scheduler',
|
|
70
|
-
description: 'Schedules meetings and manages calendar conflicts.',
|
|
71
|
-
status: 'DRAFT' as const,
|
|
72
|
-
modelProvider: 'GOOGLE' as const,
|
|
73
|
-
modelName: 'gemini-2.0-flash',
|
|
74
|
-
modelConfig: { temperature: 0.2 },
|
|
75
|
-
systemPrompt: 'You help schedule and organize meetings efficiently.',
|
|
76
|
-
toolChoice: 'auto' as const,
|
|
77
|
-
maxIterations: 5,
|
|
78
|
-
timeoutMs: 60000,
|
|
79
|
-
version: '0.1.0',
|
|
80
|
-
tags: ['calendar', 'scheduling'],
|
|
81
|
-
createdAt: new Date('2024-04-01T12:00:00Z'),
|
|
82
|
-
updatedAt: new Date('2024-04-01T12:00:00Z'),
|
|
83
|
-
},
|
|
84
|
-
];
|
|
85
|
-
|
|
86
|
-
// ============ Tool Mock Data ============
|
|
87
|
-
|
|
88
|
-
export const MOCK_TOOLS = [
|
|
89
|
-
{
|
|
90
|
-
id: 'tool-1',
|
|
91
|
-
organizationId: 'demo-org',
|
|
92
|
-
name: 'Web Search',
|
|
93
|
-
slug: 'web-search',
|
|
94
|
-
description: 'Search the web for real-time information using Brave API.',
|
|
95
|
-
category: 'RETRIEVAL' as const,
|
|
96
|
-
status: 'ACTIVE' as const,
|
|
97
|
-
parametersSchema: {
|
|
98
|
-
type: 'object',
|
|
99
|
-
properties: {
|
|
100
|
-
query: { type: 'string', description: 'Search query' },
|
|
101
|
-
numResults: { type: 'number', default: 10 },
|
|
102
|
-
},
|
|
103
|
-
required: ['query'],
|
|
104
|
-
},
|
|
105
|
-
outputSchema: { type: 'array', items: { type: 'object' } },
|
|
106
|
-
implementationType: 'http' as const,
|
|
107
|
-
implementationConfig: {
|
|
108
|
-
url: 'https://api.brave.com/search',
|
|
109
|
-
method: 'GET',
|
|
110
|
-
},
|
|
111
|
-
maxInvocationsPerMinute: 60,
|
|
112
|
-
timeoutMs: 30000,
|
|
113
|
-
version: '1.0.0',
|
|
114
|
-
tags: ['search', 'web'],
|
|
115
|
-
createdAt: new Date('2024-01-01T00:00:00Z'),
|
|
116
|
-
updatedAt: new Date('2024-02-15T10:00:00Z'),
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
id: 'tool-2',
|
|
120
|
-
organizationId: 'demo-org',
|
|
121
|
-
name: 'SQL Query',
|
|
122
|
-
slug: 'sql-query',
|
|
123
|
-
description: 'Execute read-only SQL queries against the data warehouse.',
|
|
124
|
-
category: 'RETRIEVAL' as const,
|
|
125
|
-
status: 'ACTIVE' as const,
|
|
126
|
-
parametersSchema: {
|
|
127
|
-
type: 'object',
|
|
128
|
-
properties: {
|
|
129
|
-
query: { type: 'string', description: 'SQL query' },
|
|
130
|
-
maxRows: { type: 'number', default: 100 },
|
|
131
|
-
},
|
|
132
|
-
required: ['query'],
|
|
133
|
-
},
|
|
134
|
-
outputSchema: { type: 'object' },
|
|
135
|
-
implementationType: 'function' as const,
|
|
136
|
-
implementationConfig: { handler: 'executeSqlQuery' },
|
|
137
|
-
maxInvocationsPerMinute: 30,
|
|
138
|
-
timeoutMs: 60000,
|
|
139
|
-
version: '1.1.0',
|
|
140
|
-
tags: ['sql', 'database'],
|
|
141
|
-
createdAt: new Date('2024-01-05T00:00:00Z'),
|
|
142
|
-
updatedAt: new Date('2024-03-10T14:00:00Z'),
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
id: 'tool-3',
|
|
146
|
-
organizationId: 'demo-org',
|
|
147
|
-
name: 'Email Sender',
|
|
148
|
-
slug: 'email-sender',
|
|
149
|
-
description: 'Send emails via SMTP or API.',
|
|
150
|
-
category: 'COMMUNICATION' as const,
|
|
151
|
-
status: 'ACTIVE' as const,
|
|
152
|
-
parametersSchema: {
|
|
153
|
-
type: 'object',
|
|
154
|
-
properties: {
|
|
155
|
-
to: { type: 'string' },
|
|
156
|
-
subject: { type: 'string' },
|
|
157
|
-
body: { type: 'string' },
|
|
158
|
-
},
|
|
159
|
-
required: ['to', 'subject', 'body'],
|
|
160
|
-
},
|
|
161
|
-
implementationType: 'http' as const,
|
|
162
|
-
implementationConfig: { url: '/api/send-email', method: 'POST' },
|
|
163
|
-
maxInvocationsPerMinute: 10,
|
|
164
|
-
timeoutMs: 30000,
|
|
165
|
-
version: '1.0.0',
|
|
166
|
-
tags: ['email', 'communication'],
|
|
167
|
-
createdAt: new Date('2024-02-01T00:00:00Z'),
|
|
168
|
-
updatedAt: new Date('2024-02-01T00:00:00Z'),
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
id: 'tool-4',
|
|
172
|
-
organizationId: 'demo-org',
|
|
173
|
-
name: 'GitHub Integration',
|
|
174
|
-
slug: 'github-integration',
|
|
175
|
-
description: 'Interact with GitHub repositories, PRs, and issues.',
|
|
176
|
-
category: 'INTEGRATION' as const,
|
|
177
|
-
status: 'ACTIVE' as const,
|
|
178
|
-
parametersSchema: {
|
|
179
|
-
type: 'object',
|
|
180
|
-
properties: {
|
|
181
|
-
action: {
|
|
182
|
-
type: 'string',
|
|
183
|
-
enum: ['list_prs', 'get_pr', 'create_comment'],
|
|
184
|
-
},
|
|
185
|
-
repo: { type: 'string' },
|
|
186
|
-
params: { type: 'object' },
|
|
187
|
-
},
|
|
188
|
-
required: ['action', 'repo'],
|
|
189
|
-
},
|
|
190
|
-
implementationType: 'http' as const,
|
|
191
|
-
implementationConfig: { url: 'https://api.github.com', auth: 'token' },
|
|
192
|
-
maxInvocationsPerMinute: 100,
|
|
193
|
-
timeoutMs: 15000,
|
|
194
|
-
version: '2.0.0',
|
|
195
|
-
tags: ['github', 'integration', 'code'],
|
|
196
|
-
createdAt: new Date('2024-02-20T00:00:00Z'),
|
|
197
|
-
updatedAt: new Date('2024-04-01T09:00:00Z'),
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
id: 'tool-5',
|
|
201
|
-
organizationId: 'demo-org',
|
|
202
|
-
name: 'Calculator',
|
|
203
|
-
slug: 'calculator',
|
|
204
|
-
description: 'Perform mathematical calculations.',
|
|
205
|
-
category: 'COMPUTATION' as const,
|
|
206
|
-
status: 'ACTIVE' as const,
|
|
207
|
-
parametersSchema: {
|
|
208
|
-
type: 'object',
|
|
209
|
-
properties: {
|
|
210
|
-
expression: {
|
|
211
|
-
type: 'string',
|
|
212
|
-
description: 'Math expression to evaluate',
|
|
213
|
-
},
|
|
214
|
-
},
|
|
215
|
-
required: ['expression'],
|
|
216
|
-
},
|
|
217
|
-
outputSchema: {
|
|
218
|
-
type: 'object',
|
|
219
|
-
properties: { result: { type: 'number' } },
|
|
220
|
-
},
|
|
221
|
-
implementationType: 'function' as const,
|
|
222
|
-
implementationConfig: { handler: 'evaluateMath' },
|
|
223
|
-
timeoutMs: 5000,
|
|
224
|
-
version: '1.0.0',
|
|
225
|
-
tags: ['math', 'utility'],
|
|
226
|
-
createdAt: new Date('2024-01-10T00:00:00Z'),
|
|
227
|
-
updatedAt: new Date('2024-01-10T00:00:00Z'),
|
|
228
|
-
},
|
|
229
|
-
];
|
|
230
|
-
|
|
231
|
-
// ============ Run Mock Data ============
|
|
232
|
-
|
|
233
|
-
export const MOCK_RUNS = [
|
|
234
|
-
{
|
|
235
|
-
id: 'run-1',
|
|
236
|
-
organizationId: 'demo-org',
|
|
237
|
-
agentId: 'agent-1',
|
|
238
|
-
agentName: 'Customer Support Bot',
|
|
239
|
-
userId: 'user-1',
|
|
240
|
-
sessionId: 'session-1',
|
|
241
|
-
input: { message: 'How do I reset my password?', context: {} },
|
|
242
|
-
output: { response: 'You can reset your password by clicking...' },
|
|
243
|
-
status: 'COMPLETED' as const,
|
|
244
|
-
totalTokens: 1250,
|
|
245
|
-
promptTokens: 800,
|
|
246
|
-
completionTokens: 450,
|
|
247
|
-
totalIterations: 3,
|
|
248
|
-
durationMs: 4500,
|
|
249
|
-
estimatedCostUsd: 0.0025,
|
|
250
|
-
queuedAt: new Date('2024-04-15T10:00:00Z'),
|
|
251
|
-
startedAt: new Date('2024-04-15T10:00:01Z'),
|
|
252
|
-
completedAt: new Date('2024-04-15T10:00:05Z'),
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
id: 'run-2',
|
|
256
|
-
organizationId: 'demo-org',
|
|
257
|
-
agentId: 'agent-2',
|
|
258
|
-
agentName: 'Code Review Assistant',
|
|
259
|
-
userId: 'user-2',
|
|
260
|
-
input: { message: 'Review PR #123', context: { prNumber: 123 } },
|
|
261
|
-
status: 'IN_PROGRESS' as const,
|
|
262
|
-
totalTokens: 3500,
|
|
263
|
-
promptTokens: 3000,
|
|
264
|
-
completionTokens: 500,
|
|
265
|
-
totalIterations: 5,
|
|
266
|
-
queuedAt: new Date('2024-04-15T10:30:00Z'),
|
|
267
|
-
startedAt: new Date('2024-04-15T10:30:02Z'),
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
id: 'run-3',
|
|
271
|
-
organizationId: 'demo-org',
|
|
272
|
-
agentId: 'agent-1',
|
|
273
|
-
agentName: 'Customer Support Bot',
|
|
274
|
-
userId: 'user-1',
|
|
275
|
-
input: { message: 'What are your business hours?' },
|
|
276
|
-
output: { response: 'Our business hours are 9 AM to 5 PM EST...' },
|
|
277
|
-
status: 'COMPLETED' as const,
|
|
278
|
-
totalTokens: 800,
|
|
279
|
-
promptTokens: 500,
|
|
280
|
-
completionTokens: 300,
|
|
281
|
-
totalIterations: 2,
|
|
282
|
-
durationMs: 2100,
|
|
283
|
-
estimatedCostUsd: 0.0012,
|
|
284
|
-
queuedAt: new Date('2024-04-15T09:00:00Z'),
|
|
285
|
-
startedAt: new Date('2024-04-15T09:00:01Z'),
|
|
286
|
-
completedAt: new Date('2024-04-15T09:00:03Z'),
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
id: 'run-4',
|
|
290
|
-
organizationId: 'demo-org',
|
|
291
|
-
agentId: 'agent-3',
|
|
292
|
-
agentName: 'Data Analyst',
|
|
293
|
-
userId: 'user-3',
|
|
294
|
-
input: { message: 'Generate sales report for Q1' },
|
|
295
|
-
status: 'FAILED' as const,
|
|
296
|
-
errorMessage: 'Database connection timeout',
|
|
297
|
-
errorCode: 'DB_TIMEOUT',
|
|
298
|
-
totalTokens: 2000,
|
|
299
|
-
promptTokens: 1500,
|
|
300
|
-
completionTokens: 500,
|
|
301
|
-
totalIterations: 8,
|
|
302
|
-
durationMs: 45000,
|
|
303
|
-
queuedAt: new Date('2024-04-14T15:00:00Z'),
|
|
304
|
-
startedAt: new Date('2024-04-14T15:00:05Z'),
|
|
305
|
-
completedAt: new Date('2024-04-14T15:00:50Z'),
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
id: 'run-5',
|
|
309
|
-
organizationId: 'demo-org',
|
|
310
|
-
agentId: 'agent-2',
|
|
311
|
-
agentName: 'Code Review Assistant',
|
|
312
|
-
userId: 'user-2',
|
|
313
|
-
input: { message: 'Review PR #120' },
|
|
314
|
-
output: { response: 'Code review complete. 3 suggestions...' },
|
|
315
|
-
status: 'COMPLETED' as const,
|
|
316
|
-
totalTokens: 5200,
|
|
317
|
-
promptTokens: 4000,
|
|
318
|
-
completionTokens: 1200,
|
|
319
|
-
totalIterations: 7,
|
|
320
|
-
durationMs: 15000,
|
|
321
|
-
estimatedCostUsd: 0.0156,
|
|
322
|
-
queuedAt: new Date('2024-04-14T11:00:00Z'),
|
|
323
|
-
startedAt: new Date('2024-04-14T11:00:03Z'),
|
|
324
|
-
completedAt: new Date('2024-04-14T11:00:18Z'),
|
|
325
|
-
},
|
|
326
|
-
];
|
|
327
|
-
|
|
328
|
-
// ============ Run Steps Mock Data ============
|
|
329
|
-
|
|
330
|
-
export const MOCK_RUN_STEPS = [
|
|
331
|
-
{
|
|
332
|
-
id: 'step-1',
|
|
333
|
-
runId: 'run-1',
|
|
334
|
-
stepNumber: 1,
|
|
335
|
-
type: 'MESSAGE_CREATION' as const,
|
|
336
|
-
input: { message: 'How do I reset my password?' },
|
|
337
|
-
output: { parsed: true },
|
|
338
|
-
status: 'COMPLETED' as const,
|
|
339
|
-
tokensUsed: 200,
|
|
340
|
-
durationMs: 500,
|
|
341
|
-
startedAt: new Date('2024-04-15T10:00:01Z'),
|
|
342
|
-
completedAt: new Date('2024-04-15T10:00:01Z'),
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
id: 'step-2',
|
|
346
|
-
runId: 'run-1',
|
|
347
|
-
stepNumber: 2,
|
|
348
|
-
type: 'TOOL_CALL' as const,
|
|
349
|
-
toolId: 'tool-1',
|
|
350
|
-
toolName: 'Web Search',
|
|
351
|
-
input: { query: 'password reset documentation' },
|
|
352
|
-
output: { results: [] },
|
|
353
|
-
status: 'COMPLETED' as const,
|
|
354
|
-
tokensUsed: 500,
|
|
355
|
-
durationMs: 2000,
|
|
356
|
-
startedAt: new Date('2024-04-15T10:00:02Z'),
|
|
357
|
-
completedAt: new Date('2024-04-15T10:00:04Z'),
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
id: 'step-3',
|
|
361
|
-
runId: 'run-1',
|
|
362
|
-
stepNumber: 3,
|
|
363
|
-
type: 'MESSAGE_CREATION' as const,
|
|
364
|
-
output: { response: 'You can reset your password by clicking...' },
|
|
365
|
-
status: 'COMPLETED' as const,
|
|
366
|
-
tokensUsed: 550,
|
|
367
|
-
durationMs: 2000,
|
|
368
|
-
startedAt: new Date('2024-04-15T10:00:04Z'),
|
|
369
|
-
completedAt: new Date('2024-04-15T10:00:05Z'),
|
|
370
|
-
},
|
|
371
|
-
];
|
|
372
|
-
|
|
373
|
-
// ============ Run Logs Mock Data ============
|
|
374
|
-
|
|
375
|
-
export const MOCK_RUN_LOGS = [
|
|
376
|
-
{
|
|
377
|
-
id: 'log-1',
|
|
378
|
-
runId: 'run-1',
|
|
379
|
-
stepId: 'step-1',
|
|
380
|
-
level: 'INFO' as const,
|
|
381
|
-
message: 'Run started',
|
|
382
|
-
timestamp: new Date('2024-04-15T10:00:01Z'),
|
|
383
|
-
source: 'orchestrator',
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
id: 'log-2',
|
|
387
|
-
runId: 'run-1',
|
|
388
|
-
stepId: 'step-2',
|
|
389
|
-
level: 'DEBUG' as const,
|
|
390
|
-
message: 'Calling tool: Web Search',
|
|
391
|
-
data: { toolId: 'tool-1' },
|
|
392
|
-
timestamp: new Date('2024-04-15T10:00:02Z'),
|
|
393
|
-
source: 'tool-executor',
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
id: 'log-3',
|
|
397
|
-
runId: 'run-1',
|
|
398
|
-
stepId: 'step-2',
|
|
399
|
-
level: 'INFO' as const,
|
|
400
|
-
message: 'Tool execution completed',
|
|
401
|
-
data: { duration: 2000 },
|
|
402
|
-
timestamp: new Date('2024-04-15T10:00:04Z'),
|
|
403
|
-
source: 'tool-executor',
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
id: 'log-4',
|
|
407
|
-
runId: 'run-1',
|
|
408
|
-
level: 'INFO' as const,
|
|
409
|
-
message: 'Run completed successfully',
|
|
410
|
-
timestamp: new Date('2024-04-15T10:00:05Z'),
|
|
411
|
-
source: 'orchestrator',
|
|
412
|
-
},
|
|
413
|
-
];
|