@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.
Files changed (100) hide show
  1. package/.turbo/turbo-build.log +38 -28
  2. package/CHANGELOG.md +6 -6
  3. package/dist/agent/agent.contracts.js +1 -0
  4. package/dist/{entities/agent.js → agent/agent.entity.js} +1 -1
  5. package/dist/agent/agent.enum.js +1 -0
  6. package/dist/agent/agent.event.js +1 -0
  7. package/dist/agent/agent.handler.js +1 -0
  8. package/dist/agent/agent.presentation.js +1 -0
  9. package/dist/agent/agent.schema.js +1 -0
  10. package/dist/agent/index.js +1 -0
  11. package/dist/handlers/index.js +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/presentations/index.js +1 -1
  14. package/dist/run/index.js +1 -0
  15. package/dist/run/run.contracts.js +1 -0
  16. package/dist/run/run.entity.js +1 -0
  17. package/dist/run/run.enum.js +1 -0
  18. package/dist/run/run.event.js +1 -0
  19. package/dist/run/run.handler.js +1 -0
  20. package/dist/run/run.presentation.js +1 -0
  21. package/dist/run/run.schema.js +1 -0
  22. package/dist/shared/index.js +1 -0
  23. package/dist/shared/mock-agents.js +1 -0
  24. package/dist/shared/mock-runs.js +1 -0
  25. package/dist/shared/mock-tools.js +1 -0
  26. package/dist/tool/index.js +1 -0
  27. package/dist/tool/tool.contracts.js +1 -0
  28. package/dist/tool/tool.entity.js +1 -0
  29. package/dist/tool/tool.enum.js +1 -0
  30. package/dist/tool/tool.event.js +1 -0
  31. package/dist/tool/tool.handler.js +1 -0
  32. package/dist/tool/tool.presentation.js +1 -0
  33. package/dist/tool/tool.schema.js +1 -0
  34. package/package.json +59 -39
  35. package/src/agent/agent.contracts.ts +275 -0
  36. package/src/agent/agent.entity.ts +84 -0
  37. package/src/agent/agent.enum.ts +31 -0
  38. package/src/agent/agent.event.ts +109 -0
  39. package/src/{handlers/agent.handlers.ts → agent/agent.handler.ts} +23 -78
  40. package/src/{presentations/agent-list.ts → agent/agent.presentation.ts} +26 -14
  41. package/src/agent/agent.schema.ts +147 -0
  42. package/src/agent/index.ts +65 -0
  43. package/src/handlers/index.ts +17 -44
  44. package/src/index.ts +6 -15
  45. package/src/presentations/index.ts +13 -34
  46. package/src/run/index.ts +65 -0
  47. package/src/run/run.contracts.ts +266 -0
  48. package/src/run/run.entity.ts +126 -0
  49. package/src/run/run.enum.ts +45 -0
  50. package/src/run/run.event.ts +211 -0
  51. package/src/run/run.handler.ts +103 -0
  52. package/src/run/run.presentation.ts +47 -0
  53. package/src/run/run.schema.ts +139 -0
  54. package/src/shared/index.ts +6 -0
  55. package/src/shared/mock-agents.ts +83 -0
  56. package/src/shared/mock-runs.ts +108 -0
  57. package/src/shared/mock-tools.ts +146 -0
  58. package/src/tool/index.ts +35 -0
  59. package/src/tool/tool.contracts.ts +180 -0
  60. package/src/tool/tool.entity.ts +66 -0
  61. package/src/tool/tool.enum.ts +34 -0
  62. package/src/tool/tool.event.ts +84 -0
  63. package/src/tool/tool.handler.ts +107 -0
  64. package/src/{presentations/tool-registry.ts → tool/tool.presentation.ts} +12 -17
  65. package/src/tool/tool.schema.ts +134 -0
  66. package/tsconfig.tsbuildinfo +1 -1
  67. package/dist/contracts/agent.js +0 -1
  68. package/dist/contracts/index.js +0 -1
  69. package/dist/contracts/run.js +0 -1
  70. package/dist/contracts/tool.js +0 -1
  71. package/dist/entities/index.js +0 -1
  72. package/dist/entities/log.js +0 -1
  73. package/dist/entities/run.js +0 -1
  74. package/dist/entities/tool.js +0 -1
  75. package/dist/events.js +0 -1
  76. package/dist/handlers/agent.handlers.js +0 -1
  77. package/dist/handlers/mock-data.js +0 -1
  78. package/dist/handlers/run.handlers.js +0 -1
  79. package/dist/handlers/tool.handlers.js +0 -1
  80. package/dist/presentations/agent-list.js +0 -1
  81. package/dist/presentations/dashboard.js +0 -1
  82. package/dist/presentations/run-list.js +0 -1
  83. package/dist/presentations/tool-registry.js +0 -1
  84. package/src/contracts/agent.ts +0 -501
  85. package/src/contracts/index.ts +0 -29
  86. package/src/contracts/run.ts +0 -561
  87. package/src/contracts/tool.ts +0 -392
  88. package/src/entities/agent.ts +0 -151
  89. package/src/entities/index.ts +0 -20
  90. package/src/entities/log.ts +0 -76
  91. package/src/entities/run.ts +0 -240
  92. package/src/entities/tool.ts +0 -105
  93. package/src/events.ts +0 -419
  94. package/src/handlers/mock-data.ts +0 -413
  95. package/src/handlers/run.handlers.ts +0 -331
  96. package/src/handlers/tool.handlers.ts +0 -188
  97. package/src/presentations/dashboard.ts +0 -29
  98. package/src/presentations/run-list.ts +0 -76
  99. /package/dist/{feature.js → agent.feature.js} +0 -0
  100. /package/src/{feature.ts → agent.feature.ts} +0 -0
