@vertesia/common 1.5.0-dev.20260910.051115Z → 1.6.0-dev.20260912.110338Z
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/lib/access-control-values.d.ts +1 -0
- package/lib/access-control-values.d.ts.map +1 -1
- package/lib/access-control-values.js +1 -0
- package/lib/access-control-values.js.map +1 -1
- package/lib/api-contract/components.generated.json +4188 -2267
- package/lib/api-schemas/adapter.d.ts.map +1 -1
- package/lib/api-schemas/adapter.js +8 -1
- package/lib/api-schemas/adapter.js.map +1 -1
- package/lib/api-schemas/agent-communication.d.ts +1 -0
- package/lib/api-schemas/agent-communication.d.ts.map +1 -1
- package/lib/api-schemas/agent-communication.js +6 -0
- package/lib/api-schemas/agent-communication.js.map +1 -1
- package/lib/api-schemas/agent-runs.d.ts +5271 -903
- package/lib/api-schemas/agent-runs.d.ts.map +1 -1
- package/lib/api-schemas/agent-runs.js +343 -1
- package/lib/api-schemas/agent-runs.js.map +1 -1
- package/lib/api-schemas/app-runtime.d.ts +1240 -22
- package/lib/api-schemas/app-runtime.d.ts.map +1 -1
- package/lib/api-schemas/content.d.ts +435 -0
- package/lib/api-schemas/content.d.ts.map +1 -1
- package/lib/api-schemas/data-store.d.ts +1 -0
- package/lib/api-schemas/data-store.d.ts.map +1 -1
- package/lib/api-schemas/data-store.js +7 -0
- package/lib/api-schemas/data-store.js.map +1 -1
- package/lib/api-schemas/delegation.d.ts +35 -0
- package/lib/api-schemas/delegation.d.ts.map +1 -0
- package/lib/api-schemas/delegation.js +21 -0
- package/lib/api-schemas/delegation.js.map +1 -0
- package/lib/api-schemas/document-processing.d.ts +261 -0
- package/lib/api-schemas/document-processing.d.ts.map +1 -1
- package/lib/api-schemas/emit-json-schema.d.ts +5 -0
- package/lib/api-schemas/emit-json-schema.d.ts.map +1 -0
- package/lib/api-schemas/emit-json-schema.js +37 -0
- package/lib/api-schemas/emit-json-schema.js.map +1 -0
- package/lib/api-schemas/environment.d.ts +18 -0
- package/lib/api-schemas/environment.d.ts.map +1 -1
- package/lib/api-schemas/events.d.ts +783 -0
- package/lib/api-schemas/events.d.ts.map +1 -1
- package/lib/api-schemas/index.d.ts +1 -0
- package/lib/api-schemas/index.d.ts.map +1 -1
- package/lib/api-schemas/index.js +1 -0
- package/lib/api-schemas/index.js.map +1 -1
- package/lib/api-schemas/interaction.d.ts +3939 -91
- package/lib/api-schemas/interaction.d.ts.map +1 -1
- package/lib/api-schemas/interaction.js +14 -3
- package/lib/api-schemas/interaction.js.map +1 -1
- package/lib/api-schemas/oauth-server.d.ts +1 -0
- package/lib/api-schemas/oauth-server.d.ts.map +1 -1
- package/lib/api-schemas/oauth-server.js +3 -0
- package/lib/api-schemas/oauth-server.js.map +1 -1
- package/lib/api-schemas/process-agent-policy.d.ts +69 -0
- package/lib/api-schemas/process-agent-policy.d.ts.map +1 -0
- package/lib/api-schemas/process-agent-policy.js +154 -0
- package/lib/api-schemas/process-agent-policy.js.map +1 -0
- package/lib/api-schemas/process.d.ts +1260 -0
- package/lib/api-schemas/process.d.ts.map +1 -1
- package/lib/api-schemas/process.js +29 -1
- package/lib/api-schemas/process.js.map +1 -1
- package/lib/api-schemas/project-configuration.d.ts +878 -8
- package/lib/api-schemas/project-configuration.d.ts.map +1 -1
- package/lib/api-schemas/project.d.ts +1327 -22
- package/lib/api-schemas/project.d.ts.map +1 -1
- package/lib/api-schemas/registry.d.ts +21836 -3256
- package/lib/api-schemas/registry.d.ts.map +1 -1
- package/lib/api-schemas/registry.js +40 -7
- package/lib/api-schemas/registry.js.map +1 -1
- package/lib/api-schemas/store.d.ts +4427 -77
- package/lib/api-schemas/store.d.ts.map +1 -1
- package/lib/api-schemas/sts.d.ts +6 -0
- package/lib/api-schemas/sts.d.ts.map +1 -1
- package/lib/api-schemas/sts.js +3 -0
- package/lib/api-schemas/sts.js.map +1 -1
- package/lib/api-schemas/workflow-runs.d.ts +189 -0
- package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
- package/lib/api-schemas/workflow-runs.js +14 -0
- package/lib/api-schemas/workflow-runs.js.map +1 -1
- package/lib/apikey.d.ts +1 -0
- package/lib/apikey.d.ts.map +1 -1
- package/lib/apikey.js.map +1 -1
- package/lib/delegation.d.ts +13 -0
- package/lib/delegation.d.ts.map +1 -0
- package/lib/delegation.js +2 -0
- package/lib/delegation.js.map +1 -0
- package/lib/environment.d.ts +1 -0
- package/lib/environment.d.ts.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/oauth-scopes.d.ts.map +1 -1
- package/lib/oauth-scopes.js +1 -0
- package/lib/oauth-scopes.js.map +1 -1
- package/lib/store/agent-run-values.d.ts +25 -0
- package/lib/store/agent-run-values.d.ts.map +1 -0
- package/lib/store/agent-run-values.js +25 -0
- package/lib/store/agent-run-values.js.map +1 -0
- package/lib/store/agent-run.d.ts +22 -2
- package/lib/store/agent-run.d.ts.map +1 -1
- package/lib/store/agent-run.js +1 -1
- package/lib/store/agent-run.js.map +1 -1
- package/lib/store/conversation-state.d.ts +1 -1
- package/lib/store/conversation-state.d.ts.map +1 -1
- package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
- package/lib/store/intake-policy-schema.generated.js +124 -0
- package/lib/store/intake-policy-schema.generated.js.map +1 -1
- package/lib/store/process.d.ts +17 -0
- package/lib/store/process.d.ts.map +1 -1
- package/lib/store/process.js.map +1 -1
- package/lib/store/schedule.d.ts +62 -25
- package/lib/store/schedule.d.ts.map +1 -1
- package/lib/store/schedule.js +2 -2
- package/lib/store/schedule.js.map +1 -1
- package/lib/store/workflow.d.ts +2 -0
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js.map +1 -1
- package/lib/vertesia-common.js +2 -2
- package/lib/vertesia-common.js.map +1 -1
- package/lib/workflow-analytics.d.ts +198 -2
- package/lib/workflow-analytics.d.ts.map +1 -1
- package/lib/workflow-analytics.js +6 -0
- package/lib/workflow-analytics.js.map +1 -1
- package/package.json +8 -8
- package/src/access-control-values.ts +1 -0
- package/src/api-contract/components.generated.json +4188 -2267
- package/src/api-schemas/adapter-edge-cases.test.ts +19 -0
- package/src/api-schemas/adapter.ts +8 -1
- package/src/api-schemas/agent-communication.ts +6 -0
- package/src/api-schemas/agent-history.contract.test.ts +42 -0
- package/src/api-schemas/agent-runs.contract.test.ts +203 -0
- package/src/api-schemas/agent-runs.ts +374 -0
- package/src/api-schemas/data-store.contract.test.ts +6 -0
- package/src/api-schemas/data-store.ts +8 -0
- package/src/api-schemas/delegation.ts +21 -0
- package/src/api-schemas/emit-json-schema.test.ts +36 -0
- package/src/api-schemas/emit-json-schema.ts +40 -0
- package/src/api-schemas/environment.contract.test.ts +3 -0
- package/src/api-schemas/index.ts +1 -0
- package/src/api-schemas/interaction.contract.test.ts +23 -0
- package/src/api-schemas/interaction.ts +15 -3
- package/src/api-schemas/llumiverse.contract.test.ts +3 -9
- package/src/api-schemas/oauth-server.ts +4 -0
- package/src/api-schemas/process-agent-policy.ts +167 -0
- package/src/api-schemas/process.contract.test.ts +115 -0
- package/src/api-schemas/process.ts +31 -1
- package/src/api-schemas/registry.ts +43 -10
- package/src/api-schemas/sts.ts +3 -0
- package/src/api-schemas/workflow-runs.ts +16 -0
- package/src/api-schemas/zeno-response-contracts.test.ts +36 -0
- package/src/apikey.ts +1 -0
- package/src/delegation.ts +18 -0
- package/src/index.ts +6 -0
- package/src/oauth-scopes.ts +1 -0
- package/src/store/agent-run-values.ts +27 -0
- package/src/store/agent-run.ts +36 -0
- package/src/store/conversation-state.ts +1 -1
- package/src/store/intake-policy-schema.generated.ts +125 -0
- package/src/store/process.ts +22 -0
- package/src/store/schedule.test.ts +59 -0
- package/src/store/schedule.ts +91 -27
- package/src/store/workflow.ts +2 -0
- package/src/workflow-analytics.ts +238 -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,12 @@ 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',
|
|
19
28
|
}
|
|
20
29
|
|
|
21
30
|
/**
|
|
@@ -50,6 +59,60 @@ export enum TelemetryToolType {
|
|
|
50
59
|
Skill = 'skill',
|
|
51
60
|
}
|
|
52
61
|
|
|
62
|
+
// ============================================================================
|
|
63
|
+
// Evaluation vocabularies
|
|
64
|
+
// ============================================================================
|
|
65
|
+
|
|
66
|
+
/** How an agent turn ended. `ask_user` never ends a turn; its wait is measured inside the turn. */
|
|
67
|
+
export type TurnTerminalType = 'answer' | 'user_stopped' | 'completed' | 'failed' | 'cancelled' | 'interrupted';
|
|
68
|
+
|
|
69
|
+
/** Worst deterministic detector level. `none` means no detector fired, not that the turn succeeded. */
|
|
70
|
+
export type EvaluationSeverity = 'none' | 'low' | 'medium' | 'high';
|
|
71
|
+
|
|
72
|
+
/** Reasons behind an evaluation severity. */
|
|
73
|
+
export type TurnEvaluationFlag =
|
|
74
|
+
| 'user_stopped_after_failure'
|
|
75
|
+
| 'mutation_unsuccessful'
|
|
76
|
+
| 'run_failed'
|
|
77
|
+
| 'unrecovered_tool'
|
|
78
|
+
| 'fail_streak'
|
|
79
|
+
| 'identical_retry'
|
|
80
|
+
| 'reread'
|
|
81
|
+
| 'high_gather'
|
|
82
|
+
| 'overhead'
|
|
83
|
+
| 'followup_after_answer'
|
|
84
|
+
| 'approval_denied';
|
|
85
|
+
|
|
86
|
+
/** Coarse class of a tool error, derived from the error text. */
|
|
87
|
+
export type ToolErrorClass = 'schema' | 'platform' | 'config' | 'environment' | 'other';
|
|
88
|
+
|
|
89
|
+
/** Number of tool errors per class in a turn. */
|
|
90
|
+
export interface ToolErrorClassCounts {
|
|
91
|
+
schema: number;
|
|
92
|
+
platform: number;
|
|
93
|
+
config: number;
|
|
94
|
+
environment: number;
|
|
95
|
+
other: number;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** The deployment that ingested an event; stamped by the server, never by the producer. */
|
|
99
|
+
export interface TelemetryDeployment {
|
|
100
|
+
/** Environment name, e.g. `staging`, `dev-my-branch`, `production`, `preview`, `preprod` */
|
|
101
|
+
env: string;
|
|
102
|
+
/** Environment group: `dev`, `staging`, `preview` or `production` */
|
|
103
|
+
group: string;
|
|
104
|
+
/** Commit SHA of the ingesting server */
|
|
105
|
+
version: string;
|
|
106
|
+
/** Region short name when known */
|
|
107
|
+
region?: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** The process that produced an event, for diagnosing worker versions. */
|
|
111
|
+
export interface TelemetryProducer {
|
|
112
|
+
/** Commit SHA of the producer */
|
|
113
|
+
version: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
53
116
|
// ============================================================================
|
|
54
117
|
// Base Event
|
|
55
118
|
// ============================================================================
|
|
@@ -60,6 +123,12 @@ export enum TelemetryToolType {
|
|
|
60
123
|
interface BaseAgentEvent {
|
|
61
124
|
/** Type of the event */
|
|
62
125
|
eventType: AgentEventType;
|
|
126
|
+
/** Deterministic id for events that can be delivered more than once (activity retries) */
|
|
127
|
+
eventId?: string;
|
|
128
|
+
/** Set by the ingesting server; producers must leave it undefined */
|
|
129
|
+
deployment?: TelemetryDeployment;
|
|
130
|
+
/** Set by the producer from its own build metadata */
|
|
131
|
+
producer?: TelemetryProducer;
|
|
63
132
|
/** ISO 8601 timestamp */
|
|
64
133
|
timestamp: string;
|
|
65
134
|
/** Globally unique ID for this agent run */
|
|
@@ -210,6 +279,167 @@ export interface ToolCallEvent extends BaseAgentEvent {
|
|
|
210
279
|
errorMessage?: string;
|
|
211
280
|
/** Whether this tool spawned a child workflow */
|
|
212
281
|
spawnedChildWorkflow?: boolean;
|
|
282
|
+
/** Approval class of the resolved tool; undefined when the tool could not be resolved */
|
|
283
|
+
approvalClass?: AgentToolApprovalClass;
|
|
284
|
+
/** Error class derived from the error message when the call failed */
|
|
285
|
+
errorClass?: ToolErrorClass;
|
|
286
|
+
/** Hash of the tool name and raw input, the same one the turn evaluation uses */
|
|
287
|
+
signatureHash?: string;
|
|
288
|
+
/** Workstream the call belongs to (`main` for the primary conversation) */
|
|
289
|
+
workstreamId?: string;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// ============================================================================
|
|
293
|
+
// Evaluation Events
|
|
294
|
+
// ============================================================================
|
|
295
|
+
|
|
296
|
+
/** One tool call as observed by the turn evaluation, in call order. */
|
|
297
|
+
export interface TurnToolObservation {
|
|
298
|
+
/** Position of the call within the turn, starting at 1 */
|
|
299
|
+
seq: number;
|
|
300
|
+
/** Tool use ID from the LLM */
|
|
301
|
+
toolUseId: string;
|
|
302
|
+
/** Tool name */
|
|
303
|
+
name: string;
|
|
304
|
+
/** Approval class of the resolved tool; undefined when unresolved */
|
|
305
|
+
approvalClass?: AgentToolApprovalClass;
|
|
306
|
+
/** Whether the call succeeded */
|
|
307
|
+
ok: boolean;
|
|
308
|
+
/** Error class when the call failed */
|
|
309
|
+
errorClass?: ToolErrorClass;
|
|
310
|
+
/** Hash of the tool name and raw input */
|
|
311
|
+
sig: string;
|
|
312
|
+
/** Duration in milliseconds */
|
|
313
|
+
durationMs: number;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Emitted when an agent turn ends. One turn is the agent work between two user hand-offs.
|
|
318
|
+
* Deterministic: computed inside the workflow from what the workflow observed.
|
|
319
|
+
*/
|
|
320
|
+
export interface TurnEvaluationEvent extends BaseAgentEvent {
|
|
321
|
+
eventType: AgentEventType.TurnEvaluation;
|
|
322
|
+
/** Shape version of this event */
|
|
323
|
+
schemaVersion: number;
|
|
324
|
+
/** Version of the detector rules that produced severity and flags */
|
|
325
|
+
detectorVersion: number;
|
|
326
|
+
/** Workstream the turn belongs to (`main` for the primary conversation) */
|
|
327
|
+
workstreamId: string;
|
|
328
|
+
/** Turn number within the workstream, starting at 1 */
|
|
329
|
+
turnSeq: number;
|
|
330
|
+
/** How the turn ended */
|
|
331
|
+
terminalType: TurnTerminalType;
|
|
332
|
+
/** True when the turn started on a continuation whose predecessor recorded nothing */
|
|
333
|
+
partial?: boolean;
|
|
334
|
+
/** ISO 8601 start of the turn */
|
|
335
|
+
startedAt: string;
|
|
336
|
+
/** ISO 8601 end of the turn */
|
|
337
|
+
endedAt: string;
|
|
338
|
+
/** Wall time between start and end */
|
|
339
|
+
durationMs: number;
|
|
340
|
+
/** Time the agent was working, excluding user and approval waits */
|
|
341
|
+
activeMs: number;
|
|
342
|
+
/** Time spent blocked in `ask_user` */
|
|
343
|
+
askUserWaitMs: number;
|
|
344
|
+
/** Time spent waiting for tool approvals */
|
|
345
|
+
approvalWaitMs: number;
|
|
346
|
+
/** Time from turn start to the first answer, when one was given */
|
|
347
|
+
timeToFirstAnswerMs?: number;
|
|
348
|
+
toolCalls: number;
|
|
349
|
+
errorToolResults: number;
|
|
350
|
+
/** Longest run of consecutive failures of the same tool */
|
|
351
|
+
maxFailStreak: number;
|
|
352
|
+
/** Failed calls whose signature had already failed in this turn */
|
|
353
|
+
identicalRetryCount: number;
|
|
354
|
+
/** Tools that failed and never succeeded afterwards in this turn */
|
|
355
|
+
unrecoveredTools: string[];
|
|
356
|
+
errorClasses: ToolErrorClassCounts;
|
|
357
|
+
/** Calls to read-only tools */
|
|
358
|
+
gatherCalls: number;
|
|
359
|
+
/** gatherCalls / toolCalls; undefined when no tool was called */
|
|
360
|
+
gatherRatio?: number;
|
|
361
|
+
/** Whether a side-effecting tool was called */
|
|
362
|
+
mutationAttempted: boolean;
|
|
363
|
+
/** Whether at least one side-effecting call succeeded */
|
|
364
|
+
mutationSucceeded: boolean;
|
|
365
|
+
/** Read calls repeating an earlier read signature */
|
|
366
|
+
rereadCount: number;
|
|
367
|
+
/** Calls to planning/thinking/control tools */
|
|
368
|
+
overheadCalls: number;
|
|
369
|
+
skillsLoaded: number;
|
|
370
|
+
/** Tools cancelled because a stop or new input interrupted them */
|
|
371
|
+
interruptedToolCalls: number;
|
|
372
|
+
llmCalls: number;
|
|
373
|
+
promptTokens: number;
|
|
374
|
+
completionTokens: number;
|
|
375
|
+
cachedTokens: number;
|
|
376
|
+
/** Completion tokens of LLM calls that followed a failed tool batch */
|
|
377
|
+
retryCompletionTokens: number;
|
|
378
|
+
approvalsRequested: number;
|
|
379
|
+
approvalsDenied: number;
|
|
380
|
+
stopRequests: number;
|
|
381
|
+
/** An unprompted user message after an answer was followed by substantive tool work */
|
|
382
|
+
followupAfterAnswer: boolean;
|
|
383
|
+
severity: EvaluationSeverity;
|
|
384
|
+
flags: TurnEvaluationFlag[];
|
|
385
|
+
/** Class of the error that ended the run, on `failed` turns */
|
|
386
|
+
terminalErrorClass?: string;
|
|
387
|
+
/** Bounded list of tool observations in call order */
|
|
388
|
+
tools: TurnToolObservation[];
|
|
389
|
+
/** Observations dropped because the list was full */
|
|
390
|
+
toolsTruncated: number;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Emitted by the server when a user rating is recorded. Carries no comment text.
|
|
395
|
+
*/
|
|
396
|
+
export interface FeedbackEvent extends BaseAgentEvent {
|
|
397
|
+
eventType: AgentEventType.Feedback;
|
|
398
|
+
/** Client-generated idempotency key of the rating */
|
|
399
|
+
feedbackId: string;
|
|
400
|
+
rating: AgentRunFeedbackRating;
|
|
401
|
+
reasonCode?: AgentRunFeedbackReasonCode;
|
|
402
|
+
hasComment: boolean;
|
|
403
|
+
/** Whether the rating targets one message rather than the run */
|
|
404
|
+
messageScoped: boolean;
|
|
405
|
+
messageSeq?: number;
|
|
406
|
+
/** Whether this rating replaced an earlier one from the same user on the same scope */
|
|
407
|
+
replaced: boolean;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/** Why the judge looked at a run. */
|
|
411
|
+
export type JudgeGateReason = 'signal' | 'sample';
|
|
412
|
+
|
|
413
|
+
/** What the judge run produced. */
|
|
414
|
+
export type JudgeOutcome = 'judged' | 'skipped_unarchived' | 'failed';
|
|
415
|
+
|
|
416
|
+
/** The judge's reading of a turn. */
|
|
417
|
+
export type JudgeVerdict = 'success' | 'partial' | 'failure';
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Emitted by the judge workflow for each turn it evaluated (or once with a non-judged outcome).
|
|
421
|
+
*/
|
|
422
|
+
export interface TurnJudgementEvent extends BaseAgentEvent {
|
|
423
|
+
eventType: AgentEventType.TurnJudgement;
|
|
424
|
+
/** Evaluation revision the judge run was started for */
|
|
425
|
+
evaluationRev: number;
|
|
426
|
+
workstreamId: string;
|
|
427
|
+
/** Turn judged; 0 when the outcome is not `judged` */
|
|
428
|
+
turnSeq: number;
|
|
429
|
+
gate: JudgeGateReason;
|
|
430
|
+
/** Sampling rate in force when the gate was evaluated */
|
|
431
|
+
sampleRate: number;
|
|
432
|
+
/** Probability that this run was selected, for weighted calibration */
|
|
433
|
+
selectedProbability: number;
|
|
434
|
+
outcome: JudgeOutcome;
|
|
435
|
+
verdict?: JudgeVerdict;
|
|
436
|
+
/** 0..1 */
|
|
437
|
+
score?: number;
|
|
438
|
+
reasons?: string[];
|
|
439
|
+
/** Version of the judge prompt */
|
|
440
|
+
promptVersion: string;
|
|
441
|
+
/** Detector version of the evaluation the judge was compared against */
|
|
442
|
+
detectorVersion?: number;
|
|
213
443
|
}
|
|
214
444
|
|
|
215
445
|
// ============================================================================
|
|
@@ -237,7 +467,14 @@ export interface NestedInteractionEvent extends LlmCallEvent {
|
|
|
237
467
|
/**
|
|
238
468
|
* @discriminator eventType
|
|
239
469
|
*/
|
|
240
|
-
export type AgentEvent =
|
|
470
|
+
export type AgentEvent =
|
|
471
|
+
| AgentRunStartedEvent
|
|
472
|
+
| AgentRunCompletedEvent
|
|
473
|
+
| LlmCallEvent
|
|
474
|
+
| ToolCallEvent
|
|
475
|
+
| TurnEvaluationEvent
|
|
476
|
+
| FeedbackEvent
|
|
477
|
+
| TurnJudgementEvent;
|
|
241
478
|
|
|
242
479
|
/**
|
|
243
480
|
* Workflow Analytics Types
|