@lssm/example.agent-console 0.0.0-canary-20251220041653 → 0.0.0-canary-20251221132705
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 +70 -58
- package/.turbo/turbo-build.log +76 -64
- package/CHANGELOG.md +6 -6
- package/dist/agent/agent.entity.d.ts +36 -36
- package/dist/agent/agent.enum.d.ts +4 -4
- package/dist/agent/agent.event.d.ts +31 -31
- package/dist/agent/agent.operation.d.ts +505 -0
- package/dist/agent/{agent.contracts.d.ts.map → agent.operation.d.ts.map} +1 -1
- package/dist/agent/{agent.contracts.js → agent.operation.js} +3 -3
- package/dist/agent/agent.operation.js.map +1 -0
- package/dist/agent/agent.schema.d.ts +95 -95
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js +6 -0
- package/dist/libs/contracts/dist/_virtual/rolldown_runtime.js.map +1 -0
- package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
- package/dist/libs/contracts/dist/data-views.js +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +6 -6
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -1
- package/dist/libs/contracts/dist/features.js +1 -0
- package/dist/libs/contracts/dist/forms.js +1 -0
- package/dist/libs/contracts/dist/index.js +14 -1
- package/dist/libs/contracts/dist/index.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/contracts.js +1 -1
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js +1 -1
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js +1 -1
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -1
- package/dist/libs/contracts/dist/{spec.js → operation.js} +2 -2
- package/dist/libs/contracts/dist/operation.js.map +1 -0
- package/dist/libs/contracts/dist/presentations.js +1 -0
- package/dist/libs/contracts/dist/registry-utils.js +24 -0
- package/dist/libs/contracts/dist/registry-utils.js.map +1 -0
- package/dist/libs/contracts/dist/registry.js +1 -0
- package/dist/libs/contracts/dist/workflow/index.js +1 -0
- package/dist/libs/contracts/dist/workflow/spec.js +1 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js +122 -0
- package/dist/libs/contracts/dist/workspace-config/contractsrc-schema.js.map +1 -0
- package/dist/libs/contracts/dist/workspace-config/index.js +1 -0
- package/dist/run/index.d.ts +1 -1
- package/dist/run/index.js +1 -1
- package/dist/run/run.entity.d.ts +56 -56
- package/dist/run/run.enum.d.ts +5 -5
- package/dist/run/run.enum.d.ts.map +1 -1
- package/dist/run/run.event.d.ts +71 -71
- package/dist/run/run.event.d.ts.map +1 -1
- package/dist/run/run.operation.d.ts +714 -0
- package/dist/run/run.operation.d.ts.map +1 -0
- package/dist/run/{run.contracts.js → run.operation.js} +3 -3
- package/dist/run/run.operation.js.map +1 -0
- package/dist/run/run.schema.d.ts +99 -99
- package/dist/tool/index.d.ts +1 -1
- package/dist/tool/index.js +1 -1
- 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 +25 -25
- package/dist/tool/tool.operation.d.ts +405 -0
- package/dist/tool/{tool.contracts.d.ts.map → tool.operation.d.ts.map} +1 -1
- package/dist/tool/{tool.contracts.js → tool.operation.js} +3 -3
- package/dist/tool/tool.operation.js.map +1 -0
- package/package.json +14 -14
- package/src/agent/{agent.contracts.ts → agent.operation.ts} +1 -1
- package/src/agent/index.ts +1 -1
- package/src/run/index.ts +1 -1
- package/src/run/{run.contracts.ts → run.operation.ts} +4 -4
- package/src/tool/index.ts +1 -1
- package/src/tool/{tool.contracts.ts → tool.operation.ts} +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/agent/agent.contracts.d.ts +0 -505
- package/dist/agent/agent.contracts.js.map +0 -1
- package/dist/libs/contracts/dist/spec.js.map +0 -1
- package/dist/run/run.contracts.d.ts +0 -714
- package/dist/run/run.contracts.d.ts.map +0 -1
- package/dist/run/run.contracts.js.map +0 -1
- package/dist/tool/tool.contracts.d.ts +0 -405
- package/dist/tool/tool.contracts.js.map +0 -1
|
@@ -1,505 +0,0 @@
|
|
|
1
|
-
import * as _lssm_lib_contracts13 from "@lssm/lib.contracts";
|
|
2
|
-
import * as _lssm_lib_schema296 from "@lssm/lib.schema";
|
|
3
|
-
|
|
4
|
-
//#region src/agent/agent.contracts.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* CreateAgentCommand - Creates a new agent configuration.
|
|
7
|
-
*/
|
|
8
|
-
declare const CreateAgentCommand: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema296.SchemaModel<{
|
|
9
|
-
organizationId: {
|
|
10
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
11
|
-
isOptional: false;
|
|
12
|
-
};
|
|
13
|
-
name: {
|
|
14
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
15
|
-
isOptional: false;
|
|
16
|
-
};
|
|
17
|
-
slug: {
|
|
18
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
19
|
-
isOptional: false;
|
|
20
|
-
};
|
|
21
|
-
description: {
|
|
22
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
23
|
-
isOptional: true;
|
|
24
|
-
};
|
|
25
|
-
modelProvider: {
|
|
26
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string, string]>;
|
|
27
|
-
isOptional: false;
|
|
28
|
-
};
|
|
29
|
-
modelName: {
|
|
30
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
31
|
-
isOptional: false;
|
|
32
|
-
};
|
|
33
|
-
modelConfig: {
|
|
34
|
-
type: _lssm_lib_schema296.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
35
|
-
isOptional: true;
|
|
36
|
-
};
|
|
37
|
-
systemPrompt: {
|
|
38
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
39
|
-
isOptional: false;
|
|
40
|
-
};
|
|
41
|
-
userPromptTemplate: {
|
|
42
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
43
|
-
isOptional: true;
|
|
44
|
-
};
|
|
45
|
-
toolIds: {
|
|
46
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
47
|
-
isArray: true;
|
|
48
|
-
isOptional: true;
|
|
49
|
-
};
|
|
50
|
-
toolChoice: {
|
|
51
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string]>;
|
|
52
|
-
isOptional: true;
|
|
53
|
-
};
|
|
54
|
-
maxIterations: {
|
|
55
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
56
|
-
isOptional: true;
|
|
57
|
-
};
|
|
58
|
-
maxTokensPerRun: {
|
|
59
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
60
|
-
isOptional: true;
|
|
61
|
-
};
|
|
62
|
-
timeoutMs: {
|
|
63
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
64
|
-
isOptional: true;
|
|
65
|
-
};
|
|
66
|
-
tags: {
|
|
67
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
68
|
-
isArray: true;
|
|
69
|
-
isOptional: true;
|
|
70
|
-
};
|
|
71
|
-
}>, _lssm_lib_schema296.SchemaModel<{
|
|
72
|
-
id: {
|
|
73
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
74
|
-
isOptional: false;
|
|
75
|
-
};
|
|
76
|
-
name: {
|
|
77
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
78
|
-
isOptional: false;
|
|
79
|
-
};
|
|
80
|
-
slug: {
|
|
81
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
82
|
-
isOptional: false;
|
|
83
|
-
};
|
|
84
|
-
status: {
|
|
85
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string]>;
|
|
86
|
-
isOptional: false;
|
|
87
|
-
};
|
|
88
|
-
}>, {
|
|
89
|
-
ref: _lssm_lib_contracts13.EventSpec<_lssm_lib_schema296.SchemaModel<{
|
|
90
|
-
id: {
|
|
91
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
92
|
-
isOptional: false;
|
|
93
|
-
};
|
|
94
|
-
organizationId: {
|
|
95
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
96
|
-
isOptional: false;
|
|
97
|
-
};
|
|
98
|
-
name: {
|
|
99
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
100
|
-
isOptional: false;
|
|
101
|
-
};
|
|
102
|
-
slug: {
|
|
103
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
104
|
-
isOptional: false;
|
|
105
|
-
};
|
|
106
|
-
modelProvider: {
|
|
107
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
108
|
-
isOptional: false;
|
|
109
|
-
};
|
|
110
|
-
modelName: {
|
|
111
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
112
|
-
isOptional: false;
|
|
113
|
-
};
|
|
114
|
-
toolCount: {
|
|
115
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
116
|
-
isOptional: false;
|
|
117
|
-
};
|
|
118
|
-
createdById: {
|
|
119
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
120
|
-
isOptional: true;
|
|
121
|
-
};
|
|
122
|
-
createdAt: {
|
|
123
|
-
type: _lssm_lib_schema296.FieldType<Date, string>;
|
|
124
|
-
isOptional: false;
|
|
125
|
-
};
|
|
126
|
-
}>>;
|
|
127
|
-
when: string;
|
|
128
|
-
}[]>;
|
|
129
|
-
/**
|
|
130
|
-
* UpdateAgentCommand - Updates an existing agent.
|
|
131
|
-
*/
|
|
132
|
-
declare const UpdateAgentCommand: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema296.SchemaModel<{
|
|
133
|
-
agentId: {
|
|
134
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
135
|
-
isOptional: false;
|
|
136
|
-
};
|
|
137
|
-
name: {
|
|
138
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
139
|
-
isOptional: true;
|
|
140
|
-
};
|
|
141
|
-
description: {
|
|
142
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
143
|
-
isOptional: true;
|
|
144
|
-
};
|
|
145
|
-
status: {
|
|
146
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string]>;
|
|
147
|
-
isOptional: true;
|
|
148
|
-
};
|
|
149
|
-
modelConfig: {
|
|
150
|
-
type: _lssm_lib_schema296.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
151
|
-
isOptional: true;
|
|
152
|
-
};
|
|
153
|
-
systemPrompt: {
|
|
154
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
155
|
-
isOptional: true;
|
|
156
|
-
};
|
|
157
|
-
userPromptTemplate: {
|
|
158
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
159
|
-
isOptional: true;
|
|
160
|
-
};
|
|
161
|
-
toolIds: {
|
|
162
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
163
|
-
isArray: true;
|
|
164
|
-
isOptional: true;
|
|
165
|
-
};
|
|
166
|
-
toolChoice: {
|
|
167
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string]>;
|
|
168
|
-
isOptional: true;
|
|
169
|
-
};
|
|
170
|
-
maxIterations: {
|
|
171
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
172
|
-
isOptional: true;
|
|
173
|
-
};
|
|
174
|
-
maxTokensPerRun: {
|
|
175
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
176
|
-
isOptional: true;
|
|
177
|
-
};
|
|
178
|
-
timeoutMs: {
|
|
179
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
180
|
-
isOptional: true;
|
|
181
|
-
};
|
|
182
|
-
tags: {
|
|
183
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
184
|
-
isArray: true;
|
|
185
|
-
isOptional: true;
|
|
186
|
-
};
|
|
187
|
-
}>, _lssm_lib_schema296.SchemaModel<{
|
|
188
|
-
id: {
|
|
189
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
190
|
-
isOptional: false;
|
|
191
|
-
};
|
|
192
|
-
name: {
|
|
193
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
194
|
-
isOptional: false;
|
|
195
|
-
};
|
|
196
|
-
status: {
|
|
197
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string]>;
|
|
198
|
-
isOptional: false;
|
|
199
|
-
};
|
|
200
|
-
updatedAt: {
|
|
201
|
-
type: _lssm_lib_schema296.FieldType<Date, string>;
|
|
202
|
-
isOptional: false;
|
|
203
|
-
};
|
|
204
|
-
}>, {
|
|
205
|
-
name: string;
|
|
206
|
-
version: number;
|
|
207
|
-
when: string;
|
|
208
|
-
payload: _lssm_lib_schema296.SchemaModel<{
|
|
209
|
-
id: {
|
|
210
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
211
|
-
isOptional: false;
|
|
212
|
-
};
|
|
213
|
-
name: {
|
|
214
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
215
|
-
isOptional: false;
|
|
216
|
-
};
|
|
217
|
-
slug: {
|
|
218
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
219
|
-
isOptional: false;
|
|
220
|
-
};
|
|
221
|
-
description: {
|
|
222
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
223
|
-
isOptional: true;
|
|
224
|
-
};
|
|
225
|
-
status: {
|
|
226
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string]>;
|
|
227
|
-
isOptional: false;
|
|
228
|
-
};
|
|
229
|
-
modelProvider: {
|
|
230
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string, string]>;
|
|
231
|
-
isOptional: false;
|
|
232
|
-
};
|
|
233
|
-
modelName: {
|
|
234
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
235
|
-
isOptional: false;
|
|
236
|
-
};
|
|
237
|
-
version: {
|
|
238
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
239
|
-
isOptional: false;
|
|
240
|
-
};
|
|
241
|
-
createdAt: {
|
|
242
|
-
type: _lssm_lib_schema296.FieldType<Date, string>;
|
|
243
|
-
isOptional: false;
|
|
244
|
-
};
|
|
245
|
-
}>;
|
|
246
|
-
}[]>;
|
|
247
|
-
/**
|
|
248
|
-
* GetAgentQuery - Retrieves an agent by ID.
|
|
249
|
-
*/
|
|
250
|
-
declare const GetAgentQuery: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema296.SchemaModel<{
|
|
251
|
-
agentId: {
|
|
252
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
253
|
-
isOptional: false;
|
|
254
|
-
};
|
|
255
|
-
includeTools: {
|
|
256
|
-
type: _lssm_lib_schema296.FieldType<boolean, boolean>;
|
|
257
|
-
isOptional: true;
|
|
258
|
-
};
|
|
259
|
-
}>, _lssm_lib_schema296.SchemaModel<{
|
|
260
|
-
id: {
|
|
261
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
262
|
-
isOptional: false;
|
|
263
|
-
};
|
|
264
|
-
organizationId: {
|
|
265
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
266
|
-
isOptional: false;
|
|
267
|
-
};
|
|
268
|
-
name: {
|
|
269
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
270
|
-
isOptional: false;
|
|
271
|
-
};
|
|
272
|
-
slug: {
|
|
273
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
274
|
-
isOptional: false;
|
|
275
|
-
};
|
|
276
|
-
description: {
|
|
277
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
278
|
-
isOptional: true;
|
|
279
|
-
};
|
|
280
|
-
status: {
|
|
281
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string]>;
|
|
282
|
-
isOptional: false;
|
|
283
|
-
};
|
|
284
|
-
modelProvider: {
|
|
285
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string, string]>;
|
|
286
|
-
isOptional: false;
|
|
287
|
-
};
|
|
288
|
-
modelName: {
|
|
289
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
290
|
-
isOptional: false;
|
|
291
|
-
};
|
|
292
|
-
modelConfig: {
|
|
293
|
-
type: _lssm_lib_schema296.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
294
|
-
isOptional: true;
|
|
295
|
-
};
|
|
296
|
-
systemPrompt: {
|
|
297
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
298
|
-
isOptional: false;
|
|
299
|
-
};
|
|
300
|
-
userPromptTemplate: {
|
|
301
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
302
|
-
isOptional: true;
|
|
303
|
-
};
|
|
304
|
-
toolIds: {
|
|
305
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
306
|
-
isArray: true;
|
|
307
|
-
isOptional: true;
|
|
308
|
-
};
|
|
309
|
-
toolChoice: {
|
|
310
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string]>;
|
|
311
|
-
isOptional: false;
|
|
312
|
-
};
|
|
313
|
-
maxIterations: {
|
|
314
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
315
|
-
isOptional: false;
|
|
316
|
-
};
|
|
317
|
-
maxTokensPerRun: {
|
|
318
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
319
|
-
isOptional: true;
|
|
320
|
-
};
|
|
321
|
-
timeoutMs: {
|
|
322
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
323
|
-
isOptional: false;
|
|
324
|
-
};
|
|
325
|
-
version: {
|
|
326
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
327
|
-
isOptional: false;
|
|
328
|
-
};
|
|
329
|
-
tags: {
|
|
330
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
331
|
-
isArray: true;
|
|
332
|
-
isOptional: true;
|
|
333
|
-
};
|
|
334
|
-
createdAt: {
|
|
335
|
-
type: _lssm_lib_schema296.FieldType<Date, string>;
|
|
336
|
-
isOptional: false;
|
|
337
|
-
};
|
|
338
|
-
updatedAt: {
|
|
339
|
-
type: _lssm_lib_schema296.FieldType<Date, string>;
|
|
340
|
-
isOptional: false;
|
|
341
|
-
};
|
|
342
|
-
tools: {
|
|
343
|
-
type: _lssm_lib_schema296.SchemaModel<{
|
|
344
|
-
id: {
|
|
345
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
346
|
-
isOptional: false;
|
|
347
|
-
};
|
|
348
|
-
name: {
|
|
349
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
350
|
-
isOptional: false;
|
|
351
|
-
};
|
|
352
|
-
slug: {
|
|
353
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
354
|
-
isOptional: false;
|
|
355
|
-
};
|
|
356
|
-
description: {
|
|
357
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
358
|
-
isOptional: false;
|
|
359
|
-
};
|
|
360
|
-
category: {
|
|
361
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
362
|
-
isOptional: false;
|
|
363
|
-
};
|
|
364
|
-
}>;
|
|
365
|
-
isArray: true;
|
|
366
|
-
isOptional: true;
|
|
367
|
-
};
|
|
368
|
-
}>, undefined>;
|
|
369
|
-
/**
|
|
370
|
-
* ListAgentsQuery - Lists agents for an organization.
|
|
371
|
-
*/
|
|
372
|
-
declare const ListAgentsQuery: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema296.SchemaModel<{
|
|
373
|
-
organizationId: {
|
|
374
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
375
|
-
isOptional: false;
|
|
376
|
-
};
|
|
377
|
-
status: {
|
|
378
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string]>;
|
|
379
|
-
isOptional: true;
|
|
380
|
-
};
|
|
381
|
-
modelProvider: {
|
|
382
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string, string]>;
|
|
383
|
-
isOptional: true;
|
|
384
|
-
};
|
|
385
|
-
search: {
|
|
386
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
387
|
-
isOptional: true;
|
|
388
|
-
};
|
|
389
|
-
limit: {
|
|
390
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
391
|
-
isOptional: true;
|
|
392
|
-
defaultValue: number;
|
|
393
|
-
};
|
|
394
|
-
offset: {
|
|
395
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
396
|
-
isOptional: true;
|
|
397
|
-
defaultValue: number;
|
|
398
|
-
};
|
|
399
|
-
}>, _lssm_lib_schema296.SchemaModel<{
|
|
400
|
-
items: {
|
|
401
|
-
type: _lssm_lib_schema296.SchemaModel<{
|
|
402
|
-
id: {
|
|
403
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
404
|
-
isOptional: false;
|
|
405
|
-
};
|
|
406
|
-
name: {
|
|
407
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
408
|
-
isOptional: false;
|
|
409
|
-
};
|
|
410
|
-
slug: {
|
|
411
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
412
|
-
isOptional: false;
|
|
413
|
-
};
|
|
414
|
-
description: {
|
|
415
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
416
|
-
isOptional: true;
|
|
417
|
-
};
|
|
418
|
-
status: {
|
|
419
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string]>;
|
|
420
|
-
isOptional: false;
|
|
421
|
-
};
|
|
422
|
-
modelProvider: {
|
|
423
|
-
type: _lssm_lib_schema296.EnumType<[string, string, string, string, string]>;
|
|
424
|
-
isOptional: false;
|
|
425
|
-
};
|
|
426
|
-
modelName: {
|
|
427
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
428
|
-
isOptional: false;
|
|
429
|
-
};
|
|
430
|
-
version: {
|
|
431
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
432
|
-
isOptional: false;
|
|
433
|
-
};
|
|
434
|
-
createdAt: {
|
|
435
|
-
type: _lssm_lib_schema296.FieldType<Date, string>;
|
|
436
|
-
isOptional: false;
|
|
437
|
-
};
|
|
438
|
-
}>;
|
|
439
|
-
isArray: true;
|
|
440
|
-
isOptional: false;
|
|
441
|
-
};
|
|
442
|
-
total: {
|
|
443
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
444
|
-
isOptional: false;
|
|
445
|
-
};
|
|
446
|
-
hasMore: {
|
|
447
|
-
type: _lssm_lib_schema296.FieldType<boolean, boolean>;
|
|
448
|
-
isOptional: false;
|
|
449
|
-
};
|
|
450
|
-
}>, undefined>;
|
|
451
|
-
/**
|
|
452
|
-
* AssignToolToAgentCommand - Assigns a tool to an agent.
|
|
453
|
-
*/
|
|
454
|
-
declare const AssignToolToAgentCommand: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema296.SchemaModel<{
|
|
455
|
-
agentId: {
|
|
456
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
457
|
-
isOptional: false;
|
|
458
|
-
};
|
|
459
|
-
toolId: {
|
|
460
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
461
|
-
isOptional: false;
|
|
462
|
-
};
|
|
463
|
-
config: {
|
|
464
|
-
type: _lssm_lib_schema296.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
465
|
-
isOptional: true;
|
|
466
|
-
};
|
|
467
|
-
order: {
|
|
468
|
-
type: _lssm_lib_schema296.FieldType<number, number>;
|
|
469
|
-
isOptional: true;
|
|
470
|
-
};
|
|
471
|
-
}>, _lssm_lib_schema296.SchemaModel<{
|
|
472
|
-
agentToolId: {
|
|
473
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
474
|
-
isOptional: false;
|
|
475
|
-
};
|
|
476
|
-
agentId: {
|
|
477
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
478
|
-
isOptional: false;
|
|
479
|
-
};
|
|
480
|
-
toolId: {
|
|
481
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
482
|
-
isOptional: false;
|
|
483
|
-
};
|
|
484
|
-
}>, undefined>;
|
|
485
|
-
/**
|
|
486
|
-
* RemoveToolFromAgentCommand - Removes a tool from an agent.
|
|
487
|
-
*/
|
|
488
|
-
declare const RemoveToolFromAgentCommand: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema296.SchemaModel<{
|
|
489
|
-
agentId: {
|
|
490
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
491
|
-
isOptional: false;
|
|
492
|
-
};
|
|
493
|
-
toolId: {
|
|
494
|
-
type: _lssm_lib_schema296.FieldType<string, string>;
|
|
495
|
-
isOptional: false;
|
|
496
|
-
};
|
|
497
|
-
}>, _lssm_lib_schema296.SchemaModel<{
|
|
498
|
-
success: {
|
|
499
|
-
type: _lssm_lib_schema296.FieldType<boolean, boolean>;
|
|
500
|
-
isOptional: false;
|
|
501
|
-
};
|
|
502
|
-
}>, undefined>;
|
|
503
|
-
//#endregion
|
|
504
|
-
export { AssignToolToAgentCommand, CreateAgentCommand, GetAgentQuery, ListAgentsQuery, RemoveToolFromAgentCommand, UpdateAgentCommand };
|
|
505
|
-
//# sourceMappingURL=agent.contracts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent.contracts.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/agent/agent.contracts.ts"],"sourcesContent":["import { defineCommand, defineQuery } from '@lssm/lib.contracts/spec';\nimport { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { AgentStatusEnum, ModelProviderEnum } from './agent.enum';\nimport {\n AgentSummaryModel,\n AgentWithToolsModel,\n CreateAgentInputModel,\n UpdateAgentInputModel,\n} from './agent.schema';\nimport { AgentCreatedEvent } from './agent.event';\n\nconst OWNERS = ['@agent-console-team'] as const;\n\n/**\n * CreateAgentCommand - Creates a new agent configuration.\n */\nexport const CreateAgentCommand = defineCommand({\n meta: {\n name: 'agent.agent.create',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'create'],\n description: 'Creates a new AI agent configuration.',\n goal: 'Allow users to define new AI agents with specific models and tools.',\n context: 'Called from the agent builder UI when creating a new agent.',\n },\n io: {\n input: CreateAgentInputModel,\n output: defineSchemaModel({\n name: 'CreateAgentOutput',\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 status: { type: AgentStatusEnum, isOptional: false },\n },\n }),\n errors: {\n SLUG_EXISTS: {\n description:\n 'An agent with this slug already exists in the organization',\n http: 409,\n gqlCode: 'SLUG_EXISTS',\n when: 'Slug is already taken',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n // name: 'agent.created',\n // version: 1,\n // payload: AgentSummaryModel,\n ref: AgentCreatedEvent,\n when: 'Agent is successfully created',\n },\n ],\n audit: ['agent.created'],\n },\n});\n\n/**\n * UpdateAgentCommand - Updates an existing agent.\n */\nexport const UpdateAgentCommand = defineCommand({\n meta: {\n name: 'agent.agent.update',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'update'],\n description: 'Updates an existing AI agent configuration.',\n goal: 'Allow users to modify agent settings and configuration.',\n context: 'Called from the agent settings UI.',\n },\n io: {\n input: UpdateAgentInputModel,\n output: defineSchemaModel({\n name: 'UpdateAgentOutput',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },\n status: { type: AgentStatusEnum, isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n }),\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: {\n emits: [\n {\n name: 'agent.updated',\n version: 1,\n when: 'Agent is updated',\n payload: AgentSummaryModel,\n },\n ],\n audit: ['agent.updated'],\n },\n});\n\n/**\n * GetAgentQuery - Retrieves an agent by ID.\n */\nexport const GetAgentQuery = defineQuery({\n meta: {\n name: 'agent.agent.get',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'get'],\n description: 'Retrieves an agent by its ID.',\n goal: 'View detailed agent configuration.',\n context: 'Called when viewing agent details or editing.',\n },\n io: {\n input: defineSchemaModel({\n name: 'GetAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n includeTools: { type: ScalarTypeEnum.Boolean(), isOptional: true },\n },\n }),\n output: AgentWithToolsModel,\n errors: {\n AGENT_NOT_FOUND: {\n description: 'The specified agent does not exist',\n http: 404,\n gqlCode: 'AGENT_NOT_FOUND',\n when: 'Agent ID is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n});\n\n/**\n * ListAgentsQuery - Lists agents for an organization.\n */\nexport const ListAgentsQuery = defineQuery({\n meta: {\n name: 'agent.agent.list',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'list'],\n description: 'Lists agents for an organization with optional filtering.',\n goal: 'Browse and search available agents.',\n context: 'Agent list/dashboard view.',\n },\n io: {\n input: defineSchemaModel({\n name: 'ListAgentsInput',\n fields: {\n organizationId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n status: { type: AgentStatusEnum, isOptional: true },\n modelProvider: { type: ModelProviderEnum, isOptional: true },\n search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n limit: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 20,\n },\n offset: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n defaultValue: 0,\n },\n },\n }),\n output: defineSchemaModel({\n name: 'ListAgentsOutput',\n fields: {\n items: { type: AgentSummaryModel, isArray: true, isOptional: false },\n total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n hasMore: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n});\n\n/**\n * AssignToolToAgentCommand - Assigns a tool to an agent.\n */\nexport const AssignToolToAgentCommand = defineCommand({\n meta: {\n name: 'agent.agent.assignTool',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'assign'],\n description: 'Assigns a tool to an agent with optional configuration.',\n goal: 'Enable agents to use specific tools.',\n context: 'Agent configuration UI - tool selection.',\n },\n io: {\n input: defineSchemaModel({\n name: 'AssignToolToAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n config: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n order: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n }),\n output: defineSchemaModel({\n name: 'AssignToolToAgentOutput',\n fields: {\n agentToolId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n errors: {\n TOOL_ALREADY_ASSIGNED: {\n description: 'This tool is already assigned to the agent',\n http: 409,\n gqlCode: 'TOOL_ALREADY_ASSIGNED',\n when: 'Tool assignment already exists',\n },\n },\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['agent.tool.assigned'] },\n});\n\n/**\n * RemoveToolFromAgentCommand - Removes a tool from an agent.\n */\nexport const RemoveToolFromAgentCommand = defineCommand({\n meta: {\n name: 'agent.agent.removeTool',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['agent', 'tool', 'remove'],\n description: 'Removes a tool assignment from an agent.',\n goal: 'Disable specific tools for an agent.',\n context: 'Agent configuration UI - tool management.',\n },\n io: {\n input: defineSchemaModel({\n name: 'RemoveToolFromAgentInput',\n fields: {\n agentId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n toolId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n output: defineSchemaModel({\n name: 'RemoveToolFromAgentOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n },\n }),\n },\n policy: { auth: 'user' },\n sideEffects: { audit: ['agent.tool.removed'] },\n});\n"],"mappings":";;;;;;;AAWA,MAAM,SAAS,CAAC,sBAAsB;;;;AAKtC,MAAa,qBAAqB,cAAc;CAC9C,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM,CAAC,SAAS,SAAS;EACzB,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQA,GAAkB;GACxB,MAAM;GACN,QAAQ;IACN,IAAI;KAAE,MAAMC,GAAe,iBAAiB;KAAE,YAAY;KAAO;IACjE,MAAM;KAAE,MAAMA,GAAe,gBAAgB;KAAE,YAAY;KAAO;IAClE,MAAM;KAAE,MAAMA,GAAe,iBAAiB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O,EAC/D;GACF,CAAC;EACH;CACD,QAAQ,EAAE,MAAM,QAAQ;CACxB,aAAa,EAAE,OAAO,CAAC,qBAAqB,EAAE;CAC/C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spec.js","names":[],"sources":["../../../../../../libs/contracts/dist/spec.js"],"sourcesContent":["//#region src/spec.ts\nconst isEmitDeclRef = (e) => \"ref\" in e;\n/**\n* Helper to define a Command (write operation).\n* Sets `kind: 'command'` and defaults `idempotent: false`.\n*/\nconst defineCommand = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"command\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: spec.policy?.[\"policy\"]?.idempotent ?? false\n\t}\n});\n/**\n* Helper to define a Query (read-only operation).\n* Sets `kind: 'query'` and forces `idempotent: true`.\n*/\nconst defineQuery = (spec) => ({\n\t...spec,\n\tmeta: {\n\t\t...spec.meta,\n\t\tkind: \"query\"\n\t},\n\tpolicy: {\n\t\t...spec.policy,\n\t\tidempotent: true\n\t}\n});\n\n//#endregion\nexport { defineCommand, defineQuery, isEmitDeclRef };"],"mappings":";;;;;AAMA,MAAM,iBAAiB,UAAU;CAChC,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY,KAAK,SAAS,WAAW,cAAc;EACnD;CACD;;;;;AAKD,MAAM,eAAe,UAAU;CAC9B,GAAG;CACH,MAAM;EACL,GAAG,KAAK;EACR,MAAM;EACN;CACD,QAAQ;EACP,GAAG,KAAK;EACR,YAAY;EACZ;CACD"}
|