@vertesia/common 1.5.0 → 1.6.0-dev.20260918.061604Z

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 (179) hide show
  1. package/lib/access-control-values.d.ts +13 -0
  2. package/lib/access-control-values.d.ts.map +1 -1
  3. package/lib/access-control-values.js +24 -0
  4. package/lib/access-control-values.js.map +1 -1
  5. package/lib/api-contract/components.generated.json +4446 -2194
  6. package/lib/api-schemas/account.d.ts +3 -10
  7. package/lib/api-schemas/account.d.ts.map +1 -1
  8. package/lib/api-schemas/account.js +5 -9
  9. package/lib/api-schemas/account.js.map +1 -1
  10. package/lib/api-schemas/adapter.d.ts.map +1 -1
  11. package/lib/api-schemas/adapter.js +8 -1
  12. package/lib/api-schemas/adapter.js.map +1 -1
  13. package/lib/api-schemas/agent-communication.d.ts +1 -0
  14. package/lib/api-schemas/agent-communication.d.ts.map +1 -1
  15. package/lib/api-schemas/agent-communication.js +6 -0
  16. package/lib/api-schemas/agent-communication.js.map +1 -1
  17. package/lib/api-schemas/agent-runs.d.ts +5286 -903
  18. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  19. package/lib/api-schemas/agent-runs.js +366 -1
  20. package/lib/api-schemas/agent-runs.js.map +1 -1
  21. package/lib/api-schemas/apikey.d.ts +55 -0
  22. package/lib/api-schemas/apikey.d.ts.map +1 -1
  23. package/lib/api-schemas/apikey.js +30 -0
  24. package/lib/api-schemas/apikey.js.map +1 -1
  25. package/lib/api-schemas/app-runtime.d.ts +1240 -22
  26. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  27. package/lib/api-schemas/content.d.ts +435 -0
  28. package/lib/api-schemas/content.d.ts.map +1 -1
  29. package/lib/api-schemas/delegation.d.ts +35 -0
  30. package/lib/api-schemas/delegation.d.ts.map +1 -0
  31. package/lib/api-schemas/delegation.js +21 -0
  32. package/lib/api-schemas/delegation.js.map +1 -0
  33. package/lib/api-schemas/document-processing.d.ts +261 -0
  34. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  35. package/lib/api-schemas/emit-json-schema.d.ts +5 -0
  36. package/lib/api-schemas/emit-json-schema.d.ts.map +1 -0
  37. package/lib/api-schemas/emit-json-schema.js +37 -0
  38. package/lib/api-schemas/emit-json-schema.js.map +1 -0
  39. package/lib/api-schemas/environment.d.ts +18 -0
  40. package/lib/api-schemas/environment.d.ts.map +1 -1
  41. package/lib/api-schemas/events.d.ts +783 -0
  42. package/lib/api-schemas/events.d.ts.map +1 -1
  43. package/lib/api-schemas/index.d.ts +1 -0
  44. package/lib/api-schemas/index.d.ts.map +1 -1
  45. package/lib/api-schemas/index.js +1 -0
  46. package/lib/api-schemas/index.js.map +1 -1
  47. package/lib/api-schemas/interaction.d.ts +3939 -91
  48. package/lib/api-schemas/interaction.d.ts.map +1 -1
  49. package/lib/api-schemas/interaction.js +14 -3
  50. package/lib/api-schemas/interaction.js.map +1 -1
  51. package/lib/api-schemas/oauth-server.d.ts +1 -0
  52. package/lib/api-schemas/oauth-server.d.ts.map +1 -1
  53. package/lib/api-schemas/oauth-server.js +3 -0
  54. package/lib/api-schemas/oauth-server.js.map +1 -1
  55. package/lib/api-schemas/process-agent-policy.d.ts +69 -0
  56. package/lib/api-schemas/process-agent-policy.d.ts.map +1 -0
  57. package/lib/api-schemas/process-agent-policy.js +154 -0
  58. package/lib/api-schemas/process-agent-policy.js.map +1 -0
  59. package/lib/api-schemas/process.d.ts +1260 -0
  60. package/lib/api-schemas/process.d.ts.map +1 -1
  61. package/lib/api-schemas/process.js +29 -1
  62. package/lib/api-schemas/process.js.map +1 -1
  63. package/lib/api-schemas/project-configuration.d.ts +883 -8
  64. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  65. package/lib/api-schemas/project-configuration.js +3 -2
  66. package/lib/api-schemas/project-configuration.js.map +1 -1
  67. package/lib/api-schemas/project.d.ts +1330 -22
  68. package/lib/api-schemas/project.d.ts.map +1 -1
  69. package/lib/api-schemas/registry.d.ts +24347 -5694
  70. package/lib/api-schemas/registry.d.ts.map +1 -1
  71. package/lib/api-schemas/registry.js +50 -8
  72. package/lib/api-schemas/registry.js.map +1 -1
  73. package/lib/api-schemas/store.d.ts +4427 -77
  74. package/lib/api-schemas/store.d.ts.map +1 -1
  75. package/lib/api-schemas/sts.d.ts +6 -0
  76. package/lib/api-schemas/sts.d.ts.map +1 -1
  77. package/lib/api-schemas/sts.js +3 -0
  78. package/lib/api-schemas/sts.js.map +1 -1
  79. package/lib/api-schemas/workflow-runs.d.ts +189 -0
  80. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  81. package/lib/api-schemas/workflow-runs.js +14 -0
  82. package/lib/api-schemas/workflow-runs.js.map +1 -1
  83. package/lib/apikey.d.ts +8 -0
  84. package/lib/apikey.d.ts.map +1 -1
  85. package/lib/apikey.js.map +1 -1
  86. package/lib/delegation.d.ts +13 -0
  87. package/lib/delegation.d.ts.map +1 -0
  88. package/lib/delegation.js +2 -0
  89. package/lib/delegation.js.map +1 -0
  90. package/lib/environment.d.ts +1 -0
  91. package/lib/environment.d.ts.map +1 -1
  92. package/lib/index.d.ts +1 -0
  93. package/lib/index.d.ts.map +1 -1
  94. package/lib/index.js.map +1 -1
  95. package/lib/oauth-scopes.d.ts.map +1 -1
  96. package/lib/oauth-scopes.js +3 -1
  97. package/lib/oauth-scopes.js.map +1 -1
  98. package/lib/project-values.d.ts +1 -0
  99. package/lib/project-values.d.ts.map +1 -1
  100. package/lib/project-values.js +1 -0
  101. package/lib/project-values.js.map +1 -1
  102. package/lib/store/agent-run-values.d.ts +25 -0
  103. package/lib/store/agent-run-values.d.ts.map +1 -0
  104. package/lib/store/agent-run-values.js +25 -0
  105. package/lib/store/agent-run-values.js.map +1 -0
  106. package/lib/store/agent-run.d.ts +22 -2
  107. package/lib/store/agent-run.d.ts.map +1 -1
  108. package/lib/store/agent-run.js +1 -1
  109. package/lib/store/agent-run.js.map +1 -1
  110. package/lib/store/conversation-state.d.ts +1 -1
  111. package/lib/store/conversation-state.d.ts.map +1 -1
  112. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
  113. package/lib/store/intake-policy-schema.generated.js +124 -0
  114. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  115. package/lib/store/process.d.ts +17 -0
  116. package/lib/store/process.d.ts.map +1 -1
  117. package/lib/store/process.js.map +1 -1
  118. package/lib/store/schedule.d.ts +62 -25
  119. package/lib/store/schedule.d.ts.map +1 -1
  120. package/lib/store/schedule.js +2 -2
  121. package/lib/store/schedule.js.map +1 -1
  122. package/lib/store/workflow.d.ts +2 -0
  123. package/lib/store/workflow.d.ts.map +1 -1
  124. package/lib/store/workflow.js.map +1 -1
  125. package/lib/vertesia-common.js +2 -2
  126. package/lib/vertesia-common.js.map +1 -1
  127. package/lib/workflow-analytics.d.ts +230 -2
  128. package/lib/workflow-analytics.d.ts.map +1 -1
  129. package/lib/workflow-analytics.js +8 -0
  130. package/lib/workflow-analytics.js.map +1 -1
  131. package/package.json +8 -8
  132. package/src/access-control-values.ts +26 -0
  133. package/src/api-contract/components.contract.test.ts +2 -2
  134. package/src/api-contract/components.generated.json +4446 -2194
  135. package/src/api-schemas/account-apikey.test.ts +60 -0
  136. package/src/api-schemas/account.contract.test.ts +2 -1
  137. package/src/api-schemas/account.ts +5 -9
  138. package/src/api-schemas/adapter-edge-cases.test.ts +19 -0
  139. package/src/api-schemas/adapter.ts +8 -1
  140. package/src/api-schemas/agent-communication.ts +6 -0
  141. package/src/api-schemas/agent-history.contract.test.ts +42 -0
  142. package/src/api-schemas/agent-runs.contract.test.ts +240 -0
  143. package/src/api-schemas/agent-runs.ts +399 -0
  144. package/src/api-schemas/apikey.ts +31 -0
  145. package/src/api-schemas/bundle-isolation.test.ts +5 -41
  146. package/src/api-schemas/delegation.ts +21 -0
  147. package/src/api-schemas/emit-json-schema.test.ts +36 -0
  148. package/src/api-schemas/emit-json-schema.ts +40 -0
  149. package/src/api-schemas/environment.contract.test.ts +3 -0
  150. package/src/api-schemas/index.ts +1 -0
  151. package/src/api-schemas/interaction.contract.test.ts +23 -0
  152. package/src/api-schemas/interaction.ts +15 -3
  153. package/src/api-schemas/llumiverse.contract.test.ts +3 -9
  154. package/src/api-schemas/oauth-server.ts +4 -0
  155. package/src/api-schemas/process-agent-policy.ts +167 -0
  156. package/src/api-schemas/process.contract.test.ts +115 -0
  157. package/src/api-schemas/process.ts +31 -1
  158. package/src/api-schemas/project-configuration.ts +3 -2
  159. package/src/api-schemas/project.contract.test.ts +15 -0
  160. package/src/api-schemas/registry.ts +59 -10
  161. package/src/api-schemas/store.contract.test.ts +4 -126
  162. package/src/api-schemas/sts.ts +3 -0
  163. package/src/api-schemas/workflow-runs.ts +16 -0
  164. package/src/api-schemas/zeno-response-contracts.test.ts +36 -0
  165. package/src/apikey.ts +13 -0
  166. package/src/delegation.ts +18 -0
  167. package/src/index.ts +6 -0
  168. package/src/oauth-scopes.ts +3 -1
  169. package/src/project-values.ts +1 -0
  170. package/src/roles.test.ts +1 -0
  171. package/src/store/agent-run-values.ts +27 -0
  172. package/src/store/agent-run.ts +36 -0
  173. package/src/store/conversation-state.ts +1 -1
  174. package/src/store/intake-policy-schema.generated.ts +125 -0
  175. package/src/store/process.ts +22 -0
  176. package/src/store/schedule.test.ts +59 -0
  177. package/src/store/schedule.ts +91 -27
  178. package/src/store/workflow.ts +2 -0
  179. package/src/workflow-analytics.ts +274 -1