@@ -1,501 +0,0 @@
1
- import { defineCommand, defineQuery } from '@lssm/lib.contracts/spec';
2
- import {
3
- defineSchemaModel,
4
- ScalarTypeEnum,
5
- defineEnum,
6
- } from '@lssm/lib.schema';
7
-
8
- const OWNERS = ['agent-console-team'] as const;
9
-
10
- // ============ Enums ============
11
-
12
- export const AgentStatusEnum = defineEnum('AgentStatus', [
13
- 'DRAFT',
14
- 'ACTIVE',
15
- 'PAUSED',
16
- 'ARCHIVED',
17
- ]);
18
- export const ModelProviderEnum = defineEnum('ModelProvider', [
19
- 'OPENAI',
20
- 'ANTHROPIC',
21
- 'GOOGLE',
22
- 'MISTRAL',
23
- 'CUSTOM',
24
- ]);
25
- export const ToolChoiceEnum = defineEnum('ToolChoice', [
26
- 'auto',
27
- 'required',
28
- 'none',
29
- ]);
30
-
31
- // ============ Schemas ============
32
-
33
- export const AgentModel = defineSchemaModel({
34
- name: 'Agent',
35
- description: 'AI agent configuration',
36
- fields: {
37
- id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
38
- organizationId: {
39
- type: ScalarTypeEnum.String_unsecure(),
40
- isOptional: false,
41
- },
42
- name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
43
- slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
44
- description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
45
- status: { type: AgentStatusEnum, isOptional: false },
46
- modelProvider: { type: ModelProviderEnum, isOptional: false },
47
- modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
48
- modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
49
- systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
50
- userPromptTemplate: {
51
- type: ScalarTypeEnum.String_unsecure(),
52
- isOptional: true,
53
- },
54
- toolIds: {
55
- type: ScalarTypeEnum.String_unsecure(),
56
- isArray: true,
57
- isOptional: true,
58
- },
59
- toolChoice: {
60
- type: ToolChoiceEnum,
61
- isOptional: false,
62
- defaultValue: 'auto',
63
- },
64
- maxIterations: {
65
- type: ScalarTypeEnum.Int_unsecure(),
66
- isOptional: false,
67
- defaultValue: 10,
68
- },
69
- maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
70
- timeoutMs: {
71
- type: ScalarTypeEnum.Int_unsecure(),
72
- isOptional: false,
73
- defaultValue: 120000,
74
- },
75
- version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
76
- tags: {
77
- type: ScalarTypeEnum.String_unsecure(),
78
- isArray: true,
79
- isOptional: true,
80
- },
81
- createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
82
- updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
83
- },
84
- });
85
-
86
- export const AgentSummaryModel = defineSchemaModel({
87
- name: 'AgentSummary',
88
- description: 'Summary of an agent for list views',
89
- fields: {
90
- id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
91
- name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
92
- slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
93
- description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
94
- status: { type: AgentStatusEnum, isOptional: false },
95
- modelProvider: { type: ModelProviderEnum, isOptional: false },
96
- modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
97
- version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
98
- createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
99
- },
100
- });
101
-
102
- export const AgentToolRefModel = defineSchemaModel({
103
- name: 'AgentToolRef',
104
- description: 'Tool reference in agent context',
105
- fields: {
106
- id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
107
- name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
108
- slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
109
- description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
110
- category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
111
- },
112
- });
113
-
114
- export const AgentWithToolsModel = defineSchemaModel({
115
- name: 'AgentWithTools',
116
- description: 'Agent with associated tools',
117
- fields: {
118
- id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
119
- organizationId: {
120
- type: ScalarTypeEnum.String_unsecure(),
121
- isOptional: false,
122
- },
123
- name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
124
- slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
125
- description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
126
- status: { type: AgentStatusEnum, isOptional: false },
127
- modelProvider: { type: ModelProviderEnum, isOptional: false },
128
- modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
129
- modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
130
- systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
131
- userPromptTemplate: {
132
- type: ScalarTypeEnum.String_unsecure(),
133
- isOptional: true,
134
- },
135
- toolIds: {
136
- type: ScalarTypeEnum.String_unsecure(),
137
- isArray: true,
138
- isOptional: true,
139
- },
140
- toolChoice: { type: ToolChoiceEnum, isOptional: false },
141
- maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
142
- maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
143
- timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
144
- version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
145
- tags: {
146
- type: ScalarTypeEnum.String_unsecure(),
147
- isArray: true,
148
- isOptional: true,
149
- },
150
- createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
151
- updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
152
- tools: { type: AgentToolRefModel, isArray: true, isOptional: true },
153
- },
154
- });
155
-
156
- export const CreateAgentInputModel = defineSchemaModel({
157
- name: 'CreateAgentInput',
158
- description: 'Input for creating an agent',
159
- fields: {
160
- organizationId: {
161
- type: ScalarTypeEnum.String_unsecure(),
162
- isOptional: false,
163
- },
164
- name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
165
- slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
166
- description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
167
- modelProvider: { type: ModelProviderEnum, isOptional: false },
168
- modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
169
- modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
170
- systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
171
- userPromptTemplate: {
172
- type: ScalarTypeEnum.String_unsecure(),
173
- isOptional: true,
174
- },
175
- toolIds: {
176
- type: ScalarTypeEnum.String_unsecure(),
177
- isArray: true,
178
- isOptional: true,
179
- },
180
- toolChoice: { type: ToolChoiceEnum, isOptional: true },
181
- maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
182
- maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
183
- timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
184
- tags: {
185
- type: ScalarTypeEnum.String_unsecure(),
186
- isArray: true,
187
- isOptional: true,
188
- },
189
- },
190
- });
191
-
192
- export const UpdateAgentInputModel = defineSchemaModel({
193
- name: 'UpdateAgentInput',
194
- description: 'Input for updating an agent',
195
- fields: {
196
- agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
197
- name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },
198
- description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
199
- status: { type: AgentStatusEnum, isOptional: true },
200
- modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
201
- systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
202
- userPromptTemplate: {
203
- type: ScalarTypeEnum.String_unsecure(),
204
- isOptional: true,
205
- },
206
- toolIds: {
207
- type: ScalarTypeEnum.String_unsecure(),
208
- isArray: true,
209
- isOptional: true,
210
- },
211
- toolChoice: { type: ToolChoiceEnum, isOptional: true },
212
- maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
213
- maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
214
- timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
215
- tags: {
216
- type: ScalarTypeEnum.String_unsecure(),
217
- isArray: true,
218
- isOptional: true,
219
- },
220
- },
221
- });
222
-
223
- // ============ Contracts ============
224
-
225
- /**
226
- * CreateAgentCommand - Creates a new agent configuration
227
- */
228
- export const CreateAgentCommand = defineCommand({
229
- meta: {
230
- name: 'agent.agent.create',
231
- version: 1,
232
- stability: 'stable',
233
- owners: [...OWNERS],
234
- tags: ['agent', 'create'],
235
- description: 'Creates a new AI agent configuration.',
236
- goal: 'Allow users to define new AI agents with specific models and tools.',
237
- context: 'Called from the agent builder UI when creating a new agent.',
238
- },
239
- io: {
240
- input: CreateAgentInputModel,
241
- output: defineSchemaModel({
242
- name: 'CreateAgentOutput',
243
- fields: {
244
- id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
245
- name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
246
- slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
247
- status: { type: AgentStatusEnum, isOptional: false },
248
- },
249
- }),
250
- errors: {
251
- SLUG_EXISTS: {
252
- description:
253
- 'An agent with this slug already exists in the organization',
254
- http: 409,
255
- gqlCode: 'SLUG_EXISTS',
256
- when: 'Slug is already taken',
257
- },
258
- },
259
- },
260
- policy: {
261
- auth: 'user',
262
- },
263
- sideEffects: {
264
- emits: [
265
- {
266
- name: 'agent.created',
267
- version: 1,
268
- when: 'Agent is successfully created',
269
- payload: AgentSummaryModel,
270
- },
271
- ],
272
- audit: ['agent.created'],
273
- },
274
- });
275
-
276
- /**
277
- * UpdateAgentCommand - Updates an existing agent
278
- */
279
- export const UpdateAgentCommand = defineCommand({
280
- meta: {
281
- name: 'agent.agent.update',
282
- version: 1,
283
- stability: 'stable',
284
- owners: [...OWNERS],
285
- tags: ['agent', 'update'],
286
- description: 'Updates an existing AI agent configuration.',
287
- goal: 'Allow users to modify agent settings and configuration.',
288
- context: 'Called from the agent settings UI.',
289
- },
290
- io: {
291
- input: UpdateAgentInputModel,
292
- output: defineSchemaModel({
293
- name: 'UpdateAgentOutput',
294
- fields: {
295
- id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
296
- name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
297
- status: { type: AgentStatusEnum, isOptional: false },
298
- updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
299
- },
300
- }),
301
- errors: {
302
- AGENT_NOT_FOUND: {
303
- description: 'The specified agent does not exist',
304
- http: 404,
305
- gqlCode: 'AGENT_NOT_FOUND',
306
- when: 'Agent ID is invalid',
307
- },
308
- },
309
- },
310
- policy: {
311
- auth: 'user',
312
- },
313
- sideEffects: {
314
- emits: [
315
- {
316
- name: 'agent.updated',
317
- version: 1,
318
- when: 'Agent is updated',
319
- payload: AgentSummaryModel,
320
- },
321
- ],
322
- audit: ['agent.updated'],
323
- },
324
- });
325
-
326
- /**
327
- * GetAgentQuery - Retrieves an agent by ID
328
- */
329
- export const GetAgentQuery = defineQuery({
330
- meta: {
331
- name: 'agent.agent.get',
332
- version: 1,
333
- stability: 'stable',
334
- owners: [...OWNERS],
335
- tags: ['agent', 'get'],
336
- description: 'Retrieves an agent by its ID.',
337
- goal: 'View detailed agent configuration.',
338
- context: 'Called when viewing agent details or editing.',
339
- },
340
- io: {
341
- input: defineSchemaModel({
342
- name: 'GetAgentInput',
343
- fields: {
344
- agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
345
- includeTools: { type: ScalarTypeEnum.Boolean(), isOptional: true },
346
- },
347
- }),
348
- output: AgentWithToolsModel,
349
- errors: {
350
- AGENT_NOT_FOUND: {
351
- description: 'The specified agent does not exist',
352
- http: 404,
353
- gqlCode: 'AGENT_NOT_FOUND',
354
- when: 'Agent ID is invalid',
355
- },
356
- },
357
- },
358
- policy: {
359
- auth: 'user',
360
- },
361
- });
362
-
363
- /**
364
- * ListAgentsQuery - Lists agents for an organization
365
- */
366
- export const ListAgentsQuery = defineQuery({
367
- meta: {
368
- name: 'agent.agent.list',
369
- version: 1,
370
- stability: 'stable',
371
- owners: [...OWNERS],
372
- tags: ['agent', 'list'],
373
- description: 'Lists agents for an organization with optional filtering.',
374
- goal: 'Browse and search available agents.',
375
- context: 'Agent list/dashboard view.',
376
- },
377
- io: {
378
- input: defineSchemaModel({
379
- name: 'ListAgentsInput',
380
- fields: {
381
- organizationId: {
382
- type: ScalarTypeEnum.String_unsecure(),
383
- isOptional: false,
384
- },
385
- status: { type: AgentStatusEnum, isOptional: true },
386
- modelProvider: { type: ModelProviderEnum, isOptional: true },
387
- search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
388
- limit: {
389
- type: ScalarTypeEnum.Int_unsecure(),
390
- isOptional: true,
391
- defaultValue: 20,
392
- },
393
- offset: {
394
- type: ScalarTypeEnum.Int_unsecure(),
395
- isOptional: true,
396
- defaultValue: 0,
397
- },
398
- },
399
- }),
400
- output: defineSchemaModel({
401
- name: 'ListAgentsOutput',
402
- fields: {
403
- items: { type: AgentSummaryModel, isArray: true, isOptional: false },
404
- total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
405
- hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },
406
- },
407
- }),
408
- },
409
- policy: {
410
- auth: 'user',
411
- },
412
- });
413
-
414
- /**
415
- * AssignToolToAgentCommand - Assigns a tool to an agent
416
- */
417
- export const AssignToolToAgentCommand = defineCommand({
418
- meta: {
419
- name: 'agent.agent.assignTool',
420
- version: 1,
421
- stability: 'stable',
422
- owners: [...OWNERS],
423
- tags: ['agent', 'tool', 'assign'],
424
- description: 'Assigns a tool to an agent with optional configuration.',
425
- goal: 'Enable agents to use specific tools.',
426
- context: 'Agent configuration UI - tool selection.',
427
- },
428
- io: {
429
- input: defineSchemaModel({
430
- name: 'AssignToolToAgentInput',
431
- fields: {
432
- agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
433
- toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
434
- config: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
435
- order: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
436
- },
437
- }),
438
- output: defineSchemaModel({
439
- name: 'AssignToolToAgentOutput',
440
- fields: {
441
- agentToolId: {
442
- type: ScalarTypeEnum.String_unsecure(),
443
- isOptional: false,
444
- },
445
- agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
446
- toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
447
- },
448
- }),
449
- errors: {
450
- TOOL_ALREADY_ASSIGNED: {
451
- description: 'This tool is already assigned to the agent',
452
- http: 409,
453
- gqlCode: 'TOOL_ALREADY_ASSIGNED',
454
- when: 'Tool assignment already exists',
455
- },
456
- },
457
- },
458
- policy: {
459
- auth: 'user',
460
- },
461
- sideEffects: {
462
- audit: ['agent.tool.assigned'],
463
- },
464
- });
465
-
466
- /**
467
- * RemoveToolFromAgentCommand - Removes a tool from an agent
468
- */
469
- export const RemoveToolFromAgentCommand = defineCommand({
470
- meta: {
471
- name: 'agent.agent.removeTool',
472
- version: 1,
473
- stability: 'stable',
474
- owners: [...OWNERS],
475
- tags: ['agent', 'tool', 'remove'],
476
- description: 'Removes a tool assignment from an agent.',
477
- goal: 'Disable specific tools for an agent.',
478
- context: 'Agent configuration UI - tool management.',
479
- },
480
- io: {
481
- input: defineSchemaModel({
482
- name: 'RemoveToolFromAgentInput',
483
- fields: {
484
- agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
485
- toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
486
- },
487
- }),
488
- output: defineSchemaModel({
489
- name: 'RemoveToolFromAgentOutput',
490
- fields: {
491
- success: { type: ScalarTypeEnum.Boolean(), isOptional: false },
492
- },
493
- }),
494
- },
495
- policy: {
496
- auth: 'user',
497
- },
498
- sideEffects: {
499
- audit: ['agent.tool.removed'],
500
- },
501
- });
@@ -1,29 +0,0 @@
1
- // Tool contracts
2
- export {
3
- CreateToolCommand,
4
- UpdateToolCommand,
5
- GetToolQuery,
6
- ListToolsQuery,
7
- TestToolCommand,
8
- } from './tool';
9
-
10
- // Agent contracts
11
- export {
12
- CreateAgentCommand,
13
- UpdateAgentCommand,
14
- GetAgentQuery,
15
- ListAgentsQuery,
16
- AssignToolToAgentCommand,
17
- RemoveToolFromAgentCommand,
18
- } from './agent';
19
-
20
- // Run contracts
21
- export {
22
- ExecuteAgentCommand,
23
- CancelRunCommand,
24
- GetRunQuery,
25
- ListRunsQuery,
26
- GetRunStepsQuery,
27
- GetRunLogsQuery,
28
- GetRunMetricsQuery,
29
- } from './run';