@lssm/example.agent-console 0.0.0-canary-20251206160926

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 (175) hide show
  1. package/.turbo/turbo-build.log +202 -0
  2. package/CHANGELOG.md +13 -0
  3. package/README.md +83 -0
  4. package/dist/contracts/agent.d.ts +886 -0
  5. package/dist/contracts/agent.js +1 -0
  6. package/dist/contracts/index.d.ts +4 -0
  7. package/dist/contracts/index.js +1 -0
  8. package/dist/contracts/run.d.ts +1106 -0
  9. package/dist/contracts/run.js +1 -0
  10. package/dist/contracts/tool.d.ts +607 -0
  11. package/dist/contracts/tool.js +1 -0
  12. package/dist/entities/agent.d.ts +54 -0
  13. package/dist/entities/agent.js +1 -0
  14. package/dist/entities/index.d.ts +4 -0
  15. package/dist/entities/index.js +1 -0
  16. package/dist/entities/log.d.ts +31 -0
  17. package/dist/entities/log.js +1 -0
  18. package/dist/entities/run.d.ts +85 -0
  19. package/dist/entities/run.js +1 -0
  20. package/dist/entities/tool.d.ts +36 -0
  21. package/dist/entities/tool.js +1 -0
  22. package/dist/events.d.ts +965 -0
  23. package/dist/events.js +1 -0
  24. package/dist/feature.d.ts +11 -0
  25. package/dist/feature.js +1 -0
  26. package/dist/handlers/agent.handlers.d.ts +99 -0
  27. package/dist/handlers/agent.handlers.js +1 -0
  28. package/dist/handlers/index.d.ts +5 -0
  29. package/dist/handlers/index.js +1 -0
  30. package/dist/handlers/mock-data.d.ts +533 -0
  31. package/dist/handlers/mock-data.js +1 -0
  32. package/dist/handlers/run.handlers.d.ts +145 -0
  33. package/dist/handlers/run.handlers.js +1 -0
  34. package/dist/handlers/tool.handlers.d.ts +86 -0
  35. package/dist/handlers/tool.handlers.js +1 -0
  36. package/dist/index.d.ts +18 -0
  37. package/dist/index.js +1 -0
  38. package/dist/libs/contracts/dist/capabilities/openbanking.js +1 -0
  39. package/dist/libs/contracts/dist/client/index.js +1 -0
  40. package/dist/libs/contracts/dist/client/react/feature-render.js +1 -0
  41. package/dist/libs/contracts/dist/client/react/form-render.js +1 -0
  42. package/dist/libs/contracts/dist/client/react/index.js +1 -0
  43. package/dist/libs/contracts/dist/events.js +1 -0
  44. package/dist/libs/contracts/dist/experiments/evaluator.js +1 -0
  45. package/dist/libs/contracts/dist/graphql-federation/dist/index.js +1 -0
  46. package/dist/libs/contracts/dist/index.js +1 -0
  47. package/dist/libs/contracts/dist/install.js +1 -0
  48. package/dist/libs/contracts/dist/integrations/contracts.js +1 -0
  49. package/dist/libs/contracts/dist/integrations/index.js +1 -0
  50. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +1 -0
  51. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +1 -0
  52. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +1 -0
  53. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +1 -0
  54. package/dist/libs/contracts/dist/integrations/openbanking/models.js +1 -0
  55. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +1 -0
  56. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +1 -0
  57. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +1 -0
  58. package/dist/libs/contracts/dist/integrations/providers/gmail.js +1 -0
  59. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +1 -0
  60. package/dist/libs/contracts/dist/integrations/providers/impls/elevenlabs-voice.js +1 -0
  61. package/dist/libs/contracts/dist/integrations/providers/impls/gcs-storage.js +1 -0
  62. package/dist/libs/contracts/dist/integrations/providers/impls/gmail-inbound.js +1 -0
  63. package/dist/libs/contracts/dist/integrations/providers/impls/gmail-outbound.js +1 -0
  64. package/dist/libs/contracts/dist/integrations/providers/impls/google-calendar.js +1 -0
  65. package/dist/libs/contracts/dist/integrations/providers/impls/index.js +1 -0
  66. package/dist/libs/contracts/dist/integrations/providers/impls/mistral-embedding.js +1 -0
  67. package/dist/libs/contracts/dist/integrations/providers/impls/mistral-llm.js +1 -0
  68. package/dist/libs/contracts/dist/integrations/providers/impls/postmark-email.js +1 -0
  69. package/dist/libs/contracts/dist/integrations/providers/impls/powens-client.js +1 -0
  70. package/dist/libs/contracts/dist/integrations/providers/impls/powens-openbanking.js +1 -0
  71. package/dist/libs/contracts/dist/integrations/providers/impls/provider-factory.js +1 -0
  72. package/dist/libs/contracts/dist/integrations/providers/impls/qdrant-vector.js +1 -0
  73. package/dist/libs/contracts/dist/integrations/providers/impls/stripe-payments.js +1 -0
  74. package/dist/libs/contracts/dist/integrations/providers/impls/twilio-sms.js +1 -0
  75. package/dist/libs/contracts/dist/integrations/providers/index.js +1 -0
  76. package/dist/libs/contracts/dist/integrations/providers/mistral.js +1 -0
  77. package/dist/libs/contracts/dist/integrations/providers/postmark.js +1 -0
  78. package/dist/libs/contracts/dist/integrations/providers/powens.js +1 -0
  79. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +1 -0
  80. package/dist/libs/contracts/dist/integrations/providers/stripe.js +1 -0
  81. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +1 -0
  82. package/dist/libs/contracts/dist/integrations/runtime.js +1 -0
  83. package/dist/libs/contracts/dist/integrations/secrets/env-secret-provider.js +1 -0
  84. package/dist/libs/contracts/dist/integrations/secrets/gcp-secret-manager.js +1 -0
  85. package/dist/libs/contracts/dist/integrations/secrets/index.js +1 -0
  86. package/dist/libs/contracts/dist/integrations/secrets/manager.js +1 -0
  87. package/dist/libs/contracts/dist/integrations/secrets/provider.js +1 -0
  88. package/dist/libs/contracts/dist/jsonschema.js +1 -0
  89. package/dist/libs/contracts/dist/knowledge/contracts.js +1 -0
  90. package/dist/libs/contracts/dist/knowledge/index.js +1 -0
  91. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +1 -0
  92. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +1 -0
  93. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +1 -0
  94. package/dist/libs/contracts/dist/knowledge/spaces/index.js +1 -0
  95. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +1 -0
  96. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +1 -0
  97. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +1 -0
  98. package/dist/libs/contracts/dist/onboarding-base.js +1 -0
  99. package/dist/libs/contracts/dist/ownership.js +1 -0
  100. package/dist/libs/contracts/dist/presentations.js +1 -0
  101. package/dist/libs/contracts/dist/presentations.v2.js +1 -0
  102. package/dist/libs/contracts/dist/prompt.js +1 -0
  103. package/dist/libs/contracts/dist/promptRegistry.js +1 -0
  104. package/dist/libs/contracts/dist/regenerator/index.js +1 -0
  105. package/dist/libs/contracts/dist/regenerator/service.js +1 -0
  106. package/dist/libs/contracts/dist/registry.js +1 -0
  107. package/dist/libs/contracts/dist/resources.js +1 -0
  108. package/dist/libs/contracts/dist/schema/dist/EnumType.js +1 -0
  109. package/dist/libs/contracts/dist/schema/dist/FieldType.js +1 -0
  110. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +1 -0
  111. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +1 -0
  112. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +1 -0
  113. package/dist/libs/contracts/dist/schema/dist/entity/index.js +1 -0
  114. package/dist/libs/contracts/dist/schema/dist/entity/types.js +1 -0
  115. package/dist/libs/contracts/dist/schema/dist/index.js +1 -0
  116. package/dist/libs/contracts/dist/server/graphql-pothos.js +1 -0
  117. package/dist/libs/contracts/dist/server/graphql-schema-export.js +1 -0
  118. package/dist/libs/contracts/dist/server/index.js +1 -0
  119. package/dist/libs/contracts/dist/server/provider-mcp.js +1 -0
  120. package/dist/libs/contracts/dist/server/rest-elysia.js +1 -0
  121. package/dist/libs/contracts/dist/server/rest-express.js +1 -0
  122. package/dist/libs/contracts/dist/server/rest-generic.js +1 -0
  123. package/dist/libs/contracts/dist/server/rest-next-app.js +1 -0
  124. package/dist/libs/contracts/dist/server/rest-next-pages.js +1 -0
  125. package/dist/libs/contracts/dist/spec.js +1 -0
  126. package/dist/libs/contracts/dist/telemetry/index.js +1 -0
  127. package/dist/libs/contracts/dist/telemetry/tracker.js +1 -0
  128. package/dist/libs/contracts/dist/tests/index.js +1 -0
  129. package/dist/libs/contracts/dist/tests/runner.js +1 -0
  130. package/dist/libs/contracts/dist/workflow/index.js +1 -0
  131. package/dist/libs/contracts/dist/workflow/runner.js +1 -0
  132. package/dist/libs/schema/dist/EnumType.js +1 -0
  133. package/dist/libs/schema/dist/FieldType.js +1 -0
  134. package/dist/libs/schema/dist/ScalarTypeEnum.js +1 -0
  135. package/dist/libs/schema/dist/SchemaModel.js +1 -0
  136. package/dist/libs/schema/dist/entity/defineEntity.js +1 -0
  137. package/dist/libs/schema/dist/entity/index.js +1 -0
  138. package/dist/libs/schema/dist/entity/types.js +1 -0
  139. package/dist/libs/schema/dist/index.js +1 -0
  140. package/dist/presentations/agent-list.d.ts +15 -0
  141. package/dist/presentations/agent-list.js +1 -0
  142. package/dist/presentations/dashboard.d.ts +11 -0
  143. package/dist/presentations/dashboard.js +1 -0
  144. package/dist/presentations/index.d.ts +11 -0
  145. package/dist/presentations/index.js +1 -0
  146. package/dist/presentations/run-list.d.ts +18 -0
  147. package/dist/presentations/run-list.js +1 -0
  148. package/dist/presentations/tool-registry.d.ts +14 -0
  149. package/dist/presentations/tool-registry.js +1 -0
  150. package/package.json +86 -0
  151. package/src/contracts/agent.ts +501 -0
  152. package/src/contracts/index.ts +29 -0
  153. package/src/contracts/run.ts +561 -0
  154. package/src/contracts/tool.ts +392 -0
  155. package/src/entities/agent.ts +151 -0
  156. package/src/entities/index.ts +20 -0
  157. package/src/entities/log.ts +76 -0
  158. package/src/entities/run.ts +240 -0
  159. package/src/entities/tool.ts +105 -0
  160. package/src/events.ts +419 -0
  161. package/src/feature.ts +144 -0
  162. package/src/handlers/agent.handlers.ts +203 -0
  163. package/src/handlers/index.ts +55 -0
  164. package/src/handlers/mock-data.ts +413 -0
  165. package/src/handlers/run.handlers.ts +331 -0
  166. package/src/handlers/tool.handlers.ts +188 -0
  167. package/src/index.ts +34 -0
  168. package/src/presentations/agent-list.ts +55 -0
  169. package/src/presentations/dashboard.ts +29 -0
  170. package/src/presentations/index.ts +48 -0
  171. package/src/presentations/run-list.ts +76 -0
  172. package/src/presentations/tool-registry.ts +52 -0
  173. package/tsconfig.json +10 -0
  174. package/tsconfig.tsbuildinfo +1 -0
  175. package/tsdown.config.js +7 -0