@@ -4,6 +4,9 @@
4
4
  * These types define the event-based model for agent observability.
5
5
  */
6
6
 
7
+ import type { AgentToolApprovalClass } from './apps.js';
8
+ import type { AgentRunFeedbackRating, AgentRunFeedbackReasonCode } from './store/agent-run.js';
9
+
7
10
  // ============================================================================
8
11
  // Enums
9
12
  // ============================================================================
@@ -16,6 +19,14 @@ export enum AgentEventType {
16
19
  AgentRunCompleted = 'agent_run_completed',
17
20
  LlmCall = 'llm_call',
18
21
  ToolCall = 'tool_call',
22
+ /** Deterministic evaluation of one agent turn, emitted when the turn ends */
23
+ TurnEvaluation = 'turn_evaluation',
24
+ /** A user rating on an agent run, emitted by the server when it is recorded */
25
+ Feedback = 'feedback',
26
+ /** Verdict of the LLM judge on one turn, emitted by the judge workflow */
27
+ TurnJudgement = 'turn_judgement',
28
+ /** The stall circuit breaker acted: a corrective was injected, or the loop was stopped */
29
+ StallBreaker = 'stall_breaker',
19
30
  }
20
31
 
21
32
  /**
@@ -50,6 +61,61 @@ export enum TelemetryToolType {
50
61
  Skill = 'skill',
51
62
  }
52
63
 
64
+ // ============================================================================
65
+ // Evaluation vocabularies
66
+ // ============================================================================
67
+
68
+ /** How an agent turn ended. `ask_user` never ends a turn; its wait is measured inside the turn. */
69
+ export type TurnTerminalType = 'answer' | 'user_stopped' | 'completed' | 'failed' | 'cancelled' | 'interrupted';
70
+
71
+ /** Worst deterministic detector level. `none` means no detector fired, not that the turn succeeded. */
72
+ export type EvaluationSeverity = 'none' | 'low' | 'medium' | 'high';
73
+
74
+ /** Reasons behind an evaluation severity. */
75
+ export type TurnEvaluationFlag =
76
+ | 'user_stopped_after_failure'
77
+ | 'mutation_unsuccessful'
78
+ | 'run_failed'
79
+ | 'unrecovered_tool'
80
+ | 'fail_streak'
81
+ | 'identical_retry'
82
+ | 'reread'
83
+ | 'high_gather'
84
+ | 'overhead'
85
+ | 'followup_after_answer'
86
+ | 'approval_denied'
87
+ | 'circuit_breaker';
88
+
89
+ /** Coarse class of a tool error, derived from the error text. */
90
+ export type ToolErrorClass = 'schema' | 'platform' | 'config' | 'environment' | 'other';
91
+
92
+ /** Number of tool errors per class in a turn. */
93
+ export interface ToolErrorClassCounts {
94
+ schema: number;
95
+ platform: number;
96
+ config: number;
97
+ environment: number;
98
+ other: number;
99
+ }
100
+
101
+ /** The deployment that ingested an event; stamped by the server, never by the producer. */
102
+ export interface TelemetryDeployment {
103
+ /** Environment name, e.g. `staging`, `dev-my-branch`, `production`, `preview`, `preprod` */
104
+ env: string;
105
+ /** Environment group: `dev`, `staging`, `preview` or `production` */
106
+ group: string;
107
+ /** Commit SHA of the ingesting server */
108
+ version: string;
109
+ /** Region short name when known */
110
+ region?: string;
111
+ }
112
+
113
+ /** The process that produced an event, for diagnosing worker versions. */
114
+ export interface TelemetryProducer {
115
+ /** Commit SHA of the producer */
116
+ version: string;
117
+ }
118
+
53
119
  // ============================================================================
