@lssm/example.agent-console 0.0.0-canary-20251225052113 → 0.0.0-canary-20251225071908
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 +8 -8
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +18 -6
- package/README.md +3 -0
- package/dist/agent/agent.entity.d.ts +36 -36
- package/dist/agent/agent.entity.d.ts.map +1 -1
- package/dist/agent/agent.enum.d.ts +4 -4
- package/dist/agent/agent.event.d.ts +30 -30
- package/dist/agent/agent.operation.d.ts +115 -115
- package/dist/agent/agent.operation.d.ts.map +1 -1
- package/dist/agent/agent.operation.js.map +1 -1
- package/dist/run/run.operation.d.ts +174 -174
- package/dist/run/run.operation.d.ts.map +1 -1
- package/dist/run/run.operation.js.map +1 -1
- package/dist/run/run.schema.d.ts +99 -99
- package/dist/tool/tool.entity.d.ts +24 -24
- package/dist/tool/tool.enum.d.ts +4 -4
- package/dist/tool/tool.event.d.ts +24 -24
- package/dist/tool/tool.operation.d.ts +100 -100
- package/dist/tool/tool.operation.d.ts.map +1 -1
- package/dist/tool/tool.operation.js.map +1 -1
- package/dist/tool/tool.presentation.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/agent/agent.operation.ts +38 -7
- package/src/run/run.operation.ts +16 -2
- package/src/tool/tool.operation.ts +24 -4
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -65,7 +65,10 @@ export const CreateAgentCommand = defineCommand({
|
|
|
65
65
|
key: 'create-agent-happy-path',
|
|
66
66
|
given: ['User is authenticated', 'Organization exists'],
|
|
67
67
|
when: ['User submits valid agent configuration'],
|
|
68
|
-
then: [
|
|
68
|
+
then: [
|
|
69
|
+
'New agent is created with DRAFT status',
|
|
70
|
+
'AgentCreated event is emitted',
|
|
71
|
+
],
|
|
69
72
|
},
|
|
70
73
|
{
|
|
71
74
|
key: 'create-agent-slug-conflict',
|
|
@@ -77,8 +80,18 @@ export const CreateAgentCommand = defineCommand({
|
|
|
77
80
|
examples: [
|
|
78
81
|
{
|
|
79
82
|
key: 'basic-create',
|
|
80
|
-
input: {
|
|
81
|
-
|
|
83
|
+
input: {
|
|
84
|
+
name: 'Support Assistant',
|
|
85
|
+
slug: 'support-assistant',
|
|
86
|
+
modelProvider: 'openai',
|
|
87
|
+
modelId: 'gpt-4',
|
|
88
|
+
},
|
|
89
|
+
output: {
|
|
90
|
+
id: 'agent-123',
|
|
91
|
+
name: 'Support Assistant',
|
|
92
|
+
slug: 'support-assistant',
|
|
93
|
+
status: 'draft',
|
|
94
|
+
},
|
|
82
95
|
},
|
|
83
96
|
],
|
|
84
97
|
},
|
|
@@ -151,8 +164,17 @@ export const UpdateAgentCommand = defineCommand({
|
|
|
151
164
|
examples: [
|
|
152
165
|
{
|
|
153
166
|
key: 'update-name',
|
|
154
|
-
input: {
|
|
155
|
-
|
|
167
|
+
input: {
|
|
168
|
+
agentId: 'agent-123',
|
|
169
|
+
name: 'Updated Assistant',
|
|
170
|
+
systemPrompt: 'You are a helpful assistant.',
|
|
171
|
+
},
|
|
172
|
+
output: {
|
|
173
|
+
id: 'agent-123',
|
|
174
|
+
name: 'Updated Assistant',
|
|
175
|
+
status: 'draft',
|
|
176
|
+
updatedAt: '2025-01-01T00:00:00Z',
|
|
177
|
+
},
|
|
156
178
|
},
|
|
157
179
|
],
|
|
158
180
|
},
|
|
@@ -210,7 +232,12 @@ export const GetAgentQuery = defineQuery({
|
|
|
210
232
|
{
|
|
211
233
|
key: 'get-basic',
|
|
212
234
|
input: { agentId: 'agent-123', includeTools: false },
|
|
213
|
-
output: {
|
|
235
|
+
output: {
|
|
236
|
+
id: 'agent-123',
|
|
237
|
+
name: 'Support Assistant',
|
|
238
|
+
status: 'active',
|
|
239
|
+
tools: [],
|
|
240
|
+
},
|
|
214
241
|
},
|
|
215
242
|
],
|
|
216
243
|
},
|
|
@@ -353,7 +380,11 @@ export const AssignToolToAgentCommand = defineCommand({
|
|
|
353
380
|
{
|
|
354
381
|
key: 'assign-basic',
|
|
355
382
|
input: { agentId: 'agent-123', toolId: 'tool-456' },
|
|
356
|
-
output: {
|
|
383
|
+
output: {
|
|
384
|
+
agentToolId: 'at-789',
|
|
385
|
+
agentId: 'agent-123',
|
|
386
|
+
toolId: 'tool-456',
|
|
387
|
+
},
|
|
357
388
|
},
|
|
358
389
|
],
|
|
359
390
|
},
|
package/src/run/run.operation.ts
CHANGED
|
@@ -499,8 +499,22 @@ export const GetRunMetricsQuery = defineQuery({
|
|
|
499
499
|
examples: [
|
|
500
500
|
{
|
|
501
501
|
key: 'get-daily-metrics',
|
|
502
|
-
input: {
|
|
503
|
-
|
|
502
|
+
input: {
|
|
503
|
+
organizationId: 'org-123',
|
|
504
|
+
startDate: '2025-01-01',
|
|
505
|
+
endDate: '2025-01-31',
|
|
506
|
+
granularity: 'day',
|
|
507
|
+
},
|
|
508
|
+
output: {
|
|
509
|
+
totalRuns: 100,
|
|
510
|
+
completedRuns: 90,
|
|
511
|
+
failedRuns: 10,
|
|
512
|
+
totalTokens: 50000,
|
|
513
|
+
totalCostUsd: 5.0,
|
|
514
|
+
averageDurationMs: 2500,
|
|
515
|
+
successRate: 0.9,
|
|
516
|
+
timeline: [],
|
|
517
|
+
},
|
|
504
518
|
},
|
|
505
519
|
],
|
|
506
520
|
},
|
|
@@ -77,8 +77,18 @@ export const CreateToolCommand = defineCommand({
|
|
|
77
77
|
examples: [
|
|
78
78
|
{
|
|
79
79
|
key: 'create-api-tool',
|
|
80
|
-
input: {
|
|
81
|
-
|
|
80
|
+
input: {
|
|
81
|
+
name: 'Weather API',
|
|
82
|
+
slug: 'weather-api',
|
|
83
|
+
category: 'api',
|
|
84
|
+
description: 'Fetches weather data',
|
|
85
|
+
},
|
|
86
|
+
output: {
|
|
87
|
+
id: 'tool-123',
|
|
88
|
+
name: 'Weather API',
|
|
89
|
+
slug: 'weather-api',
|
|
90
|
+
status: 'draft',
|
|
91
|
+
},
|
|
82
92
|
},
|
|
83
93
|
],
|
|
84
94
|
},
|
|
@@ -146,7 +156,12 @@ export const UpdateToolCommand = defineCommand({
|
|
|
146
156
|
{
|
|
147
157
|
key: 'update-description',
|
|
148
158
|
input: { toolId: 'tool-123', description: 'Updated weather API tool' },
|
|
149
|
-
output: {
|
|
159
|
+
output: {
|
|
160
|
+
id: 'tool-123',
|
|
161
|
+
name: 'Weather API',
|
|
162
|
+
status: 'draft',
|
|
163
|
+
updatedAt: '2025-01-01T00:00:00Z',
|
|
164
|
+
},
|
|
150
165
|
},
|
|
151
166
|
],
|
|
152
167
|
},
|
|
@@ -197,7 +212,12 @@ export const GetToolQuery = defineQuery({
|
|
|
197
212
|
{
|
|
198
213
|
key: 'get-basic',
|
|
199
214
|
input: { toolId: 'tool-123' },
|
|
200
|
-
output: {
|
|
215
|
+
output: {
|
|
216
|
+
id: 'tool-123',
|
|
217
|
+
name: 'Weather API',
|
|
218
|
+
status: 'active',
|
|
219
|
+
category: 'api',
|
|
220
|
+
},
|
|
201
221
|
},
|
|
202
222
|
],
|
|
203
223
|
},
|