@contractspec/example.agent-console 1.44.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/.turbo/turbo-build$colon$bundle.log +133 -0
- package/.turbo/turbo-build.log +134 -0
- package/CHANGELOG.md +212 -0
- package/LICENSE +21 -0
- package/README.md +86 -0
- package/dist/agent/agent.entity.d.ts +55 -0
- package/dist/agent/agent.entity.d.ts.map +1 -0
- package/dist/agent/agent.entity.js +136 -0
- package/dist/agent/agent.entity.js.map +1 -0
- package/dist/agent/agent.enum.d.ts +18 -0
- package/dist/agent/agent.enum.d.ts.map +1 -0
- package/dist/agent/agent.enum.js +34 -0
- package/dist/agent/agent.enum.js.map +1 -0
- package/dist/agent/agent.event.d.ts +128 -0
- package/dist/agent/agent.event.d.ts.map +1 -0
- package/dist/agent/agent.event.js +210 -0
- package/dist/agent/agent.event.js.map +1 -0
- package/dist/agent/agent.handler.d.ts +100 -0
- package/dist/agent/agent.handler.d.ts.map +1 -0
- package/dist/agent/agent.handler.js +84 -0
- package/dist/agent/agent.handler.js.map +1 -0
- package/dist/agent/agent.operation.d.ts +471 -0
- package/dist/agent/agent.operation.d.ts.map +1 -0
- package/dist/agent/agent.operation.js +486 -0
- package/dist/agent/agent.operation.js.map +1 -0
- package/dist/agent/agent.presentation.d.ts +19 -0
- package/dist/agent/agent.presentation.d.ts.map +1 -0
- package/dist/agent/agent.presentation.js +89 -0
- package/dist/agent/agent.presentation.js.map +1 -0
- package/dist/agent/agent.schema.d.ts +401 -0
- package/dist/agent/agent.schema.d.ts.map +1 -0
- package/dist/agent/agent.schema.js +406 -0
- package/dist/agent/agent.schema.js.map +1 -0
- package/dist/agent/index.d.ts +8 -0
- package/dist/agent/index.js +9 -0
- package/dist/agent.feature.d.ts +12 -0
- package/dist/agent.feature.d.ts.map +1 -0
- package/dist/agent.feature.js +303 -0
- package/dist/agent.feature.js.map +1 -0
- package/dist/docs/agent-console.docblock.d.ts +1 -0
- package/dist/docs/agent-console.docblock.js +113 -0
- package/dist/docs/agent-console.docblock.js.map +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/index.js +1 -0
- package/dist/example.d.ts +40 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +51 -0
- package/dist/example.js.map +1 -0
- package/dist/handlers/index.d.ts +4 -0
- package/dist/handlers/index.js +5 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +32 -0
- package/dist/presentations/index.d.ts +4 -0
- package/dist/presentations/index.js +5 -0
- package/dist/run/index.d.ts +8 -0
- package/dist/run/index.js +9 -0
- package/dist/run/run.entity.d.ts +82 -0
- package/dist/run/run.entity.d.ts.map +1 -0
- package/dist/run/run.entity.js +205 -0
- package/dist/run/run.entity.js.map +1 -0
- package/dist/run/run.enum.d.ts +22 -0
- package/dist/run/run.enum.d.ts.map +1 -0
- package/dist/run/run.enum.js +45 -0
- package/dist/run/run.enum.js.map +1 -0
- package/dist/run/run.event.d.ts +290 -0
- package/dist/run/run.event.d.ts.map +1 -0
- package/dist/run/run.event.js +434 -0
- package/dist/run/run.event.js.map +1 -0
- package/dist/run/run.handler.d.ts +203 -0
- package/dist/run/run.handler.d.ts.map +1 -0
- package/dist/run/run.handler.js +83 -0
- package/dist/run/run.handler.js.map +1 -0
- package/dist/run/run.operation.d.ts +720 -0
- package/dist/run/run.operation.d.ts.map +1 -0
- package/dist/run/run.operation.js +626 -0
- package/dist/run/run.operation.js.map +1 -0
- package/dist/run/run.presentation.d.ts +15 -0
- package/dist/run/run.presentation.d.ts.map +1 -0
- package/dist/run/run.presentation.js +65 -0
- package/dist/run/run.presentation.js.map +1 -0
- package/dist/run/run.schema.d.ts +416 -0
- package/dist/run/run.schema.d.ts.map +1 -0
- package/dist/run/run.schema.js +338 -0
- package/dist/run/run.schema.js.map +1 -0
- package/dist/shared/index.d.ts +4 -0
- package/dist/shared/index.js +5 -0
- package/dist/shared/mock-agents.d.ts +88 -0
- package/dist/shared/mock-agents.d.ts.map +1 -0
- package/dist/shared/mock-agents.js +94 -0
- package/dist/shared/mock-agents.js.map +1 -0
- package/dist/shared/mock-runs.d.ts +120 -0
- package/dist/shared/mock-runs.d.ts.map +1 -0
- package/dist/shared/mock-runs.js +118 -0
- package/dist/shared/mock-runs.js.map +1 -0
- package/dist/shared/mock-tools.d.ts +244 -0
- package/dist/shared/mock-tools.d.ts.map +1 -0
- package/dist/shared/mock-tools.js +181 -0
- package/dist/shared/mock-tools.js.map +1 -0
- package/dist/tool/index.d.ts +8 -0
- package/dist/tool/index.js +9 -0
- package/dist/tool/tool.entity.d.ts +42 -0
- package/dist/tool/tool.entity.d.ts.map +1 -0
- package/dist/tool/tool.entity.js +105 -0
- package/dist/tool/tool.entity.js.map +1 -0
- package/dist/tool/tool.enum.d.ts +18 -0
- package/dist/tool/tool.enum.d.ts.map +1 -0
- package/dist/tool/tool.enum.js +35 -0
- package/dist/tool/tool.enum.js.map +1 -0
- package/dist/tool/tool.event.d.ts +103 -0
- package/dist/tool/tool.event.d.ts.map +1 -0
- package/dist/tool/tool.event.js +159 -0
- package/dist/tool/tool.event.js.map +1 -0
- package/dist/tool/tool.handler.d.ts +315 -0
- package/dist/tool/tool.handler.d.ts.map +1 -0
- package/dist/tool/tool.handler.js +87 -0
- package/dist/tool/tool.handler.js.map +1 -0
- package/dist/tool/tool.operation.d.ts +411 -0
- package/dist/tool/tool.operation.d.ts.map +1 -0
- package/dist/tool/tool.operation.js +406 -0
- package/dist/tool/tool.operation.js.map +1 -0
- package/dist/tool/tool.presentation.d.ts +15 -0
- package/dist/tool/tool.presentation.d.ts.map +1 -0
- package/dist/tool/tool.presentation.js +65 -0
- package/dist/tool/tool.presentation.js.map +1 -0
- package/dist/tool/tool.schema.d.ts +218 -0
- package/dist/tool/tool.schema.d.ts.map +1 -0
- package/dist/tool/tool.schema.js +236 -0
- package/dist/tool/tool.schema.js.map +1 -0
- package/example.ts +1 -0
- package/package.json +123 -0
- package/src/agent/agent.entity.ts +137 -0
- package/src/agent/agent.enum.ts +31 -0
- package/src/agent/agent.event.ts +142 -0
- package/src/agent/agent.handler.ts +178 -0
- package/src/agent/agent.operation.ts +444 -0
- package/src/agent/agent.presentation.ts +81 -0
- package/src/agent/agent.schema.ts +214 -0
- package/src/agent/index.ts +67 -0
- package/src/agent.feature.ts +146 -0
- package/src/docs/agent-console.docblock.ts +97 -0
- package/src/docs/index.ts +1 -0
- package/src/example.ts +34 -0
- package/src/handlers/index.ts +27 -0
- package/src/index.ts +27 -0
- package/src/presentations/index.ts +26 -0
- package/src/run/index.ts +68 -0
- package/src/run/run.entity.ts +175 -0
- package/src/run/run.enum.ts +43 -0
- package/src/run/run.event.ts +264 -0
- package/src/run/run.handler.ts +138 -0
- package/src/run/run.operation.ts +524 -0
- package/src/run/run.presentation.ts +55 -0
- package/src/run/run.schema.ts +169 -0
- package/src/shared/index.ts +6 -0
- package/src/shared/mock-agents.ts +81 -0
- package/src/shared/mock-runs.ts +107 -0
- package/src/shared/mock-tools.ts +145 -0
- package/src/tool/index.ts +60 -0
- package/src/tool/tool.entity.ts +99 -0
- package/src/tool/tool.enum.ts +32 -0
- package/src/tool/tool.event.ts +119 -0
- package/src/tool/tool.handler.ts +154 -0
- package/src/tool/tool.operation.ts +366 -0
- package/src/tool/tool.presentation.ts +56 -0
- package/src/tool/tool.schema.ts +133 -0
- package/tsconfig.json +10 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/tsdown.config.js +7 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from "./agent.enum.js";
|
|
2
|
+
import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
|
|
3
|
+
|
|
4
|
+
//#region src/agent/agent.schema.ts
|
|
5
|
+
/**
|
|
6
|
+
* AI agent configuration schema.
|
|
7
|
+
*/
|
|
8
|
+
const AgentModel = defineSchemaModel({
|
|
9
|
+
name: "Agent",
|
|
10
|
+
description: "AI agent configuration",
|
|
11
|
+
fields: {
|
|
12
|
+
id: {
|
|
13
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
14
|
+
isOptional: false
|
|
15
|
+
},
|
|
16
|
+
organizationId: {
|
|
17
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
18
|
+
isOptional: false
|
|
19
|
+
},
|
|
20
|
+
name: {
|
|
21
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
22
|
+
isOptional: false
|
|
23
|
+
},
|
|
24
|
+
slug: {
|
|
25
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
26
|
+
isOptional: false
|
|
27
|
+
},
|
|
28
|
+
description: {
|
|
29
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
30
|
+
isOptional: true
|
|
31
|
+
},
|
|
32
|
+
status: {
|
|
33
|
+
type: AgentStatusEnum,
|
|
34
|
+
isOptional: false
|
|
35
|
+
},
|
|
36
|
+
modelProvider: {
|
|
37
|
+
type: ModelProviderEnum,
|
|
38
|
+
isOptional: false
|
|
39
|
+
},
|
|
40
|
+
modelName: {
|
|
41
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
42
|
+
isOptional: false
|
|
43
|
+
},
|
|
44
|
+
modelConfig: {
|
|
45
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
46
|
+
isOptional: true
|
|
47
|
+
},
|
|
48
|
+
systemPrompt: {
|
|
49
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
50
|
+
isOptional: false
|
|
51
|
+
},
|
|
52
|
+
userPromptTemplate: {
|
|
53
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
54
|
+
isOptional: true
|
|
55
|
+
},
|
|
56
|
+
toolIds: {
|
|
57
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
58
|
+
isArray: true,
|
|
59
|
+
isOptional: true
|
|
60
|
+
},
|
|
61
|
+
toolChoice: {
|
|
62
|
+
type: ToolChoiceEnum,
|
|
63
|
+
isOptional: false,
|
|
64
|
+
defaultValue: "auto"
|
|
65
|
+
},
|
|
66
|
+
maxIterations: {
|
|
67
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
68
|
+
isOptional: false,
|
|
69
|
+
defaultValue: 10
|
|
70
|
+
},
|
|
71
|
+
maxTokensPerRun: {
|
|
72
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
73
|
+
isOptional: true
|
|
74
|
+
},
|
|
75
|
+
timeoutMs: {
|
|
76
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
77
|
+
isOptional: false,
|
|
78
|
+
defaultValue: 12e4
|
|
79
|
+
},
|
|
80
|
+
version: {
|
|
81
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
82
|
+
isOptional: false
|
|
83
|
+
},
|
|
84
|
+
tags: {
|
|
85
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
86
|
+
isArray: true,
|
|
87
|
+
isOptional: true
|
|
88
|
+
},
|
|
89
|
+
createdAt: {
|
|
90
|
+
type: ScalarTypeEnum.DateTime(),
|
|
91
|
+
isOptional: false
|
|
92
|
+
},
|
|
93
|
+
updatedAt: {
|
|
94
|
+
type: ScalarTypeEnum.DateTime(),
|
|
95
|
+
isOptional: false
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* Summary of an agent for list views.
|
|
101
|
+
*/
|
|
102
|
+
const AgentSummaryModel = defineSchemaModel({
|
|
103
|
+
name: "AgentSummary",
|
|
104
|
+
description: "Summary of an agent for list views",
|
|
105
|
+
fields: {
|
|
106
|
+
id: {
|
|
107
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
108
|
+
isOptional: false
|
|
109
|
+
},
|
|
110
|
+
name: {
|
|
111
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
112
|
+
isOptional: false
|
|
113
|
+
},
|
|
114
|
+
slug: {
|
|
115
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
116
|
+
isOptional: false
|
|
117
|
+
},
|
|
118
|
+
description: {
|
|
119
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
120
|
+
isOptional: true
|
|
121
|
+
},
|
|
122
|
+
status: {
|
|
123
|
+
type: AgentStatusEnum,
|
|
124
|
+
isOptional: false
|
|
125
|
+
},
|
|
126
|
+
modelProvider: {
|
|
127
|
+
type: ModelProviderEnum,
|
|
128
|
+
isOptional: false
|
|
129
|
+
},
|
|
130
|
+
modelName: {
|
|
131
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
132
|
+
isOptional: false
|
|
133
|
+
},
|
|
134
|
+
version: {
|
|
135
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
136
|
+
isOptional: false
|
|
137
|
+
},
|
|
138
|
+
createdAt: {
|
|
139
|
+
type: ScalarTypeEnum.DateTime(),
|
|
140
|
+
isOptional: false
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
/**
|
|
145
|
+
* Tool reference in agent context.
|
|
146
|
+
*/
|
|
147
|
+
const AgentToolRefModel = defineSchemaModel({
|
|
148
|
+
name: "AgentToolRef",
|
|
149
|
+
description: "Tool reference in agent context",
|
|
150
|
+
fields: {
|
|
151
|
+
id: {
|
|
152
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
153
|
+
isOptional: false
|
|
154
|
+
},
|
|
155
|
+
name: {
|
|
156
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
157
|
+
isOptional: false
|
|
158
|
+
},
|
|
159
|
+
slug: {
|
|
160
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
161
|
+
isOptional: false
|
|
162
|
+
},
|
|
163
|
+
description: {
|
|
164
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
165
|
+
isOptional: false
|
|
166
|
+
},
|
|
167
|
+
category: {
|
|
168
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
169
|
+
isOptional: false
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
/**
|
|
174
|
+
* Agent with associated tools.
|
|
175
|
+
*/
|
|
176
|
+
const AgentWithToolsModel = defineSchemaModel({
|
|
177
|
+
name: "AgentWithTools",
|
|
178
|
+
description: "Agent with associated tools",
|
|
179
|
+
fields: {
|
|
180
|
+
id: {
|
|
181
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
182
|
+
isOptional: false
|
|
183
|
+
},
|
|
184
|
+
organizationId: {
|
|
185
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
186
|
+
isOptional: false
|
|
187
|
+
},
|
|
188
|
+
name: {
|
|
189
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
190
|
+
isOptional: false
|
|
191
|
+
},
|
|
192
|
+
slug: {
|
|
193
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
194
|
+
isOptional: false
|
|
195
|
+
},
|
|
196
|
+
description: {
|
|
197
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
198
|
+
isOptional: true
|
|
199
|
+
},
|
|
200
|
+
status: {
|
|
201
|
+
type: AgentStatusEnum,
|
|
202
|
+
isOptional: false
|
|
203
|
+
},
|
|
204
|
+
modelProvider: {
|
|
205
|
+
type: ModelProviderEnum,
|
|
206
|
+
isOptional: false
|
|
207
|
+
},
|
|
208
|
+
modelName: {
|
|
209
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
210
|
+
isOptional: false
|
|
211
|
+
},
|
|
212
|
+
modelConfig: {
|
|
213
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
214
|
+
isOptional: true
|
|
215
|
+
},
|
|
216
|
+
systemPrompt: {
|
|
217
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
218
|
+
isOptional: false
|
|
219
|
+
},
|
|
220
|
+
userPromptTemplate: {
|
|
221
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
222
|
+
isOptional: true
|
|
223
|
+
},
|
|
224
|
+
toolIds: {
|
|
225
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
226
|
+
isArray: true,
|
|
227
|
+
isOptional: true
|
|
228
|
+
},
|
|
229
|
+
toolChoice: {
|
|
230
|
+
type: ToolChoiceEnum,
|
|
231
|
+
isOptional: false
|
|
232
|
+
},
|
|
233
|
+
maxIterations: {
|
|
234
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
235
|
+
isOptional: false
|
|
236
|
+
},
|
|
237
|
+
maxTokensPerRun: {
|
|
238
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
239
|
+
isOptional: true
|
|
240
|
+
},
|
|
241
|
+
timeoutMs: {
|
|
242
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
243
|
+
isOptional: false
|
|
244
|
+
},
|
|
245
|
+
version: {
|
|
246
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
247
|
+
isOptional: false
|
|
248
|
+
},
|
|
249
|
+
tags: {
|
|
250
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
251
|
+
isArray: true,
|
|
252
|
+
isOptional: true
|
|
253
|
+
},
|
|
254
|
+
createdAt: {
|
|
255
|
+
type: ScalarTypeEnum.DateTime(),
|
|
256
|
+
isOptional: false
|
|
257
|
+
},
|
|
258
|
+
updatedAt: {
|
|
259
|
+
type: ScalarTypeEnum.DateTime(),
|
|
260
|
+
isOptional: false
|
|
261
|
+
},
|
|
262
|
+
tools: {
|
|
263
|
+
type: AgentToolRefModel,
|
|
264
|
+
isArray: true,
|
|
265
|
+
isOptional: true
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
/**
|
|
270
|
+
* Input for creating an agent.
|
|
271
|
+
*/
|
|
272
|
+
const CreateAgentInputModel = defineSchemaModel({
|
|
273
|
+
name: "CreateAgentInput",
|
|
274
|
+
description: "Input for creating an agent",
|
|
275
|
+
fields: {
|
|
276
|
+
organizationId: {
|
|
277
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
278
|
+
isOptional: false
|
|
279
|
+
},
|
|
280
|
+
name: {
|
|
281
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
282
|
+
isOptional: false
|
|
283
|
+
},
|
|
284
|
+
slug: {
|
|
285
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
286
|
+
isOptional: false
|
|
287
|
+
},
|
|
288
|
+
description: {
|
|
289
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
290
|
+
isOptional: true
|
|
291
|
+
},
|
|
292
|
+
modelProvider: {
|
|
293
|
+
type: ModelProviderEnum,
|
|
294
|
+
isOptional: false
|
|
295
|
+
},
|
|
296
|
+
modelName: {
|
|
297
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
298
|
+
isOptional: false
|
|
299
|
+
},
|
|
300
|
+
modelConfig: {
|
|
301
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
302
|
+
isOptional: true
|
|
303
|
+
},
|
|
304
|
+
systemPrompt: {
|
|
305
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
306
|
+
isOptional: false
|
|
307
|
+
},
|
|
308
|
+
userPromptTemplate: {
|
|
309
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
310
|
+
isOptional: true
|
|
311
|
+
},
|
|
312
|
+
toolIds: {
|
|
313
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
314
|
+
isArray: true,
|
|
315
|
+
isOptional: true
|
|
316
|
+
},
|
|
317
|
+
toolChoice: {
|
|
318
|
+
type: ToolChoiceEnum,
|
|
319
|
+
isOptional: true
|
|
320
|
+
},
|
|
321
|
+
maxIterations: {
|
|
322
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
323
|
+
isOptional: true
|
|
324
|
+
},
|
|
325
|
+
maxTokensPerRun: {
|
|
326
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
327
|
+
isOptional: true
|
|
328
|
+
},
|
|
329
|
+
timeoutMs: {
|
|
330
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
331
|
+
isOptional: true
|
|
332
|
+
},
|
|
333
|
+
tags: {
|
|
334
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
335
|
+
isArray: true,
|
|
336
|
+
isOptional: true
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
/**
|
|
341
|
+
* Input for updating an agent.
|
|
342
|
+
*/
|
|
343
|
+
const UpdateAgentInputModel = defineSchemaModel({
|
|
344
|
+
name: "UpdateAgentInput",
|
|
345
|
+
description: "Input for updating an agent",
|
|
346
|
+
fields: {
|
|
347
|
+
agentId: {
|
|
348
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
349
|
+
isOptional: false
|
|
350
|
+
},
|
|
351
|
+
name: {
|
|
352
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
353
|
+
isOptional: true
|
|
354
|
+
},
|
|
355
|
+
description: {
|
|
356
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
357
|
+
isOptional: true
|
|
358
|
+
},
|
|
359
|
+
status: {
|
|
360
|
+
type: AgentStatusEnum,
|
|
361
|
+
isOptional: true
|
|
362
|
+
},
|
|
363
|
+
modelConfig: {
|
|
364
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
365
|
+
isOptional: true
|
|
366
|
+
},
|
|
367
|
+
systemPrompt: {
|
|
368
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
369
|
+
isOptional: true
|
|
370
|
+
},
|
|
371
|
+
userPromptTemplate: {
|
|
372
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
373
|
+
isOptional: true
|
|
374
|
+
},
|
|
375
|
+
toolIds: {
|
|
376
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
377
|
+
isArray: true,
|
|
378
|
+
isOptional: true
|
|
379
|
+
},
|
|
380
|
+
toolChoice: {
|
|
381
|
+
type: ToolChoiceEnum,
|
|
382
|
+
isOptional: true
|
|
383
|
+
},
|
|
384
|
+
maxIterations: {
|
|
385
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
386
|
+
isOptional: true
|
|
387
|
+
},
|
|
388
|
+
maxTokensPerRun: {
|
|
389
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
390
|
+
isOptional: true
|
|
391
|
+
},
|
|
392
|
+
timeoutMs: {
|
|
393
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
394
|
+
isOptional: true
|
|
395
|
+
},
|
|
396
|
+
tags: {
|
|
397
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
398
|
+
isArray: true,
|
|
399
|
+
isOptional: true
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
|
|
404
|
+
//#endregion
|
|
405
|
+
export { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel };
|
|
406
|
+
//# sourceMappingURL=agent.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.schema.js","names":[],"sources":["../../src/agent/agent.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';\nimport {\n AgentStatusEnum,\n ModelProviderEnum,\n ToolChoiceEnum,\n} from './agent.enum';\n\n/**\n * AI agent configuration schema.\n */\nexport const AgentModel = defineSchemaModel({\n name: 'Agent',\n description: 'AI agent configuration',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: {\n type: ToolChoiceEnum,\n isOptional: false,\n defaultValue: 'auto',\n },\n maxIterations: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 10,\n },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n defaultValue: 120000,\n },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Summary of an agent for list views.\n */\nexport const AgentSummaryModel = defineSchemaModel({\n name: 'AgentSummary',\n description: 'Summary of an agent for list views',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\n/**\n * Tool reference in agent context.\n */\nexport const AgentToolRefModel = defineSchemaModel({\n name: 'AgentToolRef',\n description: 'Tool reference in agent context',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\n/**\n * Agent with associated tools.\n */\nexport const AgentWithToolsModel = defineSchemaModel({\n name: 'AgentWithTools',\n description: 'Agent with associated tools',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: false },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: false },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n version: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n tools: { type: AgentToolRefModel, isArray: true, isOptional: true },\n },\n});\n\n/**\n * Input for creating an agent.\n */\nexport const CreateAgentInputModel = defineSchemaModel({\n name: 'CreateAgentInput',\n description: 'Input for creating an agent',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n modelProvider: { type: ModelProviderEnum, isOptional: false },\n modelName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: true },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n\n/**\n * Input for updating an agent.\n */\nexport const UpdateAgentInputModel = defineSchemaModel({\n name: 'UpdateAgentInput',\n description: 'Input for updating an agent',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: true },\n description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n status: { type: AgentStatusEnum, isOptional: true },\n modelConfig: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n systemPrompt: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n userPromptTemplate: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n toolIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n toolChoice: { type: ToolChoiceEnum, isOptional: true },\n maxIterations: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n maxTokensPerRun: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n timeoutMs: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n tags: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: true,\n },\n },\n});\n"],"mappings":";;;;;;;AAUA,MAAa,aAAa,kBAAkB;CAC1C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,gBAAgB;GACd,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,MAAM;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EAClE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACzE,QAAQ;GAAE,MAAM;GAAiB,YAAY;GAAO;EACpD,eAAe;GAAE,MAAM;GAAmB,YAAY;GAAO;EAC7D,WAAW;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EACvE,aAAa;GAAE,MAAM,eAAe,YAAY;GAAE,YAAY;GAAM;EACpE,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,oBAAoB;GAClB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GACP,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,YAAY;GACV,MAAM;GACN,YAAY;GACZ,cAAc;GACf;EACD,eAAe;GACb,MAAM,eAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACD,iBAAiB;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EAC1E,WAAW;GACT,MAAM,eAAe,cAAc;GACnC,YAAY;GACZ,cAAc;GACf;EACD,SAAS;GAAE,MAAM,eAAe,gBAAgB;GAAE,YAAY;GAAO;EACrE,MAAM;GACJ,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACD,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EACj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YAAY;GAAM;EACtD,eAAe;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EACxE,iBAAiB;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EAC1E,WAAW;GAAE,MAAM,eAAe,cAAc;GAAE,YAAY;GAAM;EACpE,MAAM;GACJ,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AgentEntity, AgentStatusEntityEnum, AgentToolEntity, ModelProviderEntityEnum } from "./agent.entity.js";
|
|
2
|
+
import { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from "./agent.enum.js";
|
|
3
|
+
import { AgentCreatedEvent, AgentToolAssignedEvent, AgentToolRemovedEvent, AgentUpdatedEvent } from "./agent.event.js";
|
|
4
|
+
import { AgentSummary, AgentToolRef, AgentWithTools, GetAgentInput, ListAgentsInput, ListAgentsOutput, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, mockUpdateAgentHandler } from "./agent.handler.js";
|
|
5
|
+
import { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand } from "./agent.operation.js";
|
|
6
|
+
import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "./agent.presentation.js";
|
|
7
|
+
import { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel } from "./agent.schema.js";
|
|
8
|
+
export { AgentConsoleDashboardPresentation, AgentCreatedEvent, AgentDetailPresentation, AgentEntity, AgentListPresentation, AgentModel, AgentStatusEntityEnum, AgentStatusEnum, type AgentSummary, AgentSummaryModel, AgentToolAssignedEvent, AgentToolEntity, type AgentToolRef, AgentToolRefModel, AgentToolRemovedEvent, AgentUpdatedEvent, type AgentWithTools, AgentWithToolsModel, AssignToolToAgentCommand, CreateAgentCommand, CreateAgentInputModel, type GetAgentInput, GetAgentQuery, type ListAgentsInput, type ListAgentsOutput, ListAgentsQuery, ModelProviderEntityEnum, ModelProviderEnum, RemoveToolFromAgentCommand, ToolChoiceEnum, UpdateAgentCommand, UpdateAgentInputModel, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, mockUpdateAgentHandler };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AgentStatusEnum, ModelProviderEnum, ToolChoiceEnum } from "./agent.enum.js";
|
|
2
|
+
import { AgentModel, AgentSummaryModel, AgentToolRefModel, AgentWithToolsModel, CreateAgentInputModel, UpdateAgentInputModel } from "./agent.schema.js";
|
|
3
|
+
import { AgentCreatedEvent, AgentToolAssignedEvent, AgentToolRemovedEvent, AgentUpdatedEvent } from "./agent.event.js";
|
|
4
|
+
import { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand } from "./agent.operation.js";
|
|
5
|
+
import { AgentEntity, AgentStatusEntityEnum, AgentToolEntity, ModelProviderEntityEnum } from "./agent.entity.js";
|
|
6
|
+
import { AgentConsoleDashboardPresentation, AgentDetailPresentation, AgentListPresentation } from "./agent.presentation.js";
|
|
7
|
+
import { mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, mockUpdateAgentHandler } from "./agent.handler.js";
|
|
8
|
+
|
|
9
|
+
export { AgentConsoleDashboardPresentation, AgentCreatedEvent, AgentDetailPresentation, AgentEntity, AgentListPresentation, AgentModel, AgentStatusEntityEnum, AgentStatusEnum, AgentSummaryModel, AgentToolAssignedEvent, AgentToolEntity, AgentToolRefModel, AgentToolRemovedEvent, AgentUpdatedEvent, AgentWithToolsModel, AssignToolToAgentCommand, CreateAgentCommand, CreateAgentInputModel, GetAgentQuery, ListAgentsQuery, ModelProviderEntityEnum, ModelProviderEnum, RemoveToolFromAgentCommand, ToolChoiceEnum, UpdateAgentCommand, UpdateAgentInputModel, mockCreateAgentHandler, mockGetAgentHandler, mockListAgentsHandler, mockUpdateAgentHandler };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FeatureModuleSpec } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/agent.feature.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Agent Console feature module that bundles all agent, tool, and run
|
|
7
|
+
* operations, events, and presentations into an installable feature.
|
|
8
|
+
*/
|
|
9
|
+
declare const AgentConsoleFeature: FeatureModuleSpec;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { AgentConsoleFeature };
|
|
12
|
+
//# sourceMappingURL=agent.feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.feature.d.ts","names":[],"sources":["../src/agent.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;;cAWa,qBAAqB"}
|