54
120
  // Base Event
55
121
  // ============================================================================
@@ -60,6 +126,12 @@ export enum TelemetryToolType {
60
126
  interface BaseAgentEvent {
61
127
  /** Type of the event */
62
128
  eventType: AgentEventType;
129
+ /** Deterministic id for events that can be delivered more than once (activity retries) */
130
+ eventId?: string;
131
+ /** Set by the ingesting server; producers must leave it undefined */
132
+ deployment?: TelemetryDeployment;
133
+ /** Set by the producer from its own build metadata */
134
+ producer?: TelemetryProducer;
63
135
  /** ISO 8601 timestamp */
64
136
  timestamp: string;
65
137
  /** Globally unique ID for this agent run */
@@ -210,6 +282,199 @@ export interface ToolCallEvent extends BaseAgentEvent {
210
282
  errorMessage?: string;
211
283
  /** Whether this tool spawned a child workflow */
212
284
  spawnedChildWorkflow?: boolean;
285
+ /** Approval class of the resolved tool; undefined when the tool could not be resolved */
286
+ approvalClass?: AgentToolApprovalClass;
287
+ /** Error class derived from the error message when the call failed */
288
+ errorClass?: ToolErrorClass;
289
+ /** Hash of the tool name and raw input, the same one the turn evaluation uses */
290
+ signatureHash?: string;
291
+ /** Workstream the call belongs to (`main` for the primary conversation) */
292
+ workstreamId?: string;
293
+ }
294
+
295
+ // ============================================================================
296
+ // Evaluation Events
297
+ // ============================================================================
298
+
299
+ /** One tool call as observed by the turn evaluation, in call order. */
300
+ export interface TurnToolObservation {
301
+ /** Position of the call within the turn, starting at 1 */
302
+ seq: number;
303
+ /** Tool use ID from the LLM */
304
+ toolUseId: string;
305
+ /** Tool name */
306
+ name: string;
307
+ /** Approval class of the resolved tool; undefined when unresolved */
308
+ approvalClass?: AgentToolApprovalClass;
309
+ /** Whether the call succeeded */
310
+ ok: boolean;
311
+ /** Error class when the call failed */
312
+ errorClass?: ToolErrorClass;
313
+ /** Hash of the tool name and raw input */
314
+ sig: string;
315
+ /** Duration in milliseconds */
316
+ durationMs: number;
317
+ }
318
+
319
+ /** What the stall circuit breaker did. */
320
+ export type StallBreakerAction = 'corrective' | 'trip';
321
+
322
+ /**
323
+ * Emitted the moment the stall circuit breaker acts on a repeated tool call: `corrective` when it
324
+ * appends its warning to the tool results, `trip` when the model repeated anyway and the loop was
325
+ * stopped (the run fails, or an interactive run hands control back to the user). The closing turn
326
+ * evaluation counts these too; this row carries the tools and the measure at the time.
327
+ */
328
+ export interface StallBreakerEvent extends BaseAgentEvent {
329
+ eventType: AgentEventType.StallBreaker;
330
+ action: StallBreakerAction;
331
+ /** Tools of the repeated call set */
332
+ toolNames: string[];
333
+ /** Consecutive repeats of the identical call set */
334
+ repeatCount: number;
335
+ /** The measure the breaker acted on: the repeat count, or the windowed unproductive run */
336
+ stallMeasure: number;
337
+ /** Whether every result of the repeated call set was an error */
338
+ allErrored: boolean;
339
+ iteration: number;
340
+ interactive: boolean;
341
+ workstreamId: string;
342
+ }
343
+
344
+ /**
345
+ * Emitted when an agent turn ends. One turn is the agent work between two user hand-offs.
346
+ * Deterministic: computed inside the workflow from what the workflow observed.
347
+ */
348
+ export interface TurnEvaluationEvent extends BaseAgentEvent {
349
+ eventType: AgentEventType.TurnEvaluation;
350
+ /** Shape version of this event */
351
+ schemaVersion: number;
352
+ /** Version of the detector rules that produced severity and flags */
353
+ detectorVersion: number;
354
+ /** Workstream the turn belongs to (`main` for the primary conversation) */
355
+ workstreamId: string;
356
+ /** Turn number within the workstream, starting at 1 */
357
+ turnSeq: number;
358
+ /** How the turn ended */
359
+ terminalType: TurnTerminalType;
360
+ /** True when the turn started on a continuation whose predecessor recorded nothing */
361
+ partial?: boolean;
362
+ /** ISO 8601 start of the turn */
363
+ startedAt: string;
364
+ /** ISO 8601 end of the turn */
365
+ endedAt: string;
366
+ /** Wall time between start and end */
367
+ durationMs: number;
368
+ /** Time the agent was working, excluding user and approval waits */
369
+ activeMs: number;
370
+ /** Time spent blocked in `ask_user` */
371
+ askUserWaitMs: number;
372
+ /** Time spent waiting for tool approvals */
373
+ approvalWaitMs: number;
374
+ /** Time from turn start to the first answer, when one was given */
375
+ timeToFirstAnswerMs?: number;
376
+ toolCalls: number;
377
+ errorToolResults: number;
378
+ /** Longest run of consecutive failures of the same tool */
379
+ maxFailStreak: number;
380
+ /** Failed calls whose signature had already failed in this turn */
381
+ identicalRetryCount: number;
382
+ /** Tools that failed and never succeeded afterwards in this turn */
383
+ unrecoveredTools: string[];
384
+ errorClasses: ToolErrorClassCounts;
385
+ /** Calls to read-only tools */
386
+ gatherCalls: number;
387
+ /** gatherCalls / toolCalls; undefined when no tool was called */
388
+ gatherRatio?: number;
389
+ /** Whether a side-effecting tool was called */
390
+ mutationAttempted: boolean;
391
+ /** Whether at least one side-effecting call succeeded */
392
+ mutationSucceeded: boolean;
393
+ /** Read calls repeating an earlier read signature */
394
+ rereadCount: number;
395
+ /** Calls to planning/thinking/control tools */
396
+ overheadCalls: number;
397
+ skillsLoaded: number;
398
+ /** Tools cancelled because a stop or new input interrupted them */
399
+ interruptedToolCalls: number;
400
+ llmCalls: number;
401
+ promptTokens: number;
402
+ completionTokens: number;
403
+ cachedTokens: number;
404
+ /** Completion tokens of LLM calls that followed a failed tool batch */
405
+ retryCompletionTokens: number;
406
+ approvalsRequested: number;
407
+ approvalsDenied: number;
408
+ stopRequests: number;
409
+ /**
410
+ * Stall correctives injected: the model was warned it kept repeating the same call.
411
+ * Absent on events from producers that predate the counter; read as 0.
412
+ */
413
+ stallCorrectives?: number;
414
+ /** Stall circuit-breaker trips: the model ignored the corrective and the loop was stopped. Same caveat. */
415
+ stallTrips?: number;
416
+ /** An unprompted user message after an answer was followed by substantive tool work */
417
+ followupAfterAnswer: boolean;
418
+ severity: EvaluationSeverity;
419
+ flags: TurnEvaluationFlag[];
420
+ /** Class of the error that ended the run, on `failed` turns */
421
+ terminalErrorClass?: string;
422
+ /** Bounded list of tool observations in call order */
423
+ tools: TurnToolObservation[];
424
+ /** Observations dropped because the list was full */
425
+ toolsTruncated: number;
426
+ }
427
+
428
+ /**
429
+ * Emitted by the server when a user rating is recorded. Carries no comment text.
430
+ */
431
+ export interface FeedbackEvent extends BaseAgentEvent {
432
+ eventType: AgentEventType.Feedback;
433
+ /** Client-generated idempotency key of the rating */
434
+ feedbackId: string;
435
+ rating: AgentRunFeedbackRating;
436
+ reasonCode?: AgentRunFeedbackReasonCode;
437
+ hasComment: boolean;
438
+ /** Whether the rating targets one message rather than the run */
439
+ messageScoped: boolean;
440
+ messageSeq?: number;
441
+ /** Whether this rating replaced an earlier one from the same user on the same scope */
442
+ replaced: boolean;
443
+ }
444
+
445
+ /** Why the judge looked at a run. */
446
+ export type JudgeGateReason = 'signal' | 'sample';
447
+
448
+ /** What the judge run produced. */
449
+ export type JudgeOutcome = 'judged' | 'skipped_unarchived' | 'failed';
450
+
451
+ /** The judge's reading of a turn. */
452
+ export type JudgeVerdict = 'success' | 'partial' | 'failure';
453
+
454
+ /**
455
+ * Emitted by the judge workflow for each turn it evaluated (or once with a non-judged outcome).
456
+ */
457
+ export interface TurnJudgementEvent extends BaseAgentEvent {
458
+ eventType: AgentEventType.TurnJudgement;
459
+ /** Evaluation revision the judge run was started for */
460
+ evaluationRev: number;
461
+ workstreamId: string;
462
+ /** Turn judged; 0 when the outcome is not `judged` */
463
+ turnSeq: number;
464
+ gate: JudgeGateReason;
465
+ /** Sampling rate in force when the gate was evaluated */
466
+ sampleRate: number;
467
+ /** Probability that this run was selected, for weighted calibration */
468
+ selectedProbability: number;
469
+ outcome: JudgeOutcome;
470
+ verdict?: JudgeVerdict;
471
+ /** 0..1 */
472
+ score?: number;
473
+ reasons?: string[];
474
+ /** Version of the judge prompt */
475
+ promptVersion: string;
476
+ /** Detector version of the evaluation the judge was compared against */
477
+ detectorVersion?: number;
213
478
  }
214
479
 
215
480
  // ============================================================================
@@ -237,7 +502,15 @@ export interface NestedInteractionEvent extends LlmCallEvent {
237
502
  /**
238
503
  * @discriminator eventType
239
504
  */
240
- export type AgentEvent = AgentRunStartedEvent | AgentRunCompletedEvent | LlmCallEvent | ToolCallEvent;
505
+ export type AgentEvent =
506
+ | AgentRunStartedEvent
507
+ | AgentRunCompletedEvent
508
+ | LlmCallEvent
509
+ | ToolCallEvent
510
+ | TurnEvaluationEvent
511
+ | FeedbackEvent
512
+ | TurnJudgementEvent
513
+ | StallBreakerEvent;
241
514
 
242
515
  /**
243
516
  * Workflow Analytics Types