@inf-monkeys-tech/monkeys 1.0.21 → 1.0.22
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/contracts/agent.d.ts +471 -0
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +211 -4
- package/lib/contracts/agent.js.map +1 -1
- package/lib/contracts/theme.d.ts +1 -1
- package/lib/esm/contracts/index.mjs +207 -8
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +207 -8
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +190 -7
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +194 -7
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/agent-session-command-result.schema.json +105 -0
- package/lib/json-schema/agent-session-command.schema.json +375 -0
- package/lib/json-schema/agent-session-event.schema.json +106 -0
- package/lib/json-schema/agent-session-run-event.schema.json +106 -0
- package/lib/json-schema/agent-session-targeted-command.schema.json +375 -0
- package/lib/json-schema/agent-session-view-model.schema.json +217 -1
- package/lib/schemas/index.d.ts +284 -1
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +7 -3
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/test/fixtures/agent-session-agent.json +5 -1
- package/test/fixtures/agent-session-chatbot.json +5 -1
- package/test/fixtures/agent-session-kernel.json +5 -1
|
@@ -61,6 +61,106 @@
|
|
|
61
61
|
"maxLength": 256
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
+
"operation": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"lineage": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"forkedFromThreadId": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"minLength": 1,
|
|
73
|
+
"maxLength": 256
|
|
74
|
+
},
|
|
75
|
+
"forkedFromMessageId": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"minLength": 1,
|
|
78
|
+
"maxLength": 256
|
|
79
|
+
},
|
|
80
|
+
"sourceRunId": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"minLength": 1,
|
|
83
|
+
"maxLength": 256
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": [
|
|
87
|
+
"forkedFromThreadId",
|
|
88
|
+
"forkedFromMessageId",
|
|
89
|
+
"sourceRunId"
|
|
90
|
+
],
|
|
91
|
+
"additionalProperties": false
|
|
92
|
+
},
|
|
93
|
+
"activeBranch": {
|
|
94
|
+
"type": "object",
|
|
95
|
+
"properties": {
|
|
96
|
+
"branchId": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"minLength": 1,
|
|
99
|
+
"maxLength": 256
|
|
100
|
+
},
|
|
101
|
+
"threadId": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"minLength": 1,
|
|
104
|
+
"maxLength": 256
|
|
105
|
+
},
|
|
106
|
+
"sourceMessageId": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"minLength": 1,
|
|
109
|
+
"maxLength": 256
|
|
110
|
+
},
|
|
111
|
+
"runId": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"minLength": 1,
|
|
114
|
+
"maxLength": 256
|
|
115
|
+
},
|
|
116
|
+
"lineage": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"forkedFromThreadId": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"minLength": 1,
|
|
122
|
+
"maxLength": 256
|
|
123
|
+
},
|
|
124
|
+
"forkedFromMessageId": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"minLength": 1,
|
|
127
|
+
"maxLength": 256
|
|
128
|
+
},
|
|
129
|
+
"sourceRunId": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"minLength": 1,
|
|
132
|
+
"maxLength": 256
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
136
|
+
"forkedFromThreadId",
|
|
137
|
+
"forkedFromMessageId",
|
|
138
|
+
"sourceRunId"
|
|
139
|
+
],
|
|
140
|
+
"additionalProperties": false
|
|
141
|
+
},
|
|
142
|
+
"createdAt": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"format": "date-time",
|
|
145
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"required": [
|
|
149
|
+
"branchId",
|
|
150
|
+
"threadId",
|
|
151
|
+
"sourceMessageId",
|
|
152
|
+
"runId",
|
|
153
|
+
"createdAt"
|
|
154
|
+
],
|
|
155
|
+
"additionalProperties": false
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"required": [
|
|
159
|
+
"lineage",
|
|
160
|
+
"activeBranch"
|
|
161
|
+
],
|
|
162
|
+
"additionalProperties": false
|
|
163
|
+
},
|
|
64
164
|
"termination": {
|
|
65
165
|
"type": "string",
|
|
66
166
|
"enum": [
|
|
@@ -86,6 +186,11 @@
|
|
|
86
186
|
"TARGET_EVENT_NOT_RETRYABLE",
|
|
87
187
|
"APPROVAL_NOT_FOUND",
|
|
88
188
|
"APPROVAL_ALREADY_RESOLVED",
|
|
189
|
+
"SOURCE_THREAD_NOT_FOUND",
|
|
190
|
+
"SOURCE_MESSAGE_NOT_FOUND",
|
|
191
|
+
"SOURCE_RUN_NOT_FOUND",
|
|
192
|
+
"SOURCE_LINEAGE_INVALID",
|
|
193
|
+
"ACTIVE_BRANCH_NOT_FOUND",
|
|
89
194
|
"COMMAND_EXECUTION_FAILED"
|
|
90
195
|
]
|
|
91
196
|
},
|
|
@@ -277,8 +277,383 @@
|
|
|
277
277
|
"payload"
|
|
278
278
|
],
|
|
279
279
|
"additionalProperties": false
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"type": "object",
|
|
283
|
+
"properties": {
|
|
284
|
+
"contract": {
|
|
285
|
+
"type": "string",
|
|
286
|
+
"const": "AgentSessionCommand"
|
|
287
|
+
},
|
|
288
|
+
"commandId": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"minLength": 1,
|
|
291
|
+
"maxLength": 256
|
|
292
|
+
},
|
|
293
|
+
"sessionId": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"minLength": 1,
|
|
296
|
+
"maxLength": 256
|
|
297
|
+
},
|
|
298
|
+
"runId": {
|
|
299
|
+
"type": "string",
|
|
300
|
+
"minLength": 1,
|
|
301
|
+
"maxLength": 256
|
|
302
|
+
},
|
|
303
|
+
"idempotencyKey": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"minLength": 1,
|
|
306
|
+
"maxLength": 256
|
|
307
|
+
},
|
|
308
|
+
"expectedSequence": {
|
|
309
|
+
"type": "integer",
|
|
310
|
+
"minimum": -1,
|
|
311
|
+
"maximum": 9007199254740991
|
|
312
|
+
},
|
|
313
|
+
"issuedAt": {
|
|
314
|
+
"type": "string",
|
|
315
|
+
"format": "date-time",
|
|
316
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
317
|
+
},
|
|
318
|
+
"commandType": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"const": "fork"
|
|
321
|
+
},
|
|
322
|
+
"payload": {
|
|
323
|
+
"type": "object",
|
|
324
|
+
"properties": {
|
|
325
|
+
"sourceThreadId": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"minLength": 1,
|
|
328
|
+
"maxLength": 256
|
|
329
|
+
},
|
|
330
|
+
"sourceMessageId": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"minLength": 1,
|
|
333
|
+
"maxLength": 256
|
|
334
|
+
},
|
|
335
|
+
"sourceRunId": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"minLength": 1,
|
|
338
|
+
"maxLength": 256
|
|
339
|
+
},
|
|
340
|
+
"inheritance": {
|
|
341
|
+
"type": "object",
|
|
342
|
+
"properties": {
|
|
343
|
+
"messages": {
|
|
344
|
+
"type": "string",
|
|
345
|
+
"enum": [
|
|
346
|
+
"through-source-message",
|
|
347
|
+
"exclude"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
"attachments": {
|
|
351
|
+
"type": "string",
|
|
352
|
+
"enum": [
|
|
353
|
+
"inherit",
|
|
354
|
+
"exclude"
|
|
355
|
+
]
|
|
356
|
+
},
|
|
357
|
+
"summaries": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"enum": [
|
|
360
|
+
"inherit",
|
|
361
|
+
"exclude"
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
"toolResults": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"enum": [
|
|
367
|
+
"inherit",
|
|
368
|
+
"exclude"
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
"codeChanges": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"enum": [
|
|
374
|
+
"inherit",
|
|
375
|
+
"exclude"
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"required": [
|
|
380
|
+
"messages",
|
|
381
|
+
"attachments",
|
|
382
|
+
"summaries",
|
|
383
|
+
"toolResults",
|
|
384
|
+
"codeChanges"
|
|
385
|
+
],
|
|
386
|
+
"additionalProperties": false
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"required": [
|
|
390
|
+
"sourceThreadId",
|
|
391
|
+
"sourceMessageId",
|
|
392
|
+
"sourceRunId",
|
|
393
|
+
"inheritance"
|
|
394
|
+
],
|
|
395
|
+
"additionalProperties": false
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"required": [
|
|
399
|
+
"contract",
|
|
400
|
+
"commandId",
|
|
401
|
+
"sessionId",
|
|
402
|
+
"idempotencyKey",
|
|
403
|
+
"expectedSequence",
|
|
404
|
+
"issuedAt",
|
|
405
|
+
"commandType",
|
|
406
|
+
"payload"
|
|
407
|
+
],
|
|
408
|
+
"additionalProperties": false
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"type": "object",
|
|
412
|
+
"properties": {
|
|
413
|
+
"contract": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"const": "AgentSessionCommand"
|
|
416
|
+
},
|
|
417
|
+
"commandId": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"minLength": 1,
|
|
420
|
+
"maxLength": 256
|
|
421
|
+
},
|
|
422
|
+
"sessionId": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"minLength": 1,
|
|
425
|
+
"maxLength": 256
|
|
426
|
+
},
|
|
427
|
+
"runId": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"minLength": 1,
|
|
430
|
+
"maxLength": 256
|
|
431
|
+
},
|
|
432
|
+
"idempotencyKey": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"minLength": 1,
|
|
435
|
+
"maxLength": 256
|
|
436
|
+
},
|
|
437
|
+
"expectedSequence": {
|
|
438
|
+
"type": "integer",
|
|
439
|
+
"minimum": -1,
|
|
440
|
+
"maximum": 9007199254740991
|
|
441
|
+
},
|
|
442
|
+
"issuedAt": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"format": "date-time",
|
|
445
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
446
|
+
},
|
|
447
|
+
"commandType": {
|
|
448
|
+
"type": "string",
|
|
449
|
+
"const": "edit-and-rerun"
|
|
450
|
+
},
|
|
451
|
+
"payload": {
|
|
452
|
+
"type": "object",
|
|
453
|
+
"properties": {
|
|
454
|
+
"sourceThreadId": {
|
|
455
|
+
"type": "string",
|
|
456
|
+
"minLength": 1,
|
|
457
|
+
"maxLength": 256
|
|
458
|
+
},
|
|
459
|
+
"sourceMessageId": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"minLength": 1,
|
|
462
|
+
"maxLength": 256
|
|
463
|
+
},
|
|
464
|
+
"sourceRunId": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"minLength": 1,
|
|
467
|
+
"maxLength": 256
|
|
468
|
+
},
|
|
469
|
+
"replacementParts": {
|
|
470
|
+
"minItems": 1,
|
|
471
|
+
"type": "array",
|
|
472
|
+
"items": {
|
|
473
|
+
"$ref": "#/$defs/__schema0"
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
"inheritance": {
|
|
477
|
+
"type": "object",
|
|
478
|
+
"properties": {
|
|
479
|
+
"messages": {
|
|
480
|
+
"type": "string",
|
|
481
|
+
"enum": [
|
|
482
|
+
"through-source-message",
|
|
483
|
+
"exclude"
|
|
484
|
+
]
|
|
485
|
+
},
|
|
486
|
+
"attachments": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"enum": [
|
|
489
|
+
"inherit",
|
|
490
|
+
"exclude"
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
"summaries": {
|
|
494
|
+
"type": "string",
|
|
495
|
+
"enum": [
|
|
496
|
+
"inherit",
|
|
497
|
+
"exclude"
|
|
498
|
+
]
|
|
499
|
+
},
|
|
500
|
+
"toolResults": {
|
|
501
|
+
"type": "string",
|
|
502
|
+
"enum": [
|
|
503
|
+
"inherit",
|
|
504
|
+
"exclude"
|
|
505
|
+
]
|
|
506
|
+
},
|
|
507
|
+
"codeChanges": {
|
|
508
|
+
"type": "string",
|
|
509
|
+
"enum": [
|
|
510
|
+
"inherit",
|
|
511
|
+
"exclude"
|
|
512
|
+
]
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"required": [
|
|
516
|
+
"messages",
|
|
517
|
+
"attachments",
|
|
518
|
+
"summaries",
|
|
519
|
+
"toolResults",
|
|
520
|
+
"codeChanges"
|
|
521
|
+
],
|
|
522
|
+
"additionalProperties": false
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"required": [
|
|
526
|
+
"sourceThreadId",
|
|
527
|
+
"sourceMessageId",
|
|
528
|
+
"sourceRunId",
|
|
529
|
+
"replacementParts",
|
|
530
|
+
"inheritance"
|
|
531
|
+
],
|
|
532
|
+
"additionalProperties": false
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"required": [
|
|
536
|
+
"contract",
|
|
537
|
+
"commandId",
|
|
538
|
+
"sessionId",
|
|
539
|
+
"idempotencyKey",
|
|
540
|
+
"expectedSequence",
|
|
541
|
+
"issuedAt",
|
|
542
|
+
"commandType",
|
|
543
|
+
"payload"
|
|
544
|
+
],
|
|
545
|
+
"additionalProperties": false
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"type": "object",
|
|
549
|
+
"properties": {
|
|
550
|
+
"contract": {
|
|
551
|
+
"type": "string",
|
|
552
|
+
"const": "AgentSessionCommand"
|
|
553
|
+
},
|
|
554
|
+
"commandId": {
|
|
555
|
+
"type": "string",
|
|
556
|
+
"minLength": 1,
|
|
557
|
+
"maxLength": 256
|
|
558
|
+
},
|
|
559
|
+
"sessionId": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"minLength": 1,
|
|
562
|
+
"maxLength": 256
|
|
563
|
+
},
|
|
564
|
+
"runId": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"minLength": 1,
|
|
567
|
+
"maxLength": 256
|
|
568
|
+
},
|
|
569
|
+
"idempotencyKey": {
|
|
570
|
+
"type": "string",
|
|
571
|
+
"minLength": 1,
|
|
572
|
+
"maxLength": 256
|
|
573
|
+
},
|
|
574
|
+
"expectedSequence": {
|
|
575
|
+
"type": "integer",
|
|
576
|
+
"minimum": -1,
|
|
577
|
+
"maximum": 9007199254740991
|
|
578
|
+
},
|
|
579
|
+
"issuedAt": {
|
|
580
|
+
"type": "string",
|
|
581
|
+
"format": "date-time",
|
|
582
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
583
|
+
},
|
|
584
|
+
"commandType": {
|
|
585
|
+
"type": "string",
|
|
586
|
+
"const": "steer"
|
|
587
|
+
},
|
|
588
|
+
"payload": {
|
|
589
|
+
"type": "object",
|
|
590
|
+
"properties": {
|
|
591
|
+
"targetRunId": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"minLength": 1,
|
|
594
|
+
"maxLength": 256
|
|
595
|
+
},
|
|
596
|
+
"guidanceParts": {
|
|
597
|
+
"minItems": 1,
|
|
598
|
+
"type": "array",
|
|
599
|
+
"items": {
|
|
600
|
+
"$ref": "#/$defs/__schema0"
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"required": [
|
|
605
|
+
"targetRunId",
|
|
606
|
+
"guidanceParts"
|
|
607
|
+
],
|
|
608
|
+
"additionalProperties": false
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"required": [
|
|
612
|
+
"contract",
|
|
613
|
+
"commandId",
|
|
614
|
+
"sessionId",
|
|
615
|
+
"idempotencyKey",
|
|
616
|
+
"expectedSequence",
|
|
617
|
+
"issuedAt",
|
|
618
|
+
"commandType",
|
|
619
|
+
"payload"
|
|
620
|
+
],
|
|
621
|
+
"additionalProperties": false
|
|
280
622
|
}
|
|
281
623
|
],
|
|
624
|
+
"$defs": {
|
|
625
|
+
"__schema0": {
|
|
626
|
+
"anyOf": [
|
|
627
|
+
{
|
|
628
|
+
"type": "string"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"type": "number"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"type": "boolean"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"type": "null"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"type": "array",
|
|
641
|
+
"items": {
|
|
642
|
+
"$ref": "#/$defs/__schema0"
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"type": "object",
|
|
647
|
+
"propertyNames": {
|
|
648
|
+
"type": "string"
|
|
649
|
+
},
|
|
650
|
+
"additionalProperties": {
|
|
651
|
+
"$ref": "#/$defs/__schema0"
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
]
|
|
655
|
+
}
|
|
656
|
+
},
|
|
282
657
|
"$id": "https://schemas.infmonkeys.com/contracts/agent-session-command.schema.json",
|
|
283
658
|
"title": "agent-session-command"
|
|
284
659
|
}
|
|
@@ -1461,6 +1461,112 @@
|
|
|
1461
1461
|
"payload"
|
|
1462
1462
|
],
|
|
1463
1463
|
"additionalProperties": false
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
"type": "object",
|
|
1467
|
+
"properties": {
|
|
1468
|
+
"contract": {
|
|
1469
|
+
"type": "string",
|
|
1470
|
+
"const": "AgentSessionEvent"
|
|
1471
|
+
},
|
|
1472
|
+
"eventId": {
|
|
1473
|
+
"type": "string",
|
|
1474
|
+
"minLength": 1,
|
|
1475
|
+
"maxLength": 256
|
|
1476
|
+
},
|
|
1477
|
+
"sessionId": {
|
|
1478
|
+
"type": "string",
|
|
1479
|
+
"minLength": 1,
|
|
1480
|
+
"maxLength": 256
|
|
1481
|
+
},
|
|
1482
|
+
"runId": {
|
|
1483
|
+
"type": "string",
|
|
1484
|
+
"minLength": 1,
|
|
1485
|
+
"maxLength": 256
|
|
1486
|
+
},
|
|
1487
|
+
"sourceMessageId": {
|
|
1488
|
+
"type": "string",
|
|
1489
|
+
"minLength": 1,
|
|
1490
|
+
"maxLength": 256
|
|
1491
|
+
},
|
|
1492
|
+
"sequence": {
|
|
1493
|
+
"type": "integer",
|
|
1494
|
+
"minimum": 0,
|
|
1495
|
+
"maximum": 9007199254740991
|
|
1496
|
+
},
|
|
1497
|
+
"idempotencyKey": {
|
|
1498
|
+
"type": "string",
|
|
1499
|
+
"minLength": 1,
|
|
1500
|
+
"maxLength": 256
|
|
1501
|
+
},
|
|
1502
|
+
"occurredAt": {
|
|
1503
|
+
"type": "string",
|
|
1504
|
+
"format": "date-time",
|
|
1505
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
|
|
1506
|
+
},
|
|
1507
|
+
"eventType": {
|
|
1508
|
+
"type": "string",
|
|
1509
|
+
"const": "summary"
|
|
1510
|
+
},
|
|
1511
|
+
"payload": {
|
|
1512
|
+
"type": "object",
|
|
1513
|
+
"properties": {
|
|
1514
|
+
"summaryId": {
|
|
1515
|
+
"type": "string",
|
|
1516
|
+
"minLength": 1,
|
|
1517
|
+
"maxLength": 256
|
|
1518
|
+
},
|
|
1519
|
+
"runId": {
|
|
1520
|
+
"type": "string",
|
|
1521
|
+
"minLength": 1,
|
|
1522
|
+
"maxLength": 256
|
|
1523
|
+
},
|
|
1524
|
+
"text": {
|
|
1525
|
+
"type": "string"
|
|
1526
|
+
},
|
|
1527
|
+
"highlights": {
|
|
1528
|
+
"type": "array",
|
|
1529
|
+
"items": {
|
|
1530
|
+
"type": "string"
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"pendingItems": {
|
|
1534
|
+
"type": "array",
|
|
1535
|
+
"items": {
|
|
1536
|
+
"type": "string"
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
"status": {
|
|
1540
|
+
"type": "string",
|
|
1541
|
+
"enum": [
|
|
1542
|
+
"generating",
|
|
1543
|
+
"completed",
|
|
1544
|
+
"failed"
|
|
1545
|
+
]
|
|
1546
|
+
}
|
|
1547
|
+
},
|
|
1548
|
+
"required": [
|
|
1549
|
+
"summaryId",
|
|
1550
|
+
"runId",
|
|
1551
|
+
"text",
|
|
1552
|
+
"highlights",
|
|
1553
|
+
"pendingItems",
|
|
1554
|
+
"status"
|
|
1555
|
+
],
|
|
1556
|
+
"additionalProperties": false
|
|
1557
|
+
}
|
|
1558
|
+
},
|
|
1559
|
+
"required": [
|
|
1560
|
+
"contract",
|
|
1561
|
+
"eventId",
|
|
1562
|
+
"sessionId",
|
|
1563
|
+
"sequence",
|
|
1564
|
+
"idempotencyKey",
|
|
1565
|
+
"occurredAt",
|
|
1566
|
+
"eventType",
|
|
1567
|
+
"payload"
|
|
1568
|
+
],
|
|
1569
|
+
"additionalProperties": false
|
|
1464
1570
|
}
|
|
1465
1571
|
],
|
|
1466
1572
|
"$defs": {
|