@@ -0,0 +1,1106 @@
1
+ import * as _lssm_lib_schema526 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts19 from "@lssm/lib.contracts";
3
+
4
+ //#region src/contracts/run.d.ts
5
+ declare const RunStatusEnum: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
6
+ declare const RunStepTypeEnum: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
7
+ declare const LogLevelEnum: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
8
+ declare const GranularityEnum: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
9
+ declare const RunInputModel: _lssm_lib_schema526.SchemaModel<{
10
+ message: {
11
+ type: _lssm_lib_schema526.FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ context: {
15
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
16
+ isOptional: true;
17
+ };
18
+ }>;
19
+ declare const RunStepModel: _lssm_lib_schema526.SchemaModel<{
20
+ id: {
21
+ type: _lssm_lib_schema526.FieldType<string, string>;
22
+ isOptional: false;
23
+ };
24
+ stepNumber: {
25
+ type: _lssm_lib_schema526.FieldType<number, number>;
26
+ isOptional: false;
27
+ };
28
+ type: {
29
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
30
+ isOptional: false;
31
+ };
32
+ toolId: {
33
+ type: _lssm_lib_schema526.FieldType<string, string>;
34
+ isOptional: true;
35
+ };
36
+ toolName: {
37
+ type: _lssm_lib_schema526.FieldType<string, string>;
38
+ isOptional: true;
39
+ };
40
+ input: {
41
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
42
+ isOptional: true;
43
+ };
44
+ output: {
45
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
46
+ isOptional: true;
47
+ };
48
+ status: {
49
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
50
+ isOptional: false;
51
+ };
52
+ errorMessage: {
53
+ type: _lssm_lib_schema526.FieldType<string, string>;
54
+ isOptional: true;
55
+ };
56
+ tokensUsed: {
57
+ type: _lssm_lib_schema526.FieldType<number, number>;
58
+ isOptional: false;
59
+ defaultValue: number;
60
+ };
61
+ durationMs: {
62
+ type: _lssm_lib_schema526.FieldType<number, number>;
63
+ isOptional: true;
64
+ };
65
+ startedAt: {
66
+ type: _lssm_lib_schema526.FieldType<Date, string>;
67
+ isOptional: false;
68
+ };
69
+ completedAt: {
70
+ type: _lssm_lib_schema526.FieldType<Date, string>;
71
+ isOptional: true;
72
+ };
73
+ }>;
74
+ declare const RunLogModel: _lssm_lib_schema526.SchemaModel<{
75
+ id: {
76
+ type: _lssm_lib_schema526.FieldType<string, string>;
77
+ isOptional: false;
78
+ };
79
+ stepId: {
80
+ type: _lssm_lib_schema526.FieldType<string, string>;
81
+ isOptional: true;
82
+ };
83
+ level: {
84
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
85
+ isOptional: false;
86
+ };
87
+ message: {
88
+ type: _lssm_lib_schema526.FieldType<string, string>;
89
+ isOptional: false;
90
+ };
91
+ data: {
92
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
93
+ isOptional: true;
94
+ };
95
+ source: {
96
+ type: _lssm_lib_schema526.FieldType<string, string>;
97
+ isOptional: true;
98
+ };
99
+ traceId: {
100
+ type: _lssm_lib_schema526.FieldType<string, string>;
101
+ isOptional: true;
102
+ };
103
+ spanId: {
104
+ type: _lssm_lib_schema526.FieldType<string, string>;
105
+ isOptional: true;
106
+ };
107
+ timestamp: {
108
+ type: _lssm_lib_schema526.FieldType<Date, string>;
109
+ isOptional: false;
110
+ };
111
+ }>;
112
+ declare const RunAgentRefModel: _lssm_lib_schema526.SchemaModel<{
113
+ id: {
114
+ type: _lssm_lib_schema526.FieldType<string, string>;
115
+ isOptional: false;
116
+ };
117
+ name: {
118
+ type: _lssm_lib_schema526.FieldType<string, string>;
119
+ isOptional: false;
120
+ };
121
+ modelProvider: {
122
+ type: _lssm_lib_schema526.FieldType<string, string>;
123
+ isOptional: false;
124
+ };
125
+ modelName: {
126
+ type: _lssm_lib_schema526.FieldType<string, string>;
127
+ isOptional: false;
128
+ };
129
+ }>;
130
+ declare const RunModel: _lssm_lib_schema526.SchemaModel<{
131
+ id: {
132
+ type: _lssm_lib_schema526.FieldType<string, string>;
133
+ isOptional: false;
134
+ };
135
+ organizationId: {
136
+ type: _lssm_lib_schema526.FieldType<string, string>;
137
+ isOptional: false;
138
+ };
139
+ agentId: {
140
+ type: _lssm_lib_schema526.FieldType<string, string>;
141
+ isOptional: false;
142
+ };
143
+ userId: {
144
+ type: _lssm_lib_schema526.FieldType<string, string>;
145
+ isOptional: true;
146
+ };
147
+ sessionId: {
148
+ type: _lssm_lib_schema526.FieldType<string, string>;
149
+ isOptional: true;
150
+ };
151
+ input: {
152
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
153
+ isOptional: false;
154
+ };
155
+ output: {
156
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
157
+ isOptional: true;
158
+ };
159
+ status: {
160
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
161
+ isOptional: false;
162
+ };
163
+ errorMessage: {
164
+ type: _lssm_lib_schema526.FieldType<string, string>;
165
+ isOptional: true;
166
+ };
167
+ errorCode: {
168
+ type: _lssm_lib_schema526.FieldType<string, string>;
169
+ isOptional: true;
170
+ };
171
+ totalTokens: {
172
+ type: _lssm_lib_schema526.FieldType<number, number>;
173
+ isOptional: false;
174
+ defaultValue: number;
175
+ };
176
+ promptTokens: {
177
+ type: _lssm_lib_schema526.FieldType<number, number>;
178
+ isOptional: false;
179
+ defaultValue: number;
180
+ };
181
+ completionTokens: {
182
+ type: _lssm_lib_schema526.FieldType<number, number>;
183
+ isOptional: false;
184
+ defaultValue: number;
185
+ };
186
+ totalIterations: {
187
+ type: _lssm_lib_schema526.FieldType<number, number>;
188
+ isOptional: false;
189
+ defaultValue: number;
190
+ };
191
+ durationMs: {
192
+ type: _lssm_lib_schema526.FieldType<number, number>;
193
+ isOptional: true;
194
+ };
195
+ estimatedCostUsd: {
196
+ type: _lssm_lib_schema526.FieldType<number, number>;
197
+ isOptional: true;
198
+ };
199
+ queuedAt: {
200
+ type: _lssm_lib_schema526.FieldType<Date, string>;
201
+ isOptional: false;
202
+ };
203
+ startedAt: {
204
+ type: _lssm_lib_schema526.FieldType<Date, string>;
205
+ isOptional: true;
206
+ };
207
+ completedAt: {
208
+ type: _lssm_lib_schema526.FieldType<Date, string>;
209
+ isOptional: true;
210
+ };
211
+ metadata: {
212
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
213
+ isOptional: true;
214
+ };
215
+ steps: {
216
+ type: _lssm_lib_schema526.SchemaModel<{
217
+ id: {
218
+ type: _lssm_lib_schema526.FieldType<string, string>;
219
+ isOptional: false;
220
+ };
221
+ stepNumber: {
222
+ type: _lssm_lib_schema526.FieldType<number, number>;
223
+ isOptional: false;
224
+ };
225
+ type: {
226
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
227
+ isOptional: false;
228
+ };
229
+ toolId: {
230
+ type: _lssm_lib_schema526.FieldType<string, string>;
231
+ isOptional: true;
232
+ };
233
+ toolName: {
234
+ type: _lssm_lib_schema526.FieldType<string, string>;
235
+ isOptional: true;
236
+ };
237
+ input: {
238
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
239
+ isOptional: true;
240
+ };
241
+ output: {
242
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
243
+ isOptional: true;
244
+ };
245
+ status: {
246
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
247
+ isOptional: false;
248
+ };
249
+ errorMessage: {
250
+ type: _lssm_lib_schema526.FieldType<string, string>;
251
+ isOptional: true;
252
+ };
253
+ tokensUsed: {
254
+ type: _lssm_lib_schema526.FieldType<number, number>;
255
+ isOptional: false;
256
+ defaultValue: number;
257
+ };
258
+ durationMs: {
259
+ type: _lssm_lib_schema526.FieldType<number, number>;
260
+ isOptional: true;
261
+ };
262
+ startedAt: {
263
+ type: _lssm_lib_schema526.FieldType<Date, string>;
264
+ isOptional: false;
265
+ };
266
+ completedAt: {
267
+ type: _lssm_lib_schema526.FieldType<Date, string>;
268
+ isOptional: true;
269
+ };
270
+ }>;
271
+ isArray: true;
272
+ isOptional: true;
273
+ };
274
+ logs: {
275
+ type: _lssm_lib_schema526.SchemaModel<{
276
+ id: {
277
+ type: _lssm_lib_schema526.FieldType<string, string>;
278
+ isOptional: false;
279
+ };
280
+ stepId: {
281
+ type: _lssm_lib_schema526.FieldType<string, string>;
282
+ isOptional: true;
283
+ };
284
+ level: {
285
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
286
+ isOptional: false;
287
+ };
288
+ message: {
289
+ type: _lssm_lib_schema526.FieldType<string, string>;
290
+ isOptional: false;
291
+ };
292
+ data: {
293
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
294
+ isOptional: true;
295
+ };
296
+ source: {
297
+ type: _lssm_lib_schema526.FieldType<string, string>;
298
+ isOptional: true;
299
+ };
300
+ traceId: {
301
+ type: _lssm_lib_schema526.FieldType<string, string>;
302
+ isOptional: true;
303
+ };
304
+ spanId: {
305
+ type: _lssm_lib_schema526.FieldType<string, string>;
306
+ isOptional: true;
307
+ };
308
+ timestamp: {
309
+ type: _lssm_lib_schema526.FieldType<Date, string>;
310
+ isOptional: false;
311
+ };
312
+ }>;
313
+ isArray: true;
314
+ isOptional: true;
315
+ };
316
+ agent: {
317
+ type: _lssm_lib_schema526.SchemaModel<{
318
+ id: {
319
+ type: _lssm_lib_schema526.FieldType<string, string>;
320
+ isOptional: false;
321
+ };
322
+ name: {
323
+ type: _lssm_lib_schema526.FieldType<string, string>;
324
+ isOptional: false;
325
+ };
326
+ modelProvider: {
327
+ type: _lssm_lib_schema526.FieldType<string, string>;
328
+ isOptional: false;
329
+ };
330
+ modelName: {
331
+ type: _lssm_lib_schema526.FieldType<string, string>;
332
+ isOptional: false;
333
+ };
334
+ }>;
335
+ isOptional: true;
336
+ };
337
+ }>;
338
+ declare const RunSummaryModel: _lssm_lib_schema526.SchemaModel<{
339
+ id: {
340
+ type: _lssm_lib_schema526.FieldType<string, string>;
341
+ isOptional: false;
342
+ };
343
+ agentId: {
344
+ type: _lssm_lib_schema526.FieldType<string, string>;
345
+ isOptional: false;
346
+ };
347
+ agentName: {
348
+ type: _lssm_lib_schema526.FieldType<string, string>;
349
+ isOptional: false;
350
+ };
351
+ status: {
352
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
353
+ isOptional: false;
354
+ };
355
+ totalTokens: {
356
+ type: _lssm_lib_schema526.FieldType<number, number>;
357
+ isOptional: false;
358
+ };
359
+ durationMs: {
360
+ type: _lssm_lib_schema526.FieldType<number, number>;
361
+ isOptional: true;
362
+ };
363
+ estimatedCostUsd: {
364
+ type: _lssm_lib_schema526.FieldType<number, number>;
365
+ isOptional: true;
366
+ };
367
+ queuedAt: {
368
+ type: _lssm_lib_schema526.FieldType<Date, string>;
369
+ isOptional: false;
370
+ };
371
+ completedAt: {
372
+ type: _lssm_lib_schema526.FieldType<Date, string>;
373
+ isOptional: true;
374
+ };
375
+ }>;
376
+ declare const TimelineDataPointModel: _lssm_lib_schema526.SchemaModel<{
377
+ period: {
378
+ type: _lssm_lib_schema526.FieldType<string, string>;
379
+ isOptional: false;
380
+ };
381
+ runs: {
382
+ type: _lssm_lib_schema526.FieldType<number, number>;
383
+ isOptional: false;
384
+ };
385
+ tokens: {
386
+ type: _lssm_lib_schema526.FieldType<number, number>;
387
+ isOptional: false;
388
+ };
389
+ costUsd: {
390
+ type: _lssm_lib_schema526.FieldType<number, number>;
391
+ isOptional: false;
392
+ };
393
+ avgDurationMs: {
394
+ type: _lssm_lib_schema526.FieldType<number, number>;
395
+ isOptional: false;
396
+ };
397
+ }>;
398
+ /**
399
+ * ExecuteAgentCommand - Starts a new agent run
400
+ */
401
+ declare const ExecuteAgentCommand: _lssm_lib_contracts19.ContractSpec<_lssm_lib_schema526.SchemaModel<{
402
+ agentId: {
403
+ type: _lssm_lib_schema526.FieldType<string, string>;
404
+ isOptional: false;
405
+ };
406
+ input: {
407
+ type: _lssm_lib_schema526.SchemaModel<{
408
+ message: {
409
+ type: _lssm_lib_schema526.FieldType<string, string>;
410
+ isOptional: false;
411
+ };
412
+ context: {
413
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
414
+ isOptional: true;
415
+ };
416
+ }>;
417
+ isOptional: false;
418
+ };
419
+ sessionId: {
420
+ type: _lssm_lib_schema526.FieldType<string, string>;
421
+ isOptional: true;
422
+ };
423
+ metadata: {
424
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
425
+ isOptional: true;
426
+ };
427
+ stream: {
428
+ type: _lssm_lib_schema526.FieldType<boolean, boolean>;
429
+ isOptional: true;
430
+ };
431
+ maxIterations: {
432
+ type: _lssm_lib_schema526.FieldType<number, number>;
433
+ isOptional: true;
434
+ };
435
+ timeoutMs: {
436
+ type: _lssm_lib_schema526.FieldType<number, number>;
437
+ isOptional: true;
438
+ };
439
+ }>, _lssm_lib_schema526.SchemaModel<{
440
+ runId: {
441
+ type: _lssm_lib_schema526.FieldType<string, string>;
442
+ isOptional: false;
443
+ };
444
+ status: {
445
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
446
+ isOptional: false;
447
+ };
448
+ estimatedWaitMs: {
449
+ type: _lssm_lib_schema526.FieldType<number, number>;
450
+ isOptional: true;
451
+ };
452
+ }>, {
453
+ name: string;
454
+ version: number;
455
+ when: string;
456
+ payload: _lssm_lib_schema526.SchemaModel<{
457
+ id: {
458
+ type: _lssm_lib_schema526.FieldType<string, string>;
459
+ isOptional: false;
460
+ };
461
+ agentId: {
462
+ type: _lssm_lib_schema526.FieldType<string, string>;
463
+ isOptional: false;
464
+ };
465
+ agentName: {
466
+ type: _lssm_lib_schema526.FieldType<string, string>;
467
+ isOptional: false;
468
+ };
469
+ status: {
470
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
471
+ isOptional: false;
472
+ };
473
+ totalTokens: {
474
+ type: _lssm_lib_schema526.FieldType<number, number>;
475
+ isOptional: false;
476
+ };
477
+ durationMs: {
478
+ type: _lssm_lib_schema526.FieldType<number, number>;
479
+ isOptional: true;
480
+ };
481
+ estimatedCostUsd: {
482
+ type: _lssm_lib_schema526.FieldType<number, number>;
483
+ isOptional: true;
484
+ };
485
+ queuedAt: {
486
+ type: _lssm_lib_schema526.FieldType<Date, string>;
487
+ isOptional: false;
488
+ };
489
+ completedAt: {
490
+ type: _lssm_lib_schema526.FieldType<Date, string>;
491
+ isOptional: true;
492
+ };
493
+ }>;
494
+ }[]>;
495
+ /**
496
+ * CancelRunCommand - Cancels an in-progress run
497
+ */
498
+ declare const CancelRunCommand: _lssm_lib_contracts19.ContractSpec<_lssm_lib_schema526.SchemaModel<{
499
+ runId: {
500
+ type: _lssm_lib_schema526.FieldType<string, string>;
501
+ isOptional: false;
502
+ };
503
+ reason: {
504
+ type: _lssm_lib_schema526.FieldType<string, string>;
505
+ isOptional: true;
506
+ };
507
+ }>, _lssm_lib_schema526.SchemaModel<{
508
+ success: {
509
+ type: _lssm_lib_schema526.FieldType<boolean, boolean>;
510
+ isOptional: false;
511
+ };
512
+ status: {
513
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
514
+ isOptional: false;
515
+ };
516
+ }>, {
517
+ name: string;
518
+ version: number;
519
+ when: string;
520
+ payload: _lssm_lib_schema526.SchemaModel<{
521
+ id: {
522
+ type: _lssm_lib_schema526.FieldType<string, string>;
523
+ isOptional: false;
524
+ };
525
+ agentId: {
526
+ type: _lssm_lib_schema526.FieldType<string, string>;
527
+ isOptional: false;
528
+ };
529
+ agentName: {
530
+ type: _lssm_lib_schema526.FieldType<string, string>;
531
+ isOptional: false;
532
+ };
533
+ status: {
534
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
535
+ isOptional: false;
536
+ };
537
+ totalTokens: {
538
+ type: _lssm_lib_schema526.FieldType<number, number>;
539
+ isOptional: false;
540
+ };
541
+ durationMs: {
542
+ type: _lssm_lib_schema526.FieldType<number, number>;
543
+ isOptional: true;
544
+ };
545
+ estimatedCostUsd: {
546
+ type: _lssm_lib_schema526.FieldType<number, number>;
547
+ isOptional: true;
548
+ };
549
+ queuedAt: {
550
+ type: _lssm_lib_schema526.FieldType<Date, string>;
551
+ isOptional: false;
552
+ };
553
+ completedAt: {
554
+ type: _lssm_lib_schema526.FieldType<Date, string>;
555
+ isOptional: true;
556
+ };
557
+ }>;
558
+ }[]>;
559
+ /**
560
+ * GetRunQuery - Retrieves a run by ID
561
+ */
562
+ declare const GetRunQuery: _lssm_lib_contracts19.ContractSpec<_lssm_lib_schema526.SchemaModel<{
563
+ runId: {
564
+ type: _lssm_lib_schema526.FieldType<string, string>;
565
+ isOptional: false;
566
+ };
567
+ includeSteps: {
568
+ type: _lssm_lib_schema526.FieldType<boolean, boolean>;
569
+ isOptional: true;
570
+ };
571
+ includeLogs: {
572
+ type: _lssm_lib_schema526.FieldType<boolean, boolean>;
573
+ isOptional: true;
574
+ };
575
+ }>, _lssm_lib_schema526.SchemaModel<{
576
+ id: {
577
+ type: _lssm_lib_schema526.FieldType<string, string>;
578
+ isOptional: false;
579
+ };
580
+ organizationId: {
581
+ type: _lssm_lib_schema526.FieldType<string, string>;
582
+ isOptional: false;
583
+ };
584
+ agentId: {
585
+ type: _lssm_lib_schema526.FieldType<string, string>;
586
+ isOptional: false;
587
+ };
588
+ userId: {
589
+ type: _lssm_lib_schema526.FieldType<string, string>;
590
+ isOptional: true;
591
+ };
592
+ sessionId: {
593
+ type: _lssm_lib_schema526.FieldType<string, string>;
594
+ isOptional: true;
595
+ };
596
+ input: {
597
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
598
+ isOptional: false;
599
+ };
600
+ output: {
601
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
602
+ isOptional: true;
603
+ };
604
+ status: {
605
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
606
+ isOptional: false;
607
+ };
608
+ errorMessage: {
609
+ type: _lssm_lib_schema526.FieldType<string, string>;
610
+ isOptional: true;
611
+ };
612
+ errorCode: {
613
+ type: _lssm_lib_schema526.FieldType<string, string>;
614
+ isOptional: true;
615
+ };
616
+ totalTokens: {
617
+ type: _lssm_lib_schema526.FieldType<number, number>;
618
+ isOptional: false;
619
+ defaultValue: number;
620
+ };
621
+ promptTokens: {
622
+ type: _lssm_lib_schema526.FieldType<number, number>;
623
+ isOptional: false;
624
+ defaultValue: number;
625
+ };
626
+ completionTokens: {
627
+ type: _lssm_lib_schema526.FieldType<number, number>;
628
+ isOptional: false;
629
+ defaultValue: number;
630
+ };
631
+ totalIterations: {
632
+ type: _lssm_lib_schema526.FieldType<number, number>;
633
+ isOptional: false;
634
+ defaultValue: number;
635
+ };
636
+ durationMs: {
637
+ type: _lssm_lib_schema526.FieldType<number, number>;
638
+ isOptional: true;
639
+ };
640
+ estimatedCostUsd: {
641
+ type: _lssm_lib_schema526.FieldType<number, number>;
642
+ isOptional: true;
643
+ };
644
+ queuedAt: {
645
+ type: _lssm_lib_schema526.FieldType<Date, string>;
646
+ isOptional: false;
647
+ };
648
+ startedAt: {
649
+ type: _lssm_lib_schema526.FieldType<Date, string>;
650
+ isOptional: true;
651
+ };
652
+ completedAt: {
653
+ type: _lssm_lib_schema526.FieldType<Date, string>;
654
+ isOptional: true;
655
+ };
656
+ metadata: {
657
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
658
+ isOptional: true;
659
+ };
660
+ steps: {
661
+ type: _lssm_lib_schema526.SchemaModel<{
662
+ id: {
663
+ type: _lssm_lib_schema526.FieldType<string, string>;
664
+ isOptional: false;
665
+ };
666
+ stepNumber: {
667
+ type: _lssm_lib_schema526.FieldType<number, number>;
668
+ isOptional: false;
669
+ };
670
+ type: {
671
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
672
+ isOptional: false;
673
+ };
674
+ toolId: {
675
+ type: _lssm_lib_schema526.FieldType<string, string>;
676
+ isOptional: true;
677
+ };
678
+ toolName: {
679
+ type: _lssm_lib_schema526.FieldType<string, string>;
680
+ isOptional: true;
681
+ };
682
+ input: {
683
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
684
+ isOptional: true;
685
+ };
686
+ output: {
687
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
688
+ isOptional: true;
689
+ };
690
+ status: {
691
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
692
+ isOptional: false;
693
+ };
694
+ errorMessage: {
695
+ type: _lssm_lib_schema526.FieldType<string, string>;
696
+ isOptional: true;
697
+ };
698
+ tokensUsed: {
699
+ type: _lssm_lib_schema526.FieldType<number, number>;
700
+ isOptional: false;
701
+ defaultValue: number;
702
+ };
703
+ durationMs: {
704
+ type: _lssm_lib_schema526.FieldType<number, number>;
705
+ isOptional: true;
706
+ };
707
+ startedAt: {
708
+ type: _lssm_lib_schema526.FieldType<Date, string>;
709
+ isOptional: false;
710
+ };
711
+ completedAt: {
712
+ type: _lssm_lib_schema526.FieldType<Date, string>;
713
+ isOptional: true;
714
+ };
715
+ }>;
716
+ isArray: true;
717
+ isOptional: true;
718
+ };
719
+ logs: {
720
+ type: _lssm_lib_schema526.SchemaModel<{
721
+ id: {
722
+ type: _lssm_lib_schema526.FieldType<string, string>;
723
+ isOptional: false;
724
+ };
725
+ stepId: {
726
+ type: _lssm_lib_schema526.FieldType<string, string>;
727
+ isOptional: true;
728
+ };
729
+ level: {
730
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
731
+ isOptional: false;
732
+ };
733
+ message: {
734
+ type: _lssm_lib_schema526.FieldType<string, string>;
735
+ isOptional: false;
736
+ };
737
+ data: {
738
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
739
+ isOptional: true;
740
+ };
741
+ source: {
742
+ type: _lssm_lib_schema526.FieldType<string, string>;
743
+ isOptional: true;
744
+ };
745
+ traceId: {
746
+ type: _lssm_lib_schema526.FieldType<string, string>;
747
+ isOptional: true;
748
+ };
749
+ spanId: {
750
+ type: _lssm_lib_schema526.FieldType<string, string>;
751
+ isOptional: true;
752
+ };
753
+ timestamp: {
754
+ type: _lssm_lib_schema526.FieldType<Date, string>;
755
+ isOptional: false;
756
+ };
757
+ }>;
758
+ isArray: true;
759
+ isOptional: true;
760
+ };
761
+ agent: {
762
+ type: _lssm_lib_schema526.SchemaModel<{
763
+ id: {
764
+ type: _lssm_lib_schema526.FieldType<string, string>;
765
+ isOptional: false;
766
+ };
767
+ name: {
768
+ type: _lssm_lib_schema526.FieldType<string, string>;
769
+ isOptional: false;
770
+ };
771
+ modelProvider: {
772
+ type: _lssm_lib_schema526.FieldType<string, string>;
773
+ isOptional: false;
774
+ };
775
+ modelName: {
776
+ type: _lssm_lib_schema526.FieldType<string, string>;
777
+ isOptional: false;
778
+ };
779
+ }>;
780
+ isOptional: true;
781
+ };
782
+ }>, undefined>;
783
+ /**
784
+ * ListRunsQuery - Lists runs for an organization or agent
785
+ */
786
+ declare const ListRunsQuery: _lssm_lib_contracts19.ContractSpec<_lssm_lib_schema526.SchemaModel<{
787
+ organizationId: {
788
+ type: _lssm_lib_schema526.FieldType<string, string>;
789
+ isOptional: true;
790
+ };
791
+ agentId: {
792
+ type: _lssm_lib_schema526.FieldType<string, string>;
793
+ isOptional: true;
794
+ };
795
+ userId: {
796
+ type: _lssm_lib_schema526.FieldType<string, string>;
797
+ isOptional: true;
798
+ };
799
+ sessionId: {
800
+ type: _lssm_lib_schema526.FieldType<string, string>;
801
+ isOptional: true;
802
+ };
803
+ status: {
804
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
805
+ isOptional: true;
806
+ };
807
+ startDate: {
808
+ type: _lssm_lib_schema526.FieldType<Date, string>;
809
+ isOptional: true;
810
+ };
811
+ endDate: {
812
+ type: _lssm_lib_schema526.FieldType<Date, string>;
813
+ isOptional: true;
814
+ };
815
+ limit: {
816
+ type: _lssm_lib_schema526.FieldType<number, number>;
817
+ isOptional: true;
818
+ defaultValue: number;
819
+ };
820
+ offset: {
821
+ type: _lssm_lib_schema526.FieldType<number, number>;
822
+ isOptional: true;
823
+ defaultValue: number;
824
+ };
825
+ }>, _lssm_lib_schema526.SchemaModel<{
826
+ items: {
827
+ type: _lssm_lib_schema526.SchemaModel<{
828
+ id: {
829
+ type: _lssm_lib_schema526.FieldType<string, string>;
830
+ isOptional: false;
831
+ };
832
+ agentId: {
833
+ type: _lssm_lib_schema526.FieldType<string, string>;
834
+ isOptional: false;
835
+ };
836
+ agentName: {
837
+ type: _lssm_lib_schema526.FieldType<string, string>;
838
+ isOptional: false;
839
+ };
840
+ status: {
841
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
842
+ isOptional: false;
843
+ };
844
+ totalTokens: {
845
+ type: _lssm_lib_schema526.FieldType<number, number>;
846
+ isOptional: false;
847
+ };
848
+ durationMs: {
849
+ type: _lssm_lib_schema526.FieldType<number, number>;
850
+ isOptional: true;
851
+ };
852
+ estimatedCostUsd: {
853
+ type: _lssm_lib_schema526.FieldType<number, number>;
854
+ isOptional: true;
855
+ };
856
+ queuedAt: {
857
+ type: _lssm_lib_schema526.FieldType<Date, string>;
858
+ isOptional: false;
859
+ };
860
+ completedAt: {
861
+ type: _lssm_lib_schema526.FieldType<Date, string>;
862
+ isOptional: true;
863
+ };
864
+ }>;
865
+ isArray: true;
866
+ isOptional: false;
867
+ };
868
+ total: {
869
+ type: _lssm_lib_schema526.FieldType<number, number>;
870
+ isOptional: false;
871
+ };
872
+ hasMore: {
873
+ type: _lssm_lib_schema526.FieldType<boolean, boolean>;
874
+ isOptional: false;
875
+ };
876
+ }>, undefined>;
877
+ /**
878
+ * GetRunStepsQuery - Retrieves steps for a run
879
+ */
880
+ declare const GetRunStepsQuery: _lssm_lib_contracts19.ContractSpec<_lssm_lib_schema526.SchemaModel<{
881
+ runId: {
882
+ type: _lssm_lib_schema526.FieldType<string, string>;
883
+ isOptional: false;
884
+ };
885
+ }>, _lssm_lib_schema526.SchemaModel<{
886
+ steps: {
887
+ type: _lssm_lib_schema526.SchemaModel<{
888
+ id: {
889
+ type: _lssm_lib_schema526.FieldType<string, string>;
890
+ isOptional: false;
891
+ };
892
+ stepNumber: {
893
+ type: _lssm_lib_schema526.FieldType<number, number>;
894
+ isOptional: false;
895
+ };
896
+ type: {
897
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
898
+ isOptional: false;
899
+ };
900
+ toolId: {
901
+ type: _lssm_lib_schema526.FieldType<string, string>;
902
+ isOptional: true;
903
+ };
904
+ toolName: {
905
+ type: _lssm_lib_schema526.FieldType<string, string>;
906
+ isOptional: true;
907
+ };
908
+ input: {
909
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
910
+ isOptional: true;
911
+ };
912
+ output: {
913
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
914
+ isOptional: true;
915
+ };
916
+ status: {
917
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string, string, string]>;
918
+ isOptional: false;
919
+ };
920
+ errorMessage: {
921
+ type: _lssm_lib_schema526.FieldType<string, string>;
922
+ isOptional: true;
923
+ };
924
+ tokensUsed: {
925
+ type: _lssm_lib_schema526.FieldType<number, number>;
926
+ isOptional: false;
927
+ defaultValue: number;
928
+ };
929
+ durationMs: {
930
+ type: _lssm_lib_schema526.FieldType<number, number>;
931
+ isOptional: true;
932
+ };
933
+ startedAt: {
934
+ type: _lssm_lib_schema526.FieldType<Date, string>;
935
+ isOptional: false;
936
+ };
937
+ completedAt: {
938
+ type: _lssm_lib_schema526.FieldType<Date, string>;
939
+ isOptional: true;
940
+ };
941
+ }>;
942
+ isArray: true;
943
+ isOptional: false;
944
+ };
945
+ }>, undefined>;
946
+ /**
947
+ * GetRunLogsQuery - Retrieves logs for a run
948
+ */
949
+ declare const GetRunLogsQuery: _lssm_lib_contracts19.ContractSpec<_lssm_lib_schema526.SchemaModel<{
950
+ runId: {
951
+ type: _lssm_lib_schema526.FieldType<string, string>;
952
+ isOptional: false;
953
+ };
954
+ level: {
955
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
956
+ isOptional: true;
957
+ };
958
+ stepId: {
959
+ type: _lssm_lib_schema526.FieldType<string, string>;
960
+ isOptional: true;
961
+ };
962
+ limit: {
963
+ type: _lssm_lib_schema526.FieldType<number, number>;
964
+ isOptional: true;
965
+ defaultValue: number;
966
+ };
967
+ offset: {
968
+ type: _lssm_lib_schema526.FieldType<number, number>;
969
+ isOptional: true;
970
+ defaultValue: number;
971
+ };
972
+ }>, _lssm_lib_schema526.SchemaModel<{
973
+ items: {
974
+ type: _lssm_lib_schema526.SchemaModel<{
975
+ id: {
976
+ type: _lssm_lib_schema526.FieldType<string, string>;
977
+ isOptional: false;
978
+ };
979
+ stepId: {
980
+ type: _lssm_lib_schema526.FieldType<string, string>;
981
+ isOptional: true;
982
+ };
983
+ level: {
984
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
985
+ isOptional: false;
986
+ };
987
+ message: {
988
+ type: _lssm_lib_schema526.FieldType<string, string>;
989
+ isOptional: false;
990
+ };
991
+ data: {
992
+ type: _lssm_lib_schema526.FieldType<Record<string, unknown>, Record<string, unknown>>;
993
+ isOptional: true;
994
+ };
995
+ source: {
996
+ type: _lssm_lib_schema526.FieldType<string, string>;
997
+ isOptional: true;
998
+ };
999
+ traceId: {
1000
+ type: _lssm_lib_schema526.FieldType<string, string>;
1001
+ isOptional: true;
1002
+ };
1003
+ spanId: {
1004
+ type: _lssm_lib_schema526.FieldType<string, string>;
1005
+ isOptional: true;
1006
+ };
1007
+ timestamp: {
1008
+ type: _lssm_lib_schema526.FieldType<Date, string>;
1009
+ isOptional: false;
1010
+ };
1011
+ }>;
1012
+ isArray: true;
1013
+ isOptional: false;
1014
+ };
1015
+ total: {
1016
+ type: _lssm_lib_schema526.FieldType<number, number>;
1017
+ isOptional: false;
1018
+ };
1019
+ hasMore: {
1020
+ type: _lssm_lib_schema526.FieldType<boolean, boolean>;
1021
+ isOptional: false;
1022
+ };
1023
+ }>, undefined>;
1024
+ /**
1025
+ * GetRunMetricsQuery - Retrieves aggregated metrics for runs
1026
+ */
1027
+ declare const GetRunMetricsQuery: _lssm_lib_contracts19.ContractSpec<_lssm_lib_schema526.SchemaModel<{
1028
+ organizationId: {
1029
+ type: _lssm_lib_schema526.FieldType<string, string>;
1030
+ isOptional: false;
1031
+ };
1032
+ agentId: {
1033
+ type: _lssm_lib_schema526.FieldType<string, string>;
1034
+ isOptional: true;
1035
+ };
1036
+ startDate: {
1037
+ type: _lssm_lib_schema526.FieldType<Date, string>;
1038
+ isOptional: false;
1039
+ };
1040
+ endDate: {
1041
+ type: _lssm_lib_schema526.FieldType<Date, string>;
1042
+ isOptional: false;
1043
+ };
1044
+ granularity: {
1045
+ type: _lssm_lib_schema526.EnumType<[string, string, string, string]>;
1046
+ isOptional: true;
1047
+ defaultValue: string;
1048
+ };
1049
+ }>, _lssm_lib_schema526.SchemaModel<{
1050
+ totalRuns: {
1051
+ type: _lssm_lib_schema526.FieldType<number, number>;
1052
+ isOptional: false;
1053
+ };
1054
+ completedRuns: {
1055
+ type: _lssm_lib_schema526.FieldType<number, number>;
1056
+ isOptional: false;
1057
+ };
1058
+ failedRuns: {
1059
+ type: _lssm_lib_schema526.FieldType<number, number>;
1060
+ isOptional: false;
1061
+ };
1062
+ totalTokens: {
1063
+ type: _lssm_lib_schema526.FieldType<number, number>;
1064
+ isOptional: false;
1065
+ };
1066
+ totalCostUsd: {
1067
+ type: _lssm_lib_schema526.FieldType<number, number>;
1068
+ isOptional: false;
1069
+ };
1070
+ averageDurationMs: {
1071
+ type: _lssm_lib_schema526.FieldType<number, number>;
1072
+ isOptional: false;
1073
+ };
1074
+ successRate: {
1075
+ type: _lssm_lib_schema526.FieldType<number, number>;
1076
+ isOptional: false;
1077
+ };
1078
+ timeline: {
1079
+ type: _lssm_lib_schema526.SchemaModel<{
1080
+ period: {
1081
+ type: _lssm_lib_schema526.FieldType<string, string>;
1082
+ isOptional: false;
1083
+ };
1084
+ runs: {
1085
+ type: _lssm_lib_schema526.FieldType<number, number>;
1086
+ isOptional: false;
1087
+ };
1088
+ tokens: {
1089
+ type: _lssm_lib_schema526.FieldType<number, number>;
1090
+ isOptional: false;
1091
+ };
1092
+ costUsd: {
1093
+ type: _lssm_lib_schema526.FieldType<number, number>;
1094
+ isOptional: false;
1095
+ };
1096
+ avgDurationMs: {
1097
+ type: _lssm_lib_schema526.FieldType<number, number>;
1098
+ isOptional: false;
1099
+ };
1100
+ }>;
1101
+ isArray: true;
1102
+ isOptional: false;
1103
+ };
1104
+ }>, undefined>;
1105
+ //#endregion
1106
+ export { CancelRunCommand, ExecuteAgentCommand, GetRunLogsQuery, GetRunMetricsQuery, GetRunQuery, GetRunStepsQuery, GranularityEnum, ListRunsQuery, LogLevelEnum, RunAgentRefModel, RunInputModel, RunLogModel, RunModel, RunStatusEnum, RunStepModel, RunStepTypeEnum, RunSummaryModel, TimelineDataPointModel };