@ellipsis-dev/sdk 0.36.0 → 0.38.0
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/dist/index.d.ts +186 -510
- package/dist/index.js +90 -430
- package/dist/store/index.d.ts +11 -25
- package/dist/store/index.js +151 -284
- package/dist/stream/index.d.ts +2 -3
- package/dist/stream/index.js +11 -22
- package/dist/{types-CbePyY-S.d.ts → types-D4cLMGUn.d.ts} +1896 -4803
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +442 -231
- package/schema/frames.schema.json +1089 -1521
- package/schema/lifecycle.schema.json +389 -150
- package/schema/openapi.v1.json +3972 -8663
- package/schema/trigger_fields.schema.json +6 -1
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
}
|
|
467
467
|
],
|
|
468
468
|
"default": null,
|
|
469
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
469
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
470
470
|
"title": "Prompt"
|
|
471
471
|
},
|
|
472
472
|
"settings": {
|
|
@@ -585,6 +585,19 @@
|
|
|
585
585
|
"title": "Kind",
|
|
586
586
|
"type": "string"
|
|
587
587
|
},
|
|
588
|
+
"message_id": {
|
|
589
|
+
"anyOf": [
|
|
590
|
+
{
|
|
591
|
+
"type": "string"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"type": "null"
|
|
595
|
+
}
|
|
596
|
+
],
|
|
597
|
+
"default": null,
|
|
598
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
599
|
+
"title": "Message Id"
|
|
600
|
+
},
|
|
588
601
|
"model": {
|
|
589
602
|
"anyOf": [
|
|
590
603
|
{
|
|
@@ -647,19 +660,6 @@
|
|
|
647
660
|
"title": "Session Id",
|
|
648
661
|
"type": "string"
|
|
649
662
|
},
|
|
650
|
-
"session_message_id": {
|
|
651
|
-
"anyOf": [
|
|
652
|
-
{
|
|
653
|
-
"type": "string"
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
"type": "null"
|
|
657
|
-
}
|
|
658
|
-
],
|
|
659
|
-
"default": null,
|
|
660
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
661
|
-
"title": "Session Message Id"
|
|
662
|
-
},
|
|
663
663
|
"source": {
|
|
664
664
|
"const": "claude_code",
|
|
665
665
|
"default": "claude_code",
|
|
@@ -691,19 +691,6 @@
|
|
|
691
691
|
],
|
|
692
692
|
"default": null,
|
|
693
693
|
"title": "Tools"
|
|
694
|
-
},
|
|
695
|
-
"turn_id": {
|
|
696
|
-
"anyOf": [
|
|
697
|
-
{
|
|
698
|
-
"type": "string"
|
|
699
|
-
},
|
|
700
|
-
{
|
|
701
|
-
"type": "null"
|
|
702
|
-
}
|
|
703
|
-
],
|
|
704
|
-
"default": null,
|
|
705
|
-
"description": "Turn containing this record, when applicable.",
|
|
706
|
-
"title": "Turn Id"
|
|
707
694
|
}
|
|
708
695
|
},
|
|
709
696
|
"required": [
|
|
@@ -713,16 +700,15 @@
|
|
|
713
700
|
"feed_seq",
|
|
714
701
|
"id",
|
|
715
702
|
"kind",
|
|
703
|
+
"message_id",
|
|
716
704
|
"model",
|
|
717
705
|
"payload",
|
|
718
706
|
"record_format",
|
|
719
707
|
"record_type",
|
|
720
708
|
"session_id",
|
|
721
|
-
"session_message_id",
|
|
722
709
|
"source",
|
|
723
710
|
"tokens_info",
|
|
724
|
-
"tools"
|
|
725
|
-
"turn_id"
|
|
711
|
+
"tools"
|
|
726
712
|
],
|
|
727
713
|
"title": "ClaudeNativeSessionRecord",
|
|
728
714
|
"type": "object",
|
|
@@ -1091,6 +1077,19 @@
|
|
|
1091
1077
|
"title": "Kind",
|
|
1092
1078
|
"type": "string"
|
|
1093
1079
|
},
|
|
1080
|
+
"message_id": {
|
|
1081
|
+
"anyOf": [
|
|
1082
|
+
{
|
|
1083
|
+
"type": "string"
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"type": "null"
|
|
1087
|
+
}
|
|
1088
|
+
],
|
|
1089
|
+
"default": null,
|
|
1090
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
1091
|
+
"title": "Message Id"
|
|
1092
|
+
},
|
|
1094
1093
|
"model": {
|
|
1095
1094
|
"anyOf": [
|
|
1096
1095
|
{
|
|
@@ -1149,19 +1148,6 @@
|
|
|
1149
1148
|
"title": "Session Id",
|
|
1150
1149
|
"type": "string"
|
|
1151
1150
|
},
|
|
1152
|
-
"session_message_id": {
|
|
1153
|
-
"anyOf": [
|
|
1154
|
-
{
|
|
1155
|
-
"type": "string"
|
|
1156
|
-
},
|
|
1157
|
-
{
|
|
1158
|
-
"type": "null"
|
|
1159
|
-
}
|
|
1160
|
-
],
|
|
1161
|
-
"default": null,
|
|
1162
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
1163
|
-
"title": "Session Message Id"
|
|
1164
|
-
},
|
|
1165
1151
|
"source": {
|
|
1166
1152
|
"const": "claude_code",
|
|
1167
1153
|
"default": "claude_code",
|
|
@@ -1193,19 +1179,6 @@
|
|
|
1193
1179
|
],
|
|
1194
1180
|
"default": null,
|
|
1195
1181
|
"title": "Tools"
|
|
1196
|
-
},
|
|
1197
|
-
"turn_id": {
|
|
1198
|
-
"anyOf": [
|
|
1199
|
-
{
|
|
1200
|
-
"type": "string"
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
"type": "null"
|
|
1204
|
-
}
|
|
1205
|
-
],
|
|
1206
|
-
"default": null,
|
|
1207
|
-
"description": "Turn containing this record, when applicable.",
|
|
1208
|
-
"title": "Turn Id"
|
|
1209
1182
|
}
|
|
1210
1183
|
},
|
|
1211
1184
|
"required": [
|
|
@@ -1215,16 +1188,15 @@
|
|
|
1215
1188
|
"feed_seq",
|
|
1216
1189
|
"id",
|
|
1217
1190
|
"kind",
|
|
1191
|
+
"message_id",
|
|
1218
1192
|
"model",
|
|
1219
1193
|
"payload",
|
|
1220
1194
|
"record_format",
|
|
1221
1195
|
"record_type",
|
|
1222
1196
|
"session_id",
|
|
1223
|
-
"session_message_id",
|
|
1224
1197
|
"source",
|
|
1225
1198
|
"tokens_info",
|
|
1226
|
-
"tools"
|
|
1227
|
-
"turn_id"
|
|
1199
|
+
"tools"
|
|
1228
1200
|
],
|
|
1229
1201
|
"title": "ClaudeSessionRecord",
|
|
1230
1202
|
"type": "object",
|
|
@@ -1636,6 +1608,19 @@
|
|
|
1636
1608
|
"title": "Kind",
|
|
1637
1609
|
"type": "string"
|
|
1638
1610
|
},
|
|
1611
|
+
"message_id": {
|
|
1612
|
+
"anyOf": [
|
|
1613
|
+
{
|
|
1614
|
+
"type": "string"
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"type": "null"
|
|
1618
|
+
}
|
|
1619
|
+
],
|
|
1620
|
+
"default": null,
|
|
1621
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
1622
|
+
"title": "Message Id"
|
|
1623
|
+
},
|
|
1639
1624
|
"model": {
|
|
1640
1625
|
"anyOf": [
|
|
1641
1626
|
{
|
|
@@ -1667,19 +1652,6 @@
|
|
|
1667
1652
|
"title": "Session Id",
|
|
1668
1653
|
"type": "string"
|
|
1669
1654
|
},
|
|
1670
|
-
"session_message_id": {
|
|
1671
|
-
"anyOf": [
|
|
1672
|
-
{
|
|
1673
|
-
"type": "string"
|
|
1674
|
-
},
|
|
1675
|
-
{
|
|
1676
|
-
"type": "null"
|
|
1677
|
-
}
|
|
1678
|
-
],
|
|
1679
|
-
"default": null,
|
|
1680
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
1681
|
-
"title": "Session Message Id"
|
|
1682
|
-
},
|
|
1683
1655
|
"source": {
|
|
1684
1656
|
"const": "codex",
|
|
1685
1657
|
"default": "codex",
|
|
@@ -1711,19 +1683,6 @@
|
|
|
1711
1683
|
],
|
|
1712
1684
|
"default": null,
|
|
1713
1685
|
"title": "Tools"
|
|
1714
|
-
},
|
|
1715
|
-
"turn_id": {
|
|
1716
|
-
"anyOf": [
|
|
1717
|
-
{
|
|
1718
|
-
"type": "string"
|
|
1719
|
-
},
|
|
1720
|
-
{
|
|
1721
|
-
"type": "null"
|
|
1722
|
-
}
|
|
1723
|
-
],
|
|
1724
|
-
"default": null,
|
|
1725
|
-
"description": "Turn containing this record, when applicable.",
|
|
1726
|
-
"title": "Turn Id"
|
|
1727
1686
|
}
|
|
1728
1687
|
},
|
|
1729
1688
|
"required": [
|
|
@@ -1733,16 +1692,15 @@
|
|
|
1733
1692
|
"feed_seq",
|
|
1734
1693
|
"id",
|
|
1735
1694
|
"kind",
|
|
1695
|
+
"message_id",
|
|
1736
1696
|
"model",
|
|
1737
1697
|
"payload",
|
|
1738
1698
|
"record_format",
|
|
1739
1699
|
"record_type",
|
|
1740
1700
|
"session_id",
|
|
1741
|
-
"session_message_id",
|
|
1742
1701
|
"source",
|
|
1743
1702
|
"tokens_info",
|
|
1744
|
-
"tools"
|
|
1745
|
-
"turn_id"
|
|
1703
|
+
"tools"
|
|
1746
1704
|
],
|
|
1747
1705
|
"title": "CodexAppServerSessionRecord",
|
|
1748
1706
|
"type": "object",
|
|
@@ -1991,7 +1949,7 @@
|
|
|
1991
1949
|
}
|
|
1992
1950
|
],
|
|
1993
1951
|
"default": null,
|
|
1994
|
-
"description": "Reasoning effort for every
|
|
1952
|
+
"description": "Reasoning effort for every message. Omit to use the model default."
|
|
1995
1953
|
},
|
|
1996
1954
|
"model": {
|
|
1997
1955
|
"description": "The model the session runs on: a Responses-capable id from the models table. Required.",
|
|
@@ -2008,7 +1966,7 @@
|
|
|
2008
1966
|
}
|
|
2009
1967
|
],
|
|
2010
1968
|
"default": null,
|
|
2011
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
1969
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
2012
1970
|
"title": "Prompt"
|
|
2013
1971
|
}
|
|
2014
1972
|
},
|
|
@@ -2988,6 +2946,19 @@
|
|
|
2988
2946
|
"title": "Kind",
|
|
2989
2947
|
"type": "string"
|
|
2990
2948
|
},
|
|
2949
|
+
"message_id": {
|
|
2950
|
+
"anyOf": [
|
|
2951
|
+
{
|
|
2952
|
+
"type": "string"
|
|
2953
|
+
},
|
|
2954
|
+
{
|
|
2955
|
+
"type": "null"
|
|
2956
|
+
}
|
|
2957
|
+
],
|
|
2958
|
+
"default": null,
|
|
2959
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
2960
|
+
"title": "Message Id"
|
|
2961
|
+
},
|
|
2991
2962
|
"model": {
|
|
2992
2963
|
"anyOf": [
|
|
2993
2964
|
{
|
|
@@ -3058,19 +3029,6 @@
|
|
|
3058
3029
|
"title": "Session Id",
|
|
3059
3030
|
"type": "string"
|
|
3060
3031
|
},
|
|
3061
|
-
"session_message_id": {
|
|
3062
|
-
"anyOf": [
|
|
3063
|
-
{
|
|
3064
|
-
"type": "string"
|
|
3065
|
-
},
|
|
3066
|
-
{
|
|
3067
|
-
"type": "null"
|
|
3068
|
-
}
|
|
3069
|
-
],
|
|
3070
|
-
"default": null,
|
|
3071
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
3072
|
-
"title": "Session Message Id"
|
|
3073
|
-
},
|
|
3074
3032
|
"source": {
|
|
3075
3033
|
"const": "codex",
|
|
3076
3034
|
"default": "codex",
|
|
@@ -3102,19 +3060,6 @@
|
|
|
3102
3060
|
],
|
|
3103
3061
|
"default": null,
|
|
3104
3062
|
"title": "Tools"
|
|
3105
|
-
},
|
|
3106
|
-
"turn_id": {
|
|
3107
|
-
"anyOf": [
|
|
3108
|
-
{
|
|
3109
|
-
"type": "string"
|
|
3110
|
-
},
|
|
3111
|
-
{
|
|
3112
|
-
"type": "null"
|
|
3113
|
-
}
|
|
3114
|
-
],
|
|
3115
|
-
"default": null,
|
|
3116
|
-
"description": "Turn containing this record, when applicable.",
|
|
3117
|
-
"title": "Turn Id"
|
|
3118
3063
|
}
|
|
3119
3064
|
},
|
|
3120
3065
|
"required": [
|
|
@@ -3124,16 +3069,15 @@
|
|
|
3124
3069
|
"feed_seq",
|
|
3125
3070
|
"id",
|
|
3126
3071
|
"kind",
|
|
3072
|
+
"message_id",
|
|
3127
3073
|
"model",
|
|
3128
3074
|
"payload",
|
|
3129
3075
|
"record_format",
|
|
3130
3076
|
"record_type",
|
|
3131
3077
|
"session_id",
|
|
3132
|
-
"session_message_id",
|
|
3133
3078
|
"source",
|
|
3134
3079
|
"tokens_info",
|
|
3135
|
-
"tools"
|
|
3136
|
-
"turn_id"
|
|
3080
|
+
"tools"
|
|
3137
3081
|
],
|
|
3138
3082
|
"title": "CodexSessionRecord",
|
|
3139
3083
|
"type": "object",
|
|
@@ -4021,33 +3965,33 @@
|
|
|
4021
3965
|
"description": "Known values: text (append assistant output), thinking (replace the readable reasoning-summary preview). Open vocabulary: ignore deltas with unknown kinds.",
|
|
4022
3966
|
"type": "string"
|
|
4023
3967
|
},
|
|
4024
|
-
"
|
|
3968
|
+
"message_id": {
|
|
4025
3969
|
"anyOf": [
|
|
4026
3970
|
{
|
|
4027
|
-
"type": "
|
|
3971
|
+
"type": "string"
|
|
4028
3972
|
},
|
|
4029
3973
|
{
|
|
4030
3974
|
"type": "null"
|
|
4031
3975
|
}
|
|
4032
3976
|
],
|
|
4033
3977
|
"default": null,
|
|
4034
|
-
"description": "
|
|
4035
|
-
"title": "
|
|
3978
|
+
"description": "Identifier of the message being answered, if known.",
|
|
3979
|
+
"title": "Message Id"
|
|
4036
3980
|
},
|
|
4037
|
-
"
|
|
3981
|
+
"output_tokens": {
|
|
4038
3982
|
"anyOf": [
|
|
4039
3983
|
{
|
|
4040
|
-
"type": "
|
|
3984
|
+
"type": "integer"
|
|
4041
3985
|
},
|
|
4042
3986
|
{
|
|
4043
3987
|
"type": "null"
|
|
4044
3988
|
}
|
|
4045
3989
|
],
|
|
4046
3990
|
"default": null,
|
|
4047
|
-
"description": "
|
|
4048
|
-
"title": "
|
|
3991
|
+
"description": "Output tokens generated so far for the current response.",
|
|
3992
|
+
"title": "Output Tokens"
|
|
4049
3993
|
},
|
|
4050
|
-
"
|
|
3994
|
+
"text": {
|
|
4051
3995
|
"anyOf": [
|
|
4052
3996
|
{
|
|
4053
3997
|
"type": "string"
|
|
@@ -4057,8 +4001,8 @@
|
|
|
4057
4001
|
}
|
|
4058
4002
|
],
|
|
4059
4003
|
"default": null,
|
|
4060
|
-
"description": "
|
|
4061
|
-
"title": "
|
|
4004
|
+
"description": "For \"text\", an append-only fragment. For \"thinking\", the first-line prefix of the latest summary section (at most 512 characters); replace the preview, and clear it on an empty string. Null means no text update.",
|
|
4005
|
+
"title": "Text"
|
|
4062
4006
|
},
|
|
4063
4007
|
"type": {
|
|
4064
4008
|
"const": "delta",
|
|
@@ -4069,30 +4013,14 @@
|
|
|
4069
4013
|
},
|
|
4070
4014
|
"required": [
|
|
4071
4015
|
"kind",
|
|
4016
|
+
"message_id",
|
|
4072
4017
|
"output_tokens",
|
|
4073
4018
|
"text",
|
|
4074
|
-
"turn_id",
|
|
4075
4019
|
"type"
|
|
4076
4020
|
],
|
|
4077
4021
|
"title": "DeltaFrame",
|
|
4078
4022
|
"type": "object"
|
|
4079
4023
|
},
|
|
4080
|
-
"DoneFrame": {
|
|
4081
|
-
"description": "Terminal marker: the conversation is over, after the final session\nframe carried the end state. Followed by a normal close (1000).",
|
|
4082
|
-
"properties": {
|
|
4083
|
-
"type": {
|
|
4084
|
-
"const": "done",
|
|
4085
|
-
"default": "done",
|
|
4086
|
-
"title": "Type",
|
|
4087
|
-
"type": "string"
|
|
4088
|
-
}
|
|
4089
|
-
},
|
|
4090
|
-
"required": [
|
|
4091
|
-
"type"
|
|
4092
|
-
],
|
|
4093
|
-
"title": "DoneFrame",
|
|
4094
|
-
"type": "object"
|
|
4095
|
-
},
|
|
4096
4024
|
"Duration": {
|
|
4097
4025
|
"additionalProperties": false,
|
|
4098
4026
|
"description": "A duration as explicit units, summed. Set any of `hours`/`minutes`/\n`seconds` (at least one). The alternative to the `30m`-style shorthand\nstring wherever a duration is accepted.",
|
|
@@ -4430,7 +4358,7 @@
|
|
|
4430
4358
|
},
|
|
4431
4359
|
"EnvironmentOutputPayload": {
|
|
4432
4360
|
"additionalProperties": true,
|
|
4433
|
-
"description": "environment_output: one chunk of output from preparing the environment,\nincluding the customer's own hooks. Many fire per
|
|
4361
|
+
"description": "environment_output: one chunk of output from preparing the environment,\nincluding the customer's own hooks. Many fire per message; `chunk` orders\nthem within a step.",
|
|
4434
4362
|
"properties": {
|
|
4435
4363
|
"chunk": {
|
|
4436
4364
|
"title": "Chunk",
|
|
@@ -4520,6 +4448,19 @@
|
|
|
4520
4448
|
"title": "Kind",
|
|
4521
4449
|
"type": "string"
|
|
4522
4450
|
},
|
|
4451
|
+
"message_id": {
|
|
4452
|
+
"anyOf": [
|
|
4453
|
+
{
|
|
4454
|
+
"type": "string"
|
|
4455
|
+
},
|
|
4456
|
+
{
|
|
4457
|
+
"type": "null"
|
|
4458
|
+
}
|
|
4459
|
+
],
|
|
4460
|
+
"default": null,
|
|
4461
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
4462
|
+
"title": "Message Id"
|
|
4463
|
+
},
|
|
4523
4464
|
"model": {
|
|
4524
4465
|
"anyOf": [
|
|
4525
4466
|
{
|
|
@@ -4552,19 +4493,6 @@
|
|
|
4552
4493
|
"title": "Session Id",
|
|
4553
4494
|
"type": "string"
|
|
4554
4495
|
},
|
|
4555
|
-
"session_message_id": {
|
|
4556
|
-
"anyOf": [
|
|
4557
|
-
{
|
|
4558
|
-
"type": "string"
|
|
4559
|
-
},
|
|
4560
|
-
{
|
|
4561
|
-
"type": "null"
|
|
4562
|
-
}
|
|
4563
|
-
],
|
|
4564
|
-
"default": null,
|
|
4565
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
4566
|
-
"title": "Session Message Id"
|
|
4567
|
-
},
|
|
4568
4496
|
"source": {
|
|
4569
4497
|
"const": "lifecycle",
|
|
4570
4498
|
"default": "lifecycle",
|
|
@@ -4596,19 +4524,6 @@
|
|
|
4596
4524
|
],
|
|
4597
4525
|
"default": null,
|
|
4598
4526
|
"title": "Tools"
|
|
4599
|
-
},
|
|
4600
|
-
"turn_id": {
|
|
4601
|
-
"anyOf": [
|
|
4602
|
-
{
|
|
4603
|
-
"type": "string"
|
|
4604
|
-
},
|
|
4605
|
-
{
|
|
4606
|
-
"type": "null"
|
|
4607
|
-
}
|
|
4608
|
-
],
|
|
4609
|
-
"default": null,
|
|
4610
|
-
"description": "Turn containing this record, when applicable.",
|
|
4611
|
-
"title": "Turn Id"
|
|
4612
4527
|
}
|
|
4613
4528
|
},
|
|
4614
4529
|
"required": [
|
|
@@ -4618,16 +4533,15 @@
|
|
|
4618
4533
|
"feed_seq",
|
|
4619
4534
|
"id",
|
|
4620
4535
|
"kind",
|
|
4536
|
+
"message_id",
|
|
4621
4537
|
"model",
|
|
4622
4538
|
"payload",
|
|
4623
4539
|
"record_format",
|
|
4624
4540
|
"record_type",
|
|
4625
4541
|
"session_id",
|
|
4626
|
-
"session_message_id",
|
|
4627
4542
|
"source",
|
|
4628
4543
|
"tokens_info",
|
|
4629
|
-
"tools"
|
|
4630
|
-
"turn_id"
|
|
4544
|
+
"tools"
|
|
4631
4545
|
],
|
|
4632
4546
|
"title": "EnvironmentOutputRecord",
|
|
4633
4547
|
"type": "object",
|
|
@@ -4737,6 +4651,19 @@
|
|
|
4737
4651
|
"title": "Kind",
|
|
4738
4652
|
"type": "string"
|
|
4739
4653
|
},
|
|
4654
|
+
"message_id": {
|
|
4655
|
+
"anyOf": [
|
|
4656
|
+
{
|
|
4657
|
+
"type": "string"
|
|
4658
|
+
},
|
|
4659
|
+
{
|
|
4660
|
+
"type": "null"
|
|
4661
|
+
}
|
|
4662
|
+
],
|
|
4663
|
+
"default": null,
|
|
4664
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
4665
|
+
"title": "Message Id"
|
|
4666
|
+
},
|
|
4740
4667
|
"model": {
|
|
4741
4668
|
"anyOf": [
|
|
4742
4669
|
{
|
|
@@ -4769,19 +4696,6 @@
|
|
|
4769
4696
|
"title": "Session Id",
|
|
4770
4697
|
"type": "string"
|
|
4771
4698
|
},
|
|
4772
|
-
"session_message_id": {
|
|
4773
|
-
"anyOf": [
|
|
4774
|
-
{
|
|
4775
|
-
"type": "string"
|
|
4776
|
-
},
|
|
4777
|
-
{
|
|
4778
|
-
"type": "null"
|
|
4779
|
-
}
|
|
4780
|
-
],
|
|
4781
|
-
"default": null,
|
|
4782
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
4783
|
-
"title": "Session Message Id"
|
|
4784
|
-
},
|
|
4785
4699
|
"source": {
|
|
4786
4700
|
"const": "lifecycle",
|
|
4787
4701
|
"default": "lifecycle",
|
|
@@ -4813,19 +4727,6 @@
|
|
|
4813
4727
|
],
|
|
4814
4728
|
"default": null,
|
|
4815
4729
|
"title": "Tools"
|
|
4816
|
-
},
|
|
4817
|
-
"turn_id": {
|
|
4818
|
-
"anyOf": [
|
|
4819
|
-
{
|
|
4820
|
-
"type": "string"
|
|
4821
|
-
},
|
|
4822
|
-
{
|
|
4823
|
-
"type": "null"
|
|
4824
|
-
}
|
|
4825
|
-
],
|
|
4826
|
-
"default": null,
|
|
4827
|
-
"description": "Turn containing this record, when applicable.",
|
|
4828
|
-
"title": "Turn Id"
|
|
4829
4730
|
}
|
|
4830
4731
|
},
|
|
4831
4732
|
"required": [
|
|
@@ -4835,16 +4736,15 @@
|
|
|
4835
4736
|
"feed_seq",
|
|
4836
4737
|
"id",
|
|
4837
4738
|
"kind",
|
|
4739
|
+
"message_id",
|
|
4838
4740
|
"model",
|
|
4839
4741
|
"payload",
|
|
4840
4742
|
"record_format",
|
|
4841
4743
|
"record_type",
|
|
4842
4744
|
"session_id",
|
|
4843
|
-
"session_message_id",
|
|
4844
4745
|
"source",
|
|
4845
4746
|
"tokens_info",
|
|
4846
|
-
"tools"
|
|
4847
|
-
"turn_id"
|
|
4747
|
+
"tools"
|
|
4848
4748
|
],
|
|
4849
4749
|
"title": "EnvironmentPhaseRecord",
|
|
4850
4750
|
"type": "object",
|
|
@@ -4927,6 +4827,19 @@
|
|
|
4927
4827
|
"title": "Kind",
|
|
4928
4828
|
"type": "string"
|
|
4929
4829
|
},
|
|
4830
|
+
"message_id": {
|
|
4831
|
+
"anyOf": [
|
|
4832
|
+
{
|
|
4833
|
+
"type": "string"
|
|
4834
|
+
},
|
|
4835
|
+
{
|
|
4836
|
+
"type": "null"
|
|
4837
|
+
}
|
|
4838
|
+
],
|
|
4839
|
+
"default": null,
|
|
4840
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
4841
|
+
"title": "Message Id"
|
|
4842
|
+
},
|
|
4930
4843
|
"model": {
|
|
4931
4844
|
"anyOf": [
|
|
4932
4845
|
{
|
|
@@ -4959,19 +4872,6 @@
|
|
|
4959
4872
|
"title": "Session Id",
|
|
4960
4873
|
"type": "string"
|
|
4961
4874
|
},
|
|
4962
|
-
"session_message_id": {
|
|
4963
|
-
"anyOf": [
|
|
4964
|
-
{
|
|
4965
|
-
"type": "string"
|
|
4966
|
-
},
|
|
4967
|
-
{
|
|
4968
|
-
"type": "null"
|
|
4969
|
-
}
|
|
4970
|
-
],
|
|
4971
|
-
"default": null,
|
|
4972
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
4973
|
-
"title": "Session Message Id"
|
|
4974
|
-
},
|
|
4975
4875
|
"source": {
|
|
4976
4876
|
"const": "lifecycle",
|
|
4977
4877
|
"default": "lifecycle",
|
|
@@ -5003,19 +4903,6 @@
|
|
|
5003
4903
|
],
|
|
5004
4904
|
"default": null,
|
|
5005
4905
|
"title": "Tools"
|
|
5006
|
-
},
|
|
5007
|
-
"turn_id": {
|
|
5008
|
-
"anyOf": [
|
|
5009
|
-
{
|
|
5010
|
-
"type": "string"
|
|
5011
|
-
},
|
|
5012
|
-
{
|
|
5013
|
-
"type": "null"
|
|
5014
|
-
}
|
|
5015
|
-
],
|
|
5016
|
-
"default": null,
|
|
5017
|
-
"description": "Turn containing this record, when applicable.",
|
|
5018
|
-
"title": "Turn Id"
|
|
5019
4906
|
}
|
|
5020
4907
|
},
|
|
5021
4908
|
"required": [
|
|
@@ -5025,16 +4912,15 @@
|
|
|
5025
4912
|
"feed_seq",
|
|
5026
4913
|
"id",
|
|
5027
4914
|
"kind",
|
|
4915
|
+
"message_id",
|
|
5028
4916
|
"model",
|
|
5029
4917
|
"payload",
|
|
5030
4918
|
"record_format",
|
|
5031
4919
|
"record_type",
|
|
5032
4920
|
"session_id",
|
|
5033
|
-
"session_message_id",
|
|
5034
4921
|
"source",
|
|
5035
4922
|
"tokens_info",
|
|
5036
|
-
"tools"
|
|
5037
|
-
"turn_id"
|
|
4923
|
+
"tools"
|
|
5038
4924
|
],
|
|
5039
4925
|
"title": "EnvironmentReadyRecord",
|
|
5040
4926
|
"type": "object",
|
|
@@ -5119,6 +5005,30 @@
|
|
|
5119
5005
|
"title": "ErrorFrame",
|
|
5120
5006
|
"type": "object"
|
|
5121
5007
|
},
|
|
5008
|
+
"ErrorReason": {
|
|
5009
|
+
"description": "Why a message failed, was stopped, or was cancelled.",
|
|
5010
|
+
"enum": [
|
|
5011
|
+
"error",
|
|
5012
|
+
"tool_call_failed",
|
|
5013
|
+
"budget_hit",
|
|
5014
|
+
"payment_required",
|
|
5015
|
+
"blocked",
|
|
5016
|
+
"contact_email_required",
|
|
5017
|
+
"lifecycle_hook_failed",
|
|
5018
|
+
"missing_repo_access",
|
|
5019
|
+
"missing_token_permissions",
|
|
5020
|
+
"missing_environment_variables",
|
|
5021
|
+
"missing_github_integration",
|
|
5022
|
+
"agent_unavailable",
|
|
5023
|
+
"upstream_unavailable",
|
|
5024
|
+
"unsupported_configuration",
|
|
5025
|
+
"execution_disabled",
|
|
5026
|
+
"interrupted",
|
|
5027
|
+
"stopped"
|
|
5028
|
+
],
|
|
5029
|
+
"title": "ErrorReason",
|
|
5030
|
+
"type": "string"
|
|
5031
|
+
},
|
|
5122
5032
|
"GeminiConfig": {
|
|
5123
5033
|
"additionalProperties": false,
|
|
5124
5034
|
"description": "Native options supported by the current Gemini CLI adapter.",
|
|
@@ -5138,7 +5048,7 @@
|
|
|
5138
5048
|
}
|
|
5139
5049
|
],
|
|
5140
5050
|
"default": null,
|
|
5141
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
5051
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
5142
5052
|
"title": "Prompt"
|
|
5143
5053
|
}
|
|
5144
5054
|
},
|
|
@@ -5397,6 +5307,19 @@
|
|
|
5397
5307
|
"title": "Kind",
|
|
5398
5308
|
"type": "string"
|
|
5399
5309
|
},
|
|
5310
|
+
"message_id": {
|
|
5311
|
+
"anyOf": [
|
|
5312
|
+
{
|
|
5313
|
+
"type": "string"
|
|
5314
|
+
},
|
|
5315
|
+
{
|
|
5316
|
+
"type": "null"
|
|
5317
|
+
}
|
|
5318
|
+
],
|
|
5319
|
+
"default": null,
|
|
5320
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
5321
|
+
"title": "Message Id"
|
|
5322
|
+
},
|
|
5400
5323
|
"model": {
|
|
5401
5324
|
"anyOf": [
|
|
5402
5325
|
{
|
|
@@ -5428,19 +5351,6 @@
|
|
|
5428
5351
|
"title": "Session Id",
|
|
5429
5352
|
"type": "string"
|
|
5430
5353
|
},
|
|
5431
|
-
"session_message_id": {
|
|
5432
|
-
"anyOf": [
|
|
5433
|
-
{
|
|
5434
|
-
"type": "string"
|
|
5435
|
-
},
|
|
5436
|
-
{
|
|
5437
|
-
"type": "null"
|
|
5438
|
-
}
|
|
5439
|
-
],
|
|
5440
|
-
"default": null,
|
|
5441
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
5442
|
-
"title": "Session Message Id"
|
|
5443
|
-
},
|
|
5444
5354
|
"source": {
|
|
5445
5355
|
"const": "gemini",
|
|
5446
5356
|
"default": "gemini",
|
|
@@ -5472,19 +5382,6 @@
|
|
|
5472
5382
|
],
|
|
5473
5383
|
"default": null,
|
|
5474
5384
|
"title": "Tools"
|
|
5475
|
-
},
|
|
5476
|
-
"turn_id": {
|
|
5477
|
-
"anyOf": [
|
|
5478
|
-
{
|
|
5479
|
-
"type": "string"
|
|
5480
|
-
},
|
|
5481
|
-
{
|
|
5482
|
-
"type": "null"
|
|
5483
|
-
}
|
|
5484
|
-
],
|
|
5485
|
-
"default": null,
|
|
5486
|
-
"description": "Turn containing this record, when applicable.",
|
|
5487
|
-
"title": "Turn Id"
|
|
5488
5385
|
}
|
|
5489
5386
|
},
|
|
5490
5387
|
"required": [
|
|
@@ -5494,16 +5391,15 @@
|
|
|
5494
5391
|
"feed_seq",
|
|
5495
5392
|
"id",
|
|
5496
5393
|
"kind",
|
|
5394
|
+
"message_id",
|
|
5497
5395
|
"model",
|
|
5498
5396
|
"payload",
|
|
5499
5397
|
"record_format",
|
|
5500
5398
|
"record_type",
|
|
5501
5399
|
"session_id",
|
|
5502
|
-
"session_message_id",
|
|
5503
5400
|
"source",
|
|
5504
5401
|
"tokens_info",
|
|
5505
|
-
"tools"
|
|
5506
|
-
"turn_id"
|
|
5402
|
+
"tools"
|
|
5507
5403
|
],
|
|
5508
5404
|
"title": "GeminiSessionRecord",
|
|
5509
5405
|
"type": "object",
|
|
@@ -6915,11 +6811,82 @@
|
|
|
6915
6811
|
},
|
|
6916
6812
|
"LinearIssueAction": {
|
|
6917
6813
|
"enum": [
|
|
6918
|
-
"opened"
|
|
6814
|
+
"opened",
|
|
6815
|
+
"updated"
|
|
6919
6816
|
],
|
|
6920
6817
|
"title": "LinearIssueAction",
|
|
6921
6818
|
"type": "string"
|
|
6922
6819
|
},
|
|
6820
|
+
"LinearIssueChanged": {
|
|
6821
|
+
"additionalProperties": false,
|
|
6822
|
+
"description": "The fields an `updated` event watches. Every listed field must change in\nthe same edit.",
|
|
6823
|
+
"properties": {
|
|
6824
|
+
"assignee": {
|
|
6825
|
+
"anyOf": [
|
|
6826
|
+
{
|
|
6827
|
+
"$ref": "#/$defs/LinearValueChange"
|
|
6828
|
+
},
|
|
6829
|
+
{
|
|
6830
|
+
"type": "null"
|
|
6831
|
+
}
|
|
6832
|
+
],
|
|
6833
|
+
"default": null
|
|
6834
|
+
},
|
|
6835
|
+
"labels": {
|
|
6836
|
+
"anyOf": [
|
|
6837
|
+
{
|
|
6838
|
+
"$ref": "#/$defs/LinearLabelsChange"
|
|
6839
|
+
},
|
|
6840
|
+
{
|
|
6841
|
+
"type": "null"
|
|
6842
|
+
}
|
|
6843
|
+
],
|
|
6844
|
+
"default": null
|
|
6845
|
+
},
|
|
6846
|
+
"priority": {
|
|
6847
|
+
"anyOf": [
|
|
6848
|
+
{
|
|
6849
|
+
"$ref": "#/$defs/LinearValueChange"
|
|
6850
|
+
},
|
|
6851
|
+
{
|
|
6852
|
+
"type": "null"
|
|
6853
|
+
}
|
|
6854
|
+
],
|
|
6855
|
+
"default": null
|
|
6856
|
+
},
|
|
6857
|
+
"project": {
|
|
6858
|
+
"anyOf": [
|
|
6859
|
+
{
|
|
6860
|
+
"$ref": "#/$defs/LinearValueChange"
|
|
6861
|
+
},
|
|
6862
|
+
{
|
|
6863
|
+
"type": "null"
|
|
6864
|
+
}
|
|
6865
|
+
],
|
|
6866
|
+
"default": null
|
|
6867
|
+
},
|
|
6868
|
+
"state": {
|
|
6869
|
+
"anyOf": [
|
|
6870
|
+
{
|
|
6871
|
+
"$ref": "#/$defs/LinearValueChange"
|
|
6872
|
+
},
|
|
6873
|
+
{
|
|
6874
|
+
"type": "null"
|
|
6875
|
+
}
|
|
6876
|
+
],
|
|
6877
|
+
"default": null
|
|
6878
|
+
}
|
|
6879
|
+
},
|
|
6880
|
+
"required": [
|
|
6881
|
+
"assignee",
|
|
6882
|
+
"labels",
|
|
6883
|
+
"priority",
|
|
6884
|
+
"project",
|
|
6885
|
+
"state"
|
|
6886
|
+
],
|
|
6887
|
+
"title": "LinearIssueChanged",
|
|
6888
|
+
"type": "object"
|
|
6889
|
+
},
|
|
6923
6890
|
"LinearIssueEvent": {
|
|
6924
6891
|
"properties": {
|
|
6925
6892
|
"action": {
|
|
@@ -6991,6 +6958,115 @@
|
|
|
6991
6958
|
"title": "LinearIssueEvent",
|
|
6992
6959
|
"type": "object"
|
|
6993
6960
|
},
|
|
6961
|
+
"LinearLabelsChange": {
|
|
6962
|
+
"additionalProperties": false,
|
|
6963
|
+
"description": "A change to the issue's labels. `added` matches when a listed label was\nadded and `removed` when a listed label was removed. `{}` is any label\nchange.",
|
|
6964
|
+
"properties": {
|
|
6965
|
+
"added": {
|
|
6966
|
+
"anyOf": [
|
|
6967
|
+
{
|
|
6968
|
+
"$ref": "#/$defs/LinearValueFilter"
|
|
6969
|
+
},
|
|
6970
|
+
{
|
|
6971
|
+
"type": "null"
|
|
6972
|
+
}
|
|
6973
|
+
],
|
|
6974
|
+
"default": null
|
|
6975
|
+
},
|
|
6976
|
+
"removed": {
|
|
6977
|
+
"anyOf": [
|
|
6978
|
+
{
|
|
6979
|
+
"$ref": "#/$defs/LinearValueFilter"
|
|
6980
|
+
},
|
|
6981
|
+
{
|
|
6982
|
+
"type": "null"
|
|
6983
|
+
}
|
|
6984
|
+
],
|
|
6985
|
+
"default": null
|
|
6986
|
+
}
|
|
6987
|
+
},
|
|
6988
|
+
"required": [
|
|
6989
|
+
"added",
|
|
6990
|
+
"removed"
|
|
6991
|
+
],
|
|
6992
|
+
"title": "LinearLabelsChange",
|
|
6993
|
+
"type": "object"
|
|
6994
|
+
},
|
|
6995
|
+
"LinearValueChange": {
|
|
6996
|
+
"additionalProperties": false,
|
|
6997
|
+
"description": "A change to one issue field. `from` matches the value before the change\nand `to` the value after it. Leaving either out matches any value, so `{}`\nis any change to the field.",
|
|
6998
|
+
"properties": {
|
|
6999
|
+
"from": {
|
|
7000
|
+
"anyOf": [
|
|
7001
|
+
{
|
|
7002
|
+
"$ref": "#/$defs/LinearValueFilter"
|
|
7003
|
+
},
|
|
7004
|
+
{
|
|
7005
|
+
"type": "null"
|
|
7006
|
+
}
|
|
7007
|
+
],
|
|
7008
|
+
"default": null
|
|
7009
|
+
},
|
|
7010
|
+
"to": {
|
|
7011
|
+
"anyOf": [
|
|
7012
|
+
{
|
|
7013
|
+
"$ref": "#/$defs/LinearValueFilter"
|
|
7014
|
+
},
|
|
7015
|
+
{
|
|
7016
|
+
"type": "null"
|
|
7017
|
+
}
|
|
7018
|
+
],
|
|
7019
|
+
"default": null
|
|
7020
|
+
}
|
|
7021
|
+
},
|
|
7022
|
+
"required": [
|
|
7023
|
+
"from",
|
|
7024
|
+
"to"
|
|
7025
|
+
],
|
|
7026
|
+
"title": "LinearValueChange",
|
|
7027
|
+
"type": "object"
|
|
7028
|
+
},
|
|
7029
|
+
"LinearValueFilter": {
|
|
7030
|
+
"anyOf": [
|
|
7031
|
+
{
|
|
7032
|
+
"additionalProperties": false,
|
|
7033
|
+
"description": "Linear names to match, include minus exclude. A bare list or a bare\nstring is shorthand for `include`. It matches when one of the issue's\nvalues is included (or nothing is) and none is excluded. `none` names an\nunset assignee or project, and `any` names any set assignee.",
|
|
7034
|
+
"properties": {
|
|
7035
|
+
"exclude": {
|
|
7036
|
+
"default": [],
|
|
7037
|
+
"items": {
|
|
7038
|
+
"type": "string"
|
|
7039
|
+
},
|
|
7040
|
+
"title": "Exclude",
|
|
7041
|
+
"type": "array"
|
|
7042
|
+
},
|
|
7043
|
+
"include": {
|
|
7044
|
+
"default": [],
|
|
7045
|
+
"items": {
|
|
7046
|
+
"type": "string"
|
|
7047
|
+
},
|
|
7048
|
+
"title": "Include",
|
|
7049
|
+
"type": "array"
|
|
7050
|
+
}
|
|
7051
|
+
},
|
|
7052
|
+
"required": [
|
|
7053
|
+
"exclude",
|
|
7054
|
+
"include"
|
|
7055
|
+
],
|
|
7056
|
+
"title": "LinearValueFilter",
|
|
7057
|
+
"type": "object"
|
|
7058
|
+
},
|
|
7059
|
+
{
|
|
7060
|
+
"items": {
|
|
7061
|
+
"type": "string"
|
|
7062
|
+
},
|
|
7063
|
+
"type": "array"
|
|
7064
|
+
},
|
|
7065
|
+
{
|
|
7066
|
+
"type": "string"
|
|
7067
|
+
}
|
|
7068
|
+
]
|
|
7069
|
+
},
|
|
6994
7070
|
"LlmCost": {
|
|
6995
7071
|
"description": "What LLM tokens cost, in total and by model.",
|
|
6996
7072
|
"properties": {
|
|
@@ -7171,27 +7247,56 @@
|
|
|
7171
7247
|
"title": "MemorySize",
|
|
7172
7248
|
"type": "object"
|
|
7173
7249
|
},
|
|
7174
|
-
"
|
|
7250
|
+
"MessageEndedPayload": {
|
|
7175
7251
|
"additionalProperties": true,
|
|
7176
|
-
"description": "
|
|
7252
|
+
"description": "message_ended: the message was answered, or its answer failed, was\nstopped, or was cancelled. `error` is the same object as the session's\n`error`, null when the message was answered. `cost` and `tokens` are what\nanswering it spent. Messages answered together report the spend once, on\nthe last of them.",
|
|
7177
7253
|
"properties": {
|
|
7254
|
+
"cost": {
|
|
7255
|
+
"$ref": "#/$defs/Cost"
|
|
7256
|
+
},
|
|
7257
|
+
"duration_ms": {
|
|
7258
|
+
"anyOf": [
|
|
7259
|
+
{
|
|
7260
|
+
"type": "integer"
|
|
7261
|
+
},
|
|
7262
|
+
{
|
|
7263
|
+
"type": "null"
|
|
7264
|
+
}
|
|
7265
|
+
],
|
|
7266
|
+
"default": null,
|
|
7267
|
+
"title": "Duration Ms"
|
|
7268
|
+
},
|
|
7269
|
+
"error": {
|
|
7270
|
+
"anyOf": [
|
|
7271
|
+
{
|
|
7272
|
+
"$ref": "#/$defs/SessionError"
|
|
7273
|
+
},
|
|
7274
|
+
{
|
|
7275
|
+
"type": "null"
|
|
7276
|
+
}
|
|
7277
|
+
],
|
|
7278
|
+
"default": null
|
|
7279
|
+
},
|
|
7178
7280
|
"message_id": {
|
|
7179
7281
|
"title": "Message Id",
|
|
7180
7282
|
"type": "string"
|
|
7181
7283
|
},
|
|
7182
|
-
"
|
|
7183
|
-
"title": "
|
|
7284
|
+
"status": {
|
|
7285
|
+
"title": "Status",
|
|
7184
7286
|
"type": "string"
|
|
7287
|
+
},
|
|
7288
|
+
"tokens": {
|
|
7289
|
+
"$ref": "#/$defs/Tokens"
|
|
7185
7290
|
}
|
|
7186
7291
|
},
|
|
7187
7292
|
"required": [
|
|
7188
7293
|
"message_id",
|
|
7189
|
-
"
|
|
7294
|
+
"status"
|
|
7190
7295
|
],
|
|
7191
|
-
"title": "
|
|
7296
|
+
"title": "MessageEndedPayload",
|
|
7192
7297
|
"type": "object"
|
|
7193
7298
|
},
|
|
7194
|
-
"
|
|
7299
|
+
"MessageEndedRecord": {
|
|
7195
7300
|
"properties": {
|
|
7196
7301
|
"cost": {
|
|
7197
7302
|
"anyOf": [
|
|
@@ -7238,6 +7343,19 @@
|
|
|
7238
7343
|
"title": "Kind",
|
|
7239
7344
|
"type": "string"
|
|
7240
7345
|
},
|
|
7346
|
+
"message_id": {
|
|
7347
|
+
"anyOf": [
|
|
7348
|
+
{
|
|
7349
|
+
"type": "string"
|
|
7350
|
+
},
|
|
7351
|
+
{
|
|
7352
|
+
"type": "null"
|
|
7353
|
+
}
|
|
7354
|
+
],
|
|
7355
|
+
"default": null,
|
|
7356
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
7357
|
+
"title": "Message Id"
|
|
7358
|
+
},
|
|
7241
7359
|
"model": {
|
|
7242
7360
|
"anyOf": [
|
|
7243
7361
|
{
|
|
@@ -7251,7 +7369,7 @@
|
|
|
7251
7369
|
"title": "Model"
|
|
7252
7370
|
},
|
|
7253
7371
|
"payload": {
|
|
7254
|
-
"$ref": "#/$defs/
|
|
7372
|
+
"$ref": "#/$defs/MessageEndedPayload"
|
|
7255
7373
|
},
|
|
7256
7374
|
"record_format": {
|
|
7257
7375
|
"const": "ellipsis_lifecycle@1",
|
|
@@ -7260,8 +7378,8 @@
|
|
|
7260
7378
|
"type": "string"
|
|
7261
7379
|
},
|
|
7262
7380
|
"record_type": {
|
|
7263
|
-
"const": "
|
|
7264
|
-
"default": "
|
|
7381
|
+
"const": "message_ended",
|
|
7382
|
+
"default": "message_ended",
|
|
7265
7383
|
"title": "Record Type",
|
|
7266
7384
|
"type": "string"
|
|
7267
7385
|
},
|
|
@@ -7270,19 +7388,6 @@
|
|
|
7270
7388
|
"title": "Session Id",
|
|
7271
7389
|
"type": "string"
|
|
7272
7390
|
},
|
|
7273
|
-
"session_message_id": {
|
|
7274
|
-
"anyOf": [
|
|
7275
|
-
{
|
|
7276
|
-
"type": "string"
|
|
7277
|
-
},
|
|
7278
|
-
{
|
|
7279
|
-
"type": "null"
|
|
7280
|
-
}
|
|
7281
|
-
],
|
|
7282
|
-
"default": null,
|
|
7283
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
7284
|
-
"title": "Session Message Id"
|
|
7285
|
-
},
|
|
7286
7391
|
"source": {
|
|
7287
7392
|
"const": "lifecycle",
|
|
7288
7393
|
"default": "lifecycle",
|
|
@@ -7314,19 +7419,6 @@
|
|
|
7314
7419
|
],
|
|
7315
7420
|
"default": null,
|
|
7316
7421
|
"title": "Tools"
|
|
7317
|
-
},
|
|
7318
|
-
"turn_id": {
|
|
7319
|
-
"anyOf": [
|
|
7320
|
-
{
|
|
7321
|
-
"type": "string"
|
|
7322
|
-
},
|
|
7323
|
-
{
|
|
7324
|
-
"type": "null"
|
|
7325
|
-
}
|
|
7326
|
-
],
|
|
7327
|
-
"default": null,
|
|
7328
|
-
"description": "Turn containing this record, when applicable.",
|
|
7329
|
-
"title": "Turn Id"
|
|
7330
7422
|
}
|
|
7331
7423
|
},
|
|
7332
7424
|
"required": [
|
|
@@ -7336,51 +7428,93 @@
|
|
|
7336
7428
|
"feed_seq",
|
|
7337
7429
|
"id",
|
|
7338
7430
|
"kind",
|
|
7431
|
+
"message_id",
|
|
7339
7432
|
"model",
|
|
7340
7433
|
"payload",
|
|
7341
7434
|
"record_format",
|
|
7342
7435
|
"record_type",
|
|
7343
7436
|
"session_id",
|
|
7344
|
-
"session_message_id",
|
|
7345
7437
|
"source",
|
|
7346
7438
|
"tokens_info",
|
|
7347
|
-
"tools"
|
|
7348
|
-
"turn_id"
|
|
7439
|
+
"tools"
|
|
7349
7440
|
],
|
|
7350
|
-
"title": "
|
|
7441
|
+
"title": "MessageEndedRecord",
|
|
7351
7442
|
"type": "object",
|
|
7352
7443
|
"x-ellipsis-preserve-payload": true
|
|
7353
7444
|
},
|
|
7354
|
-
"
|
|
7445
|
+
"MessageQueuedPayload": {
|
|
7355
7446
|
"additionalProperties": true,
|
|
7356
|
-
"description": "
|
|
7447
|
+
"description": "message_queued: the message waits because the account already has\n`sessions_alive` sessions alive, its limit.",
|
|
7357
7448
|
"properties": {
|
|
7358
|
-
"
|
|
7449
|
+
"limit": {
|
|
7450
|
+
"title": "Limit",
|
|
7451
|
+
"type": "integer"
|
|
7452
|
+
},
|
|
7453
|
+
"message_id": {
|
|
7454
|
+
"title": "Message Id",
|
|
7455
|
+
"type": "string"
|
|
7456
|
+
},
|
|
7457
|
+
"sessions_alive": {
|
|
7458
|
+
"title": "Sessions Alive",
|
|
7459
|
+
"type": "integer"
|
|
7460
|
+
}
|
|
7461
|
+
},
|
|
7462
|
+
"required": [
|
|
7463
|
+
"message_id",
|
|
7464
|
+
"sessions_alive",
|
|
7465
|
+
"limit"
|
|
7466
|
+
],
|
|
7467
|
+
"title": "MessageQueuedPayload",
|
|
7468
|
+
"type": "object"
|
|
7469
|
+
},
|
|
7470
|
+
"MessageQueuedRecord": {
|
|
7471
|
+
"properties": {
|
|
7472
|
+
"cost": {
|
|
7359
7473
|
"anyOf": [
|
|
7360
7474
|
{
|
|
7361
|
-
"type": "
|
|
7475
|
+
"type": "integer"
|
|
7362
7476
|
},
|
|
7363
7477
|
{
|
|
7364
7478
|
"type": "null"
|
|
7365
7479
|
}
|
|
7366
7480
|
],
|
|
7367
7481
|
"default": null,
|
|
7368
|
-
"title": "
|
|
7482
|
+
"title": "Cost"
|
|
7369
7483
|
},
|
|
7370
|
-
"
|
|
7371
|
-
"
|
|
7484
|
+
"created_at": {
|
|
7485
|
+
"format": "date-time",
|
|
7486
|
+
"title": "Created At",
|
|
7372
7487
|
"type": "string"
|
|
7373
7488
|
},
|
|
7374
|
-
"
|
|
7375
|
-
"
|
|
7376
|
-
|
|
7377
|
-
|
|
7489
|
+
"duration": {
|
|
7490
|
+
"anyOf": [
|
|
7491
|
+
{
|
|
7492
|
+
"type": "integer"
|
|
7493
|
+
},
|
|
7494
|
+
{
|
|
7495
|
+
"type": "null"
|
|
7496
|
+
}
|
|
7497
|
+
],
|
|
7498
|
+
"default": null,
|
|
7499
|
+
"title": "Duration"
|
|
7378
7500
|
},
|
|
7379
|
-
"
|
|
7380
|
-
"
|
|
7501
|
+
"feed_seq": {
|
|
7502
|
+
"description": "Position in the session feed and the stream's resume cursor.",
|
|
7503
|
+
"title": "Feed Seq",
|
|
7504
|
+
"type": "integer"
|
|
7505
|
+
},
|
|
7506
|
+
"id": {
|
|
7507
|
+
"description": "Unique identifier of the record.",
|
|
7508
|
+
"title": "Id",
|
|
7509
|
+
"type": "string"
|
|
7510
|
+
},
|
|
7511
|
+
"kind": {
|
|
7512
|
+
"const": "platform",
|
|
7513
|
+
"default": "platform",
|
|
7514
|
+
"title": "Kind",
|
|
7381
7515
|
"type": "string"
|
|
7382
7516
|
},
|
|
7383
|
-
"
|
|
7517
|
+
"message_id": {
|
|
7384
7518
|
"anyOf": [
|
|
7385
7519
|
{
|
|
7386
7520
|
"type": "string"
|
|
@@ -7390,9 +7524,10 @@
|
|
|
7390
7524
|
}
|
|
7391
7525
|
],
|
|
7392
7526
|
"default": null,
|
|
7393
|
-
"
|
|
7527
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
7528
|
+
"title": "Message Id"
|
|
7394
7529
|
},
|
|
7395
|
-
"
|
|
7530
|
+
"model": {
|
|
7396
7531
|
"anyOf": [
|
|
7397
7532
|
{
|
|
7398
7533
|
"type": "string"
|
|
@@ -7402,29 +7537,83 @@
|
|
|
7402
7537
|
}
|
|
7403
7538
|
],
|
|
7404
7539
|
"default": null,
|
|
7405
|
-
"title": "
|
|
7540
|
+
"title": "Model"
|
|
7541
|
+
},
|
|
7542
|
+
"payload": {
|
|
7543
|
+
"$ref": "#/$defs/MessageQueuedPayload"
|
|
7544
|
+
},
|
|
7545
|
+
"record_format": {
|
|
7546
|
+
"const": "ellipsis_lifecycle@1",
|
|
7547
|
+
"default": "ellipsis_lifecycle@1",
|
|
7548
|
+
"title": "Record Format",
|
|
7549
|
+
"type": "string"
|
|
7550
|
+
},
|
|
7551
|
+
"record_type": {
|
|
7552
|
+
"const": "message_queued",
|
|
7553
|
+
"default": "message_queued",
|
|
7554
|
+
"title": "Record Type",
|
|
7555
|
+
"type": "string"
|
|
7556
|
+
},
|
|
7557
|
+
"session_id": {
|
|
7558
|
+
"description": "Session containing this record.",
|
|
7559
|
+
"title": "Session Id",
|
|
7560
|
+
"type": "string"
|
|
7406
7561
|
},
|
|
7407
|
-
"
|
|
7562
|
+
"source": {
|
|
7563
|
+
"const": "lifecycle",
|
|
7564
|
+
"default": "lifecycle",
|
|
7565
|
+
"title": "Source",
|
|
7566
|
+
"type": "string"
|
|
7567
|
+
},
|
|
7568
|
+
"tokens_info": {
|
|
7408
7569
|
"anyOf": [
|
|
7409
7570
|
{
|
|
7410
|
-
"
|
|
7571
|
+
"$ref": "#/$defs/TokensInfo"
|
|
7572
|
+
},
|
|
7573
|
+
{
|
|
7574
|
+
"type": "null"
|
|
7575
|
+
}
|
|
7576
|
+
],
|
|
7577
|
+
"default": null
|
|
7578
|
+
},
|
|
7579
|
+
"tools": {
|
|
7580
|
+
"anyOf": [
|
|
7581
|
+
{
|
|
7582
|
+
"items": {
|
|
7583
|
+
"type": "string"
|
|
7584
|
+
},
|
|
7585
|
+
"type": "array"
|
|
7411
7586
|
},
|
|
7412
7587
|
{
|
|
7413
7588
|
"type": "null"
|
|
7414
7589
|
}
|
|
7415
7590
|
],
|
|
7416
7591
|
"default": null,
|
|
7417
|
-
"title": "
|
|
7592
|
+
"title": "Tools"
|
|
7418
7593
|
}
|
|
7419
7594
|
},
|
|
7420
7595
|
"required": [
|
|
7596
|
+
"cost",
|
|
7597
|
+
"created_at",
|
|
7598
|
+
"duration",
|
|
7599
|
+
"feed_seq",
|
|
7600
|
+
"id",
|
|
7601
|
+
"kind",
|
|
7421
7602
|
"message_id",
|
|
7422
|
-
"
|
|
7603
|
+
"model",
|
|
7604
|
+
"payload",
|
|
7605
|
+
"record_format",
|
|
7606
|
+
"record_type",
|
|
7607
|
+
"session_id",
|
|
7608
|
+
"source",
|
|
7609
|
+
"tokens_info",
|
|
7610
|
+
"tools"
|
|
7423
7611
|
],
|
|
7424
|
-
"title": "
|
|
7425
|
-
"type": "object"
|
|
7612
|
+
"title": "MessageQueuedRecord",
|
|
7613
|
+
"type": "object",
|
|
7614
|
+
"x-ellipsis-preserve-payload": true
|
|
7426
7615
|
},
|
|
7427
|
-
"
|
|
7616
|
+
"MessageRecord": {
|
|
7428
7617
|
"properties": {
|
|
7429
7618
|
"cost": {
|
|
7430
7619
|
"anyOf": [
|
|
@@ -7471,6 +7660,19 @@
|
|
|
7471
7660
|
"title": "Kind",
|
|
7472
7661
|
"type": "string"
|
|
7473
7662
|
},
|
|
7663
|
+
"message_id": {
|
|
7664
|
+
"anyOf": [
|
|
7665
|
+
{
|
|
7666
|
+
"type": "string"
|
|
7667
|
+
},
|
|
7668
|
+
{
|
|
7669
|
+
"type": "null"
|
|
7670
|
+
}
|
|
7671
|
+
],
|
|
7672
|
+
"default": null,
|
|
7673
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
7674
|
+
"title": "Message Id"
|
|
7675
|
+
},
|
|
7474
7676
|
"model": {
|
|
7475
7677
|
"anyOf": [
|
|
7476
7678
|
{
|
|
@@ -7484,7 +7686,7 @@
|
|
|
7484
7686
|
"title": "Model"
|
|
7485
7687
|
},
|
|
7486
7688
|
"payload": {
|
|
7487
|
-
"$ref": "#/$defs/
|
|
7689
|
+
"$ref": "#/$defs/SessionMessage"
|
|
7488
7690
|
},
|
|
7489
7691
|
"record_format": {
|
|
7490
7692
|
"const": "ellipsis_lifecycle@1",
|
|
@@ -7493,8 +7695,8 @@
|
|
|
7493
7695
|
"type": "string"
|
|
7494
7696
|
},
|
|
7495
7697
|
"record_type": {
|
|
7496
|
-
"const": "
|
|
7497
|
-
"default": "
|
|
7698
|
+
"const": "message",
|
|
7699
|
+
"default": "message",
|
|
7498
7700
|
"title": "Record Type",
|
|
7499
7701
|
"type": "string"
|
|
7500
7702
|
},
|
|
@@ -7503,19 +7705,6 @@
|
|
|
7503
7705
|
"title": "Session Id",
|
|
7504
7706
|
"type": "string"
|
|
7505
7707
|
},
|
|
7506
|
-
"session_message_id": {
|
|
7507
|
-
"anyOf": [
|
|
7508
|
-
{
|
|
7509
|
-
"type": "string"
|
|
7510
|
-
},
|
|
7511
|
-
{
|
|
7512
|
-
"type": "null"
|
|
7513
|
-
}
|
|
7514
|
-
],
|
|
7515
|
-
"default": null,
|
|
7516
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
7517
|
-
"title": "Session Message Id"
|
|
7518
|
-
},
|
|
7519
7708
|
"source": {
|
|
7520
7709
|
"const": "lifecycle",
|
|
7521
7710
|
"default": "lifecycle",
|
|
@@ -7547,19 +7736,6 @@
|
|
|
7547
7736
|
],
|
|
7548
7737
|
"default": null,
|
|
7549
7738
|
"title": "Tools"
|
|
7550
|
-
},
|
|
7551
|
-
"turn_id": {
|
|
7552
|
-
"anyOf": [
|
|
7553
|
-
{
|
|
7554
|
-
"type": "string"
|
|
7555
|
-
},
|
|
7556
|
-
{
|
|
7557
|
-
"type": "null"
|
|
7558
|
-
}
|
|
7559
|
-
],
|
|
7560
|
-
"default": null,
|
|
7561
|
-
"description": "Turn containing this record, when applicable.",
|
|
7562
|
-
"title": "Turn Id"
|
|
7563
7739
|
}
|
|
7564
7740
|
},
|
|
7565
7741
|
"required": [
|
|
@@ -7569,49 +7745,31 @@
|
|
|
7569
7745
|
"feed_seq",
|
|
7570
7746
|
"id",
|
|
7571
7747
|
"kind",
|
|
7748
|
+
"message_id",
|
|
7572
7749
|
"model",
|
|
7573
7750
|
"payload",
|
|
7574
7751
|
"record_format",
|
|
7575
7752
|
"record_type",
|
|
7576
7753
|
"session_id",
|
|
7577
|
-
"session_message_id",
|
|
7578
7754
|
"source",
|
|
7579
7755
|
"tokens_info",
|
|
7580
|
-
"tools"
|
|
7581
|
-
"turn_id"
|
|
7756
|
+
"tools"
|
|
7582
7757
|
],
|
|
7583
|
-
"title": "
|
|
7758
|
+
"title": "MessageRecord",
|
|
7584
7759
|
"type": "object",
|
|
7585
7760
|
"x-ellipsis-preserve-payload": true
|
|
7586
7761
|
},
|
|
7587
7762
|
"MessageRequeuedPayload": {
|
|
7588
7763
|
"additionalProperties": true,
|
|
7589
|
-
"description": "message_requeued:
|
|
7764
|
+
"description": "message_requeued: the agent was interrupted before answering, so the\nmessage goes back to the inbox and starts again on a fresh environment.",
|
|
7590
7765
|
"properties": {
|
|
7591
7766
|
"message_id": {
|
|
7592
7767
|
"title": "Message Id",
|
|
7593
7768
|
"type": "string"
|
|
7594
|
-
},
|
|
7595
|
-
"requeued_turn_id": {
|
|
7596
|
-
"anyOf": [
|
|
7597
|
-
{
|
|
7598
|
-
"type": "string"
|
|
7599
|
-
},
|
|
7600
|
-
{
|
|
7601
|
-
"type": "null"
|
|
7602
|
-
}
|
|
7603
|
-
],
|
|
7604
|
-
"default": null,
|
|
7605
|
-
"title": "Requeued Turn Id"
|
|
7606
|
-
},
|
|
7607
|
-
"turn_id": {
|
|
7608
|
-
"title": "Turn Id",
|
|
7609
|
-
"type": "string"
|
|
7610
7769
|
}
|
|
7611
7770
|
},
|
|
7612
7771
|
"required": [
|
|
7613
|
-
"message_id"
|
|
7614
|
-
"turn_id"
|
|
7772
|
+
"message_id"
|
|
7615
7773
|
],
|
|
7616
7774
|
"title": "MessageRequeuedPayload",
|
|
7617
7775
|
"type": "object"
|
|
@@ -7663,6 +7821,19 @@
|
|
|
7663
7821
|
"title": "Kind",
|
|
7664
7822
|
"type": "string"
|
|
7665
7823
|
},
|
|
7824
|
+
"message_id": {
|
|
7825
|
+
"anyOf": [
|
|
7826
|
+
{
|
|
7827
|
+
"type": "string"
|
|
7828
|
+
},
|
|
7829
|
+
{
|
|
7830
|
+
"type": "null"
|
|
7831
|
+
}
|
|
7832
|
+
],
|
|
7833
|
+
"default": null,
|
|
7834
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
7835
|
+
"title": "Message Id"
|
|
7836
|
+
},
|
|
7666
7837
|
"model": {
|
|
7667
7838
|
"anyOf": [
|
|
7668
7839
|
{
|
|
@@ -7695,19 +7866,6 @@
|
|
|
7695
7866
|
"title": "Session Id",
|
|
7696
7867
|
"type": "string"
|
|
7697
7868
|
},
|
|
7698
|
-
"session_message_id": {
|
|
7699
|
-
"anyOf": [
|
|
7700
|
-
{
|
|
7701
|
-
"type": "string"
|
|
7702
|
-
},
|
|
7703
|
-
{
|
|
7704
|
-
"type": "null"
|
|
7705
|
-
}
|
|
7706
|
-
],
|
|
7707
|
-
"default": null,
|
|
7708
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
7709
|
-
"title": "Session Message Id"
|
|
7710
|
-
},
|
|
7711
7869
|
"source": {
|
|
7712
7870
|
"const": "lifecycle",
|
|
7713
7871
|
"default": "lifecycle",
|
|
@@ -7739,19 +7897,6 @@
|
|
|
7739
7897
|
],
|
|
7740
7898
|
"default": null,
|
|
7741
7899
|
"title": "Tools"
|
|
7742
|
-
},
|
|
7743
|
-
"turn_id": {
|
|
7744
|
-
"anyOf": [
|
|
7745
|
-
{
|
|
7746
|
-
"type": "string"
|
|
7747
|
-
},
|
|
7748
|
-
{
|
|
7749
|
-
"type": "null"
|
|
7750
|
-
}
|
|
7751
|
-
],
|
|
7752
|
-
"default": null,
|
|
7753
|
-
"description": "Turn containing this record, when applicable.",
|
|
7754
|
-
"title": "Turn Id"
|
|
7755
7900
|
}
|
|
7756
7901
|
},
|
|
7757
7902
|
"required": [
|
|
@@ -7761,74 +7906,234 @@
|
|
|
7761
7906
|
"feed_seq",
|
|
7762
7907
|
"id",
|
|
7763
7908
|
"kind",
|
|
7909
|
+
"message_id",
|
|
7764
7910
|
"model",
|
|
7765
7911
|
"payload",
|
|
7766
7912
|
"record_format",
|
|
7767
7913
|
"record_type",
|
|
7768
7914
|
"session_id",
|
|
7769
|
-
"session_message_id",
|
|
7770
7915
|
"source",
|
|
7771
7916
|
"tokens_info",
|
|
7772
|
-
"tools"
|
|
7773
|
-
"turn_id"
|
|
7917
|
+
"tools"
|
|
7774
7918
|
],
|
|
7775
7919
|
"title": "MessageRequeuedRecord",
|
|
7776
7920
|
"type": "object",
|
|
7777
7921
|
"x-ellipsis-preserve-payload": true
|
|
7778
7922
|
},
|
|
7779
|
-
"
|
|
7780
|
-
"
|
|
7923
|
+
"MessageStartedPayload": {
|
|
7924
|
+
"additionalProperties": true,
|
|
7925
|
+
"description": "message_started: the agent started on the message.",
|
|
7781
7926
|
"properties": {
|
|
7782
|
-
"
|
|
7783
|
-
"
|
|
7784
|
-
"description": "Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.",
|
|
7785
|
-
"title": "Claude Subscription",
|
|
7786
|
-
"type": "integer"
|
|
7787
|
-
},
|
|
7788
|
-
"codex_subscription": {
|
|
7789
|
-
"default": 0,
|
|
7790
|
-
"description": "Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.",
|
|
7791
|
-
"title": "Codex Subscription",
|
|
7792
|
-
"type": "integer"
|
|
7793
|
-
},
|
|
7794
|
-
"model": {
|
|
7795
|
-
"description": "The model that used these tokens.",
|
|
7796
|
-
"title": "Model",
|
|
7927
|
+
"message_id": {
|
|
7928
|
+
"title": "Message Id",
|
|
7797
7929
|
"type": "string"
|
|
7798
|
-
},
|
|
7799
|
-
"platform": {
|
|
7800
|
-
"default": 0,
|
|
7801
|
-
"description": "Token cost charged to Ellipsis credit, in millicents.",
|
|
7802
|
-
"title": "Platform",
|
|
7803
|
-
"type": "integer"
|
|
7804
|
-
},
|
|
7805
|
-
"total": {
|
|
7806
|
-
"default": 0,
|
|
7807
|
-
"description": "All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.",
|
|
7808
|
-
"title": "Total",
|
|
7809
|
-
"type": "integer"
|
|
7810
7930
|
}
|
|
7811
7931
|
},
|
|
7812
7932
|
"required": [
|
|
7813
|
-
"
|
|
7814
|
-
"codex_subscription",
|
|
7815
|
-
"model",
|
|
7816
|
-
"platform",
|
|
7817
|
-
"total"
|
|
7933
|
+
"message_id"
|
|
7818
7934
|
],
|
|
7819
|
-
"title": "
|
|
7935
|
+
"title": "MessageStartedPayload",
|
|
7820
7936
|
"type": "object"
|
|
7821
7937
|
},
|
|
7822
|
-
"
|
|
7823
|
-
"description": "Token counts for one model.",
|
|
7938
|
+
"MessageStartedRecord": {
|
|
7824
7939
|
"properties": {
|
|
7825
|
-
"
|
|
7826
|
-
"
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7940
|
+
"cost": {
|
|
7941
|
+
"anyOf": [
|
|
7942
|
+
{
|
|
7943
|
+
"type": "integer"
|
|
7944
|
+
},
|
|
7945
|
+
{
|
|
7946
|
+
"type": "null"
|
|
7947
|
+
}
|
|
7948
|
+
],
|
|
7949
|
+
"default": null,
|
|
7950
|
+
"title": "Cost"
|
|
7951
|
+
},
|
|
7952
|
+
"created_at": {
|
|
7953
|
+
"format": "date-time",
|
|
7954
|
+
"title": "Created At",
|
|
7955
|
+
"type": "string"
|
|
7956
|
+
},
|
|
7957
|
+
"duration": {
|
|
7958
|
+
"anyOf": [
|
|
7959
|
+
{
|
|
7960
|
+
"type": "integer"
|
|
7961
|
+
},
|
|
7962
|
+
{
|
|
7963
|
+
"type": "null"
|
|
7964
|
+
}
|
|
7965
|
+
],
|
|
7966
|
+
"default": null,
|
|
7967
|
+
"title": "Duration"
|
|
7968
|
+
},
|
|
7969
|
+
"feed_seq": {
|
|
7970
|
+
"description": "Position in the session feed and the stream's resume cursor.",
|
|
7971
|
+
"title": "Feed Seq",
|
|
7972
|
+
"type": "integer"
|
|
7973
|
+
},
|
|
7974
|
+
"id": {
|
|
7975
|
+
"description": "Unique identifier of the record.",
|
|
7976
|
+
"title": "Id",
|
|
7977
|
+
"type": "string"
|
|
7978
|
+
},
|
|
7979
|
+
"kind": {
|
|
7980
|
+
"const": "platform",
|
|
7981
|
+
"default": "platform",
|
|
7982
|
+
"title": "Kind",
|
|
7983
|
+
"type": "string"
|
|
7984
|
+
},
|
|
7985
|
+
"message_id": {
|
|
7986
|
+
"anyOf": [
|
|
7987
|
+
{
|
|
7988
|
+
"type": "string"
|
|
7989
|
+
},
|
|
7990
|
+
{
|
|
7991
|
+
"type": "null"
|
|
7992
|
+
}
|
|
7993
|
+
],
|
|
7994
|
+
"default": null,
|
|
7995
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
7996
|
+
"title": "Message Id"
|
|
7997
|
+
},
|
|
7998
|
+
"model": {
|
|
7999
|
+
"anyOf": [
|
|
8000
|
+
{
|
|
8001
|
+
"type": "string"
|
|
8002
|
+
},
|
|
8003
|
+
{
|
|
8004
|
+
"type": "null"
|
|
8005
|
+
}
|
|
8006
|
+
],
|
|
8007
|
+
"default": null,
|
|
8008
|
+
"title": "Model"
|
|
8009
|
+
},
|
|
8010
|
+
"payload": {
|
|
8011
|
+
"$ref": "#/$defs/MessageStartedPayload"
|
|
8012
|
+
},
|
|
8013
|
+
"record_format": {
|
|
8014
|
+
"const": "ellipsis_lifecycle@1",
|
|
8015
|
+
"default": "ellipsis_lifecycle@1",
|
|
8016
|
+
"title": "Record Format",
|
|
8017
|
+
"type": "string"
|
|
8018
|
+
},
|
|
8019
|
+
"record_type": {
|
|
8020
|
+
"const": "message_started",
|
|
8021
|
+
"default": "message_started",
|
|
8022
|
+
"title": "Record Type",
|
|
8023
|
+
"type": "string"
|
|
8024
|
+
},
|
|
8025
|
+
"session_id": {
|
|
8026
|
+
"description": "Session containing this record.",
|
|
8027
|
+
"title": "Session Id",
|
|
8028
|
+
"type": "string"
|
|
8029
|
+
},
|
|
8030
|
+
"source": {
|
|
8031
|
+
"const": "lifecycle",
|
|
8032
|
+
"default": "lifecycle",
|
|
8033
|
+
"title": "Source",
|
|
8034
|
+
"type": "string"
|
|
8035
|
+
},
|
|
8036
|
+
"tokens_info": {
|
|
8037
|
+
"anyOf": [
|
|
8038
|
+
{
|
|
8039
|
+
"$ref": "#/$defs/TokensInfo"
|
|
8040
|
+
},
|
|
8041
|
+
{
|
|
8042
|
+
"type": "null"
|
|
8043
|
+
}
|
|
8044
|
+
],
|
|
8045
|
+
"default": null
|
|
8046
|
+
},
|
|
8047
|
+
"tools": {
|
|
8048
|
+
"anyOf": [
|
|
8049
|
+
{
|
|
8050
|
+
"items": {
|
|
8051
|
+
"type": "string"
|
|
8052
|
+
},
|
|
8053
|
+
"type": "array"
|
|
8054
|
+
},
|
|
8055
|
+
{
|
|
8056
|
+
"type": "null"
|
|
8057
|
+
}
|
|
8058
|
+
],
|
|
8059
|
+
"default": null,
|
|
8060
|
+
"title": "Tools"
|
|
8061
|
+
}
|
|
8062
|
+
},
|
|
8063
|
+
"required": [
|
|
8064
|
+
"cost",
|
|
8065
|
+
"created_at",
|
|
8066
|
+
"duration",
|
|
8067
|
+
"feed_seq",
|
|
8068
|
+
"id",
|
|
8069
|
+
"kind",
|
|
8070
|
+
"message_id",
|
|
8071
|
+
"model",
|
|
8072
|
+
"payload",
|
|
8073
|
+
"record_format",
|
|
8074
|
+
"record_type",
|
|
8075
|
+
"session_id",
|
|
8076
|
+
"source",
|
|
8077
|
+
"tokens_info",
|
|
8078
|
+
"tools"
|
|
8079
|
+
],
|
|
8080
|
+
"title": "MessageStartedRecord",
|
|
8081
|
+
"type": "object",
|
|
8082
|
+
"x-ellipsis-preserve-payload": true
|
|
8083
|
+
},
|
|
8084
|
+
"ModelLlmCostSplit": {
|
|
8085
|
+
"description": "What one model's tokens cost, in millicents, split by who paid.",
|
|
8086
|
+
"properties": {
|
|
8087
|
+
"claude_subscription": {
|
|
8088
|
+
"default": 0,
|
|
8089
|
+
"description": "Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.",
|
|
8090
|
+
"title": "Claude Subscription",
|
|
8091
|
+
"type": "integer"
|
|
8092
|
+
},
|
|
8093
|
+
"codex_subscription": {
|
|
8094
|
+
"default": 0,
|
|
8095
|
+
"description": "Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.",
|
|
8096
|
+
"title": "Codex Subscription",
|
|
8097
|
+
"type": "integer"
|
|
8098
|
+
},
|
|
8099
|
+
"model": {
|
|
8100
|
+
"description": "The model that used these tokens.",
|
|
8101
|
+
"title": "Model",
|
|
8102
|
+
"type": "string"
|
|
8103
|
+
},
|
|
8104
|
+
"platform": {
|
|
8105
|
+
"default": 0,
|
|
8106
|
+
"description": "Token cost charged to Ellipsis credit, in millicents.",
|
|
8107
|
+
"title": "Platform",
|
|
8108
|
+
"type": "integer"
|
|
8109
|
+
},
|
|
8110
|
+
"total": {
|
|
8111
|
+
"default": 0,
|
|
8112
|
+
"description": "All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.",
|
|
8113
|
+
"title": "Total",
|
|
8114
|
+
"type": "integer"
|
|
8115
|
+
}
|
|
8116
|
+
},
|
|
8117
|
+
"required": [
|
|
8118
|
+
"claude_subscription",
|
|
8119
|
+
"codex_subscription",
|
|
8120
|
+
"model",
|
|
8121
|
+
"platform",
|
|
8122
|
+
"total"
|
|
8123
|
+
],
|
|
8124
|
+
"title": "ModelLlmCostSplit",
|
|
8125
|
+
"type": "object"
|
|
8126
|
+
},
|
|
8127
|
+
"ModelTokenCounts": {
|
|
8128
|
+
"description": "Token counts for one model.",
|
|
8129
|
+
"properties": {
|
|
8130
|
+
"cache_creation": {
|
|
8131
|
+
"default": 0,
|
|
8132
|
+
"description": "Tokens written to the prompt cache.",
|
|
8133
|
+
"title": "Cache Creation",
|
|
8134
|
+
"type": "integer"
|
|
8135
|
+
},
|
|
8136
|
+
"cache_read": {
|
|
7832
8137
|
"default": 0,
|
|
7833
8138
|
"description": "Tokens read from the prompt cache.",
|
|
7834
8139
|
"title": "Cache Read",
|
|
@@ -7925,13 +8230,12 @@
|
|
|
7925
8230
|
"environment_output": "#/$defs/EnvironmentOutputRecord",
|
|
7926
8231
|
"environment_phase": "#/$defs/EnvironmentPhaseRecord",
|
|
7927
8232
|
"environment_ready": "#/$defs/EnvironmentReadyRecord",
|
|
7928
|
-
"
|
|
7929
|
-
"
|
|
8233
|
+
"message": "#/$defs/MessageRecord",
|
|
8234
|
+
"message_ended": "#/$defs/MessageEndedRecord",
|
|
8235
|
+
"message_queued": "#/$defs/MessageQueuedRecord",
|
|
7930
8236
|
"message_requeued": "#/$defs/MessageRequeuedRecord",
|
|
7931
|
-
"
|
|
7932
|
-
"
|
|
7933
|
-
"turn_queued": "#/$defs/TurnQueuedRecord",
|
|
7934
|
-
"turn_started": "#/$defs/TurnStartedRecord"
|
|
8237
|
+
"message_started": "#/$defs/MessageStartedRecord",
|
|
8238
|
+
"session_closed": "#/$defs/SessionClosedRecord"
|
|
7935
8239
|
},
|
|
7936
8240
|
"propertyName": "record_type"
|
|
7937
8241
|
},
|
|
@@ -7940,22 +8244,19 @@
|
|
|
7940
8244
|
"$ref": "#/$defs/SessionClosedRecord"
|
|
7941
8245
|
},
|
|
7942
8246
|
{
|
|
7943
|
-
"$ref": "#/$defs/
|
|
7944
|
-
},
|
|
7945
|
-
{
|
|
7946
|
-
"$ref": "#/$defs/MessageDeliveredRecord"
|
|
8247
|
+
"$ref": "#/$defs/MessageRecord"
|
|
7947
8248
|
},
|
|
7948
8249
|
{
|
|
7949
|
-
"$ref": "#/$defs/
|
|
8250
|
+
"$ref": "#/$defs/MessageQueuedRecord"
|
|
7950
8251
|
},
|
|
7951
8252
|
{
|
|
7952
|
-
"$ref": "#/$defs/
|
|
8253
|
+
"$ref": "#/$defs/MessageStartedRecord"
|
|
7953
8254
|
},
|
|
7954
8255
|
{
|
|
7955
|
-
"$ref": "#/$defs/
|
|
8256
|
+
"$ref": "#/$defs/MessageEndedRecord"
|
|
7956
8257
|
},
|
|
7957
8258
|
{
|
|
7958
|
-
"$ref": "#/$defs/
|
|
8259
|
+
"$ref": "#/$defs/MessageRequeuedRecord"
|
|
7959
8260
|
},
|
|
7960
8261
|
{
|
|
7961
8262
|
"$ref": "#/$defs/EnvironmentPhaseRecord"
|
|
@@ -7975,7 +8276,8 @@
|
|
|
7975
8276
|
"non_interactive",
|
|
7976
8277
|
"harness_single_turn",
|
|
7977
8278
|
"budget_exhausted",
|
|
7978
|
-
"closed"
|
|
8279
|
+
"closed",
|
|
8280
|
+
"archived"
|
|
7979
8281
|
],
|
|
7980
8282
|
"title": "PromptBlockedReason",
|
|
7981
8283
|
"type": "string"
|
|
@@ -8016,9 +8318,6 @@
|
|
|
8016
8318
|
"type": "array"
|
|
8017
8319
|
},
|
|
8018
8320
|
"on": {
|
|
8019
|
-
"default": [
|
|
8020
|
-
"failed"
|
|
8021
|
-
],
|
|
8022
8321
|
"items": {
|
|
8023
8322
|
"$ref": "#/$defs/CheckRunAction"
|
|
8024
8323
|
},
|
|
@@ -8063,9 +8362,6 @@
|
|
|
8063
8362
|
"$ref": "#/$defs/GithubAccountSelector"
|
|
8064
8363
|
},
|
|
8065
8364
|
"on": {
|
|
8066
|
-
"default": [
|
|
8067
|
-
"failed"
|
|
8068
|
-
],
|
|
8069
8365
|
"items": {
|
|
8070
8366
|
"$ref": "#/$defs/CheckSuiteAction"
|
|
8071
8367
|
},
|
|
@@ -8122,53 +8418,135 @@
|
|
|
8122
8418
|
},
|
|
8123
8419
|
"ReactLinearIssue": {
|
|
8124
8420
|
"additionalProperties": false,
|
|
8421
|
+
"description": "A Linear issue being created (`opened`) or changed (`updated`). An\n`updated` event fires only when every field under `changed` changed in\none edit. `team`, `state`, `labels`, `project`, `assignee`, and\n`priority` filter on the issue as it is after the event. `state` matches\na status name or a status type. `for` is the person who created or\nchanged the issue.",
|
|
8125
8422
|
"properties": {
|
|
8423
|
+
"assignee": {
|
|
8424
|
+
"anyOf": [
|
|
8425
|
+
{
|
|
8426
|
+
"$ref": "#/$defs/LinearValueFilter"
|
|
8427
|
+
},
|
|
8428
|
+
{
|
|
8429
|
+
"type": "null"
|
|
8430
|
+
}
|
|
8431
|
+
],
|
|
8432
|
+
"default": null
|
|
8433
|
+
},
|
|
8434
|
+
"changed": {
|
|
8435
|
+
"anyOf": [
|
|
8436
|
+
{
|
|
8437
|
+
"$ref": "#/$defs/LinearIssueChanged"
|
|
8438
|
+
},
|
|
8439
|
+
{
|
|
8440
|
+
"type": "null"
|
|
8441
|
+
}
|
|
8442
|
+
],
|
|
8443
|
+
"default": null
|
|
8444
|
+
},
|
|
8126
8445
|
"for": {
|
|
8127
8446
|
"$ref": "#/$defs/GithubAccountSelector"
|
|
8128
8447
|
},
|
|
8129
|
-
"
|
|
8130
|
-
"
|
|
8131
|
-
|
|
8448
|
+
"labels": {
|
|
8449
|
+
"anyOf": [
|
|
8450
|
+
{
|
|
8451
|
+
"$ref": "#/$defs/LinearValueFilter"
|
|
8452
|
+
},
|
|
8453
|
+
{
|
|
8454
|
+
"type": "null"
|
|
8455
|
+
}
|
|
8132
8456
|
],
|
|
8457
|
+
"default": null
|
|
8458
|
+
},
|
|
8459
|
+
"on": {
|
|
8133
8460
|
"items": {
|
|
8134
8461
|
"$ref": "#/$defs/LinearIssueAction"
|
|
8135
8462
|
},
|
|
8136
8463
|
"title": "On",
|
|
8137
8464
|
"type": "array"
|
|
8138
|
-
}
|
|
8139
|
-
},
|
|
8140
|
-
"required": [
|
|
8141
|
-
"for",
|
|
8142
|
-
"on"
|
|
8143
|
-
],
|
|
8144
|
-
"title": "ReactLinearIssue",
|
|
8145
|
-
"type": "object"
|
|
8146
|
-
},
|
|
8147
|
-
"ReactPullRequest": {
|
|
8148
|
-
"additionalProperties": false,
|
|
8149
|
-
"properties": {
|
|
8150
|
-
"base": {
|
|
8151
|
-
"default": [],
|
|
8152
|
-
"items": {
|
|
8153
|
-
"type": "string"
|
|
8154
|
-
},
|
|
8155
|
-
"title": "Base",
|
|
8156
|
-
"type": "array"
|
|
8157
8465
|
},
|
|
8158
|
-
"
|
|
8466
|
+
"priority": {
|
|
8159
8467
|
"anyOf": [
|
|
8160
8468
|
{
|
|
8161
|
-
"
|
|
8469
|
+
"$ref": "#/$defs/LinearValueFilter"
|
|
8162
8470
|
},
|
|
8163
8471
|
{
|
|
8164
8472
|
"type": "null"
|
|
8165
8473
|
}
|
|
8166
8474
|
],
|
|
8167
|
-
"default": null
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8475
|
+
"default": null
|
|
8476
|
+
},
|
|
8477
|
+
"project": {
|
|
8478
|
+
"anyOf": [
|
|
8479
|
+
{
|
|
8480
|
+
"$ref": "#/$defs/LinearValueFilter"
|
|
8481
|
+
},
|
|
8482
|
+
{
|
|
8483
|
+
"type": "null"
|
|
8484
|
+
}
|
|
8485
|
+
],
|
|
8486
|
+
"default": null
|
|
8487
|
+
},
|
|
8488
|
+
"state": {
|
|
8489
|
+
"anyOf": [
|
|
8490
|
+
{
|
|
8491
|
+
"$ref": "#/$defs/LinearValueFilter"
|
|
8492
|
+
},
|
|
8493
|
+
{
|
|
8494
|
+
"type": "null"
|
|
8495
|
+
}
|
|
8496
|
+
],
|
|
8497
|
+
"default": null
|
|
8498
|
+
},
|
|
8499
|
+
"team": {
|
|
8500
|
+
"anyOf": [
|
|
8501
|
+
{
|
|
8502
|
+
"$ref": "#/$defs/LinearValueFilter"
|
|
8503
|
+
},
|
|
8504
|
+
{
|
|
8505
|
+
"type": "null"
|
|
8506
|
+
}
|
|
8507
|
+
],
|
|
8508
|
+
"default": null
|
|
8509
|
+
}
|
|
8510
|
+
},
|
|
8511
|
+
"required": [
|
|
8512
|
+
"assignee",
|
|
8513
|
+
"changed",
|
|
8514
|
+
"for",
|
|
8515
|
+
"labels",
|
|
8516
|
+
"on",
|
|
8517
|
+
"priority",
|
|
8518
|
+
"project",
|
|
8519
|
+
"state",
|
|
8520
|
+
"team"
|
|
8521
|
+
],
|
|
8522
|
+
"title": "ReactLinearIssue",
|
|
8523
|
+
"type": "object"
|
|
8524
|
+
},
|
|
8525
|
+
"ReactPullRequest": {
|
|
8526
|
+
"additionalProperties": false,
|
|
8527
|
+
"properties": {
|
|
8528
|
+
"base": {
|
|
8529
|
+
"default": [],
|
|
8530
|
+
"items": {
|
|
8531
|
+
"type": "string"
|
|
8532
|
+
},
|
|
8533
|
+
"title": "Base",
|
|
8534
|
+
"type": "array"
|
|
8535
|
+
},
|
|
8536
|
+
"draft": {
|
|
8537
|
+
"anyOf": [
|
|
8538
|
+
{
|
|
8539
|
+
"type": "boolean"
|
|
8540
|
+
},
|
|
8541
|
+
{
|
|
8542
|
+
"type": "null"
|
|
8543
|
+
}
|
|
8544
|
+
],
|
|
8545
|
+
"default": null,
|
|
8546
|
+
"title": "Draft"
|
|
8547
|
+
},
|
|
8548
|
+
"for": {
|
|
8549
|
+
"$ref": "#/$defs/GithubAccountSelector"
|
|
8172
8550
|
},
|
|
8173
8551
|
"head": {
|
|
8174
8552
|
"default": [],
|
|
@@ -8261,9 +8639,6 @@
|
|
|
8261
8639
|
"$ref": "#/$defs/GithubAccountSelector"
|
|
8262
8640
|
},
|
|
8263
8641
|
"on": {
|
|
8264
|
-
"default": [
|
|
8265
|
-
"published"
|
|
8266
|
-
],
|
|
8267
8642
|
"items": {
|
|
8268
8643
|
"$ref": "#/$defs/ReleaseAction"
|
|
8269
8644
|
},
|
|
@@ -8360,9 +8735,6 @@
|
|
|
8360
8735
|
"type": "array"
|
|
8361
8736
|
},
|
|
8362
8737
|
"on": {
|
|
8363
|
-
"default": [
|
|
8364
|
-
"failed"
|
|
8365
|
-
],
|
|
8366
8738
|
"items": {
|
|
8367
8739
|
"$ref": "#/$defs/StatusAction"
|
|
8368
8740
|
},
|
|
@@ -8562,9 +8934,6 @@
|
|
|
8562
8934
|
"type": "array"
|
|
8563
8935
|
},
|
|
8564
8936
|
"on": {
|
|
8565
|
-
"default": [
|
|
8566
|
-
"failed"
|
|
8567
|
-
],
|
|
8568
8937
|
"items": {
|
|
8569
8938
|
"$ref": "#/$defs/WorkflowRunAction"
|
|
8570
8939
|
},
|
|
@@ -8585,8 +8954,8 @@
|
|
|
8585
8954
|
"title": "ReactWorkflowRun",
|
|
8586
8955
|
"type": "object"
|
|
8587
8956
|
},
|
|
8588
|
-
"
|
|
8589
|
-
"description": "Cursored append-only delivery of session records, ordered by feed_seq,\nfrom all sources. Every record in the frame advances the resume cursor
|
|
8957
|
+
"RecordsFrame": {
|
|
8958
|
+
"description": "Cursored append-only delivery of session records, ordered by feed_seq,\nfrom all sources. Every record in the frame advances the resume cursor,\nincluding ones a client renders as nothing.",
|
|
8590
8959
|
"properties": {
|
|
8591
8960
|
"records": {
|
|
8592
8961
|
"description": "New session records, ordered by feed_seq.",
|
|
@@ -8597,8 +8966,8 @@
|
|
|
8597
8966
|
"type": "array"
|
|
8598
8967
|
},
|
|
8599
8968
|
"type": {
|
|
8600
|
-
"const": "
|
|
8601
|
-
"default": "
|
|
8969
|
+
"const": "records",
|
|
8970
|
+
"default": "records",
|
|
8602
8971
|
"title": "Type",
|
|
8603
8972
|
"type": "string"
|
|
8604
8973
|
}
|
|
@@ -8607,7 +8976,7 @@
|
|
|
8607
8976
|
"records",
|
|
8608
8977
|
"type"
|
|
8609
8978
|
],
|
|
8610
|
-
"title": "
|
|
8979
|
+
"title": "RecordsFrame",
|
|
8611
8980
|
"type": "object"
|
|
8612
8981
|
},
|
|
8613
8982
|
"ReleaseAction": {
|
|
@@ -9289,7 +9658,7 @@
|
|
|
9289
9658
|
]
|
|
9290
9659
|
}
|
|
9291
9660
|
],
|
|
9292
|
-
"description": "An agent session: one conversation with an agent. Returned by\n`GET /v1/sessions/{id}` and carried by the session stream's\n`session
|
|
9661
|
+
"description": "An agent session: one conversation with an agent. Returned by\n`GET /v1/sessions/{id}` and carried by the session stream's\n`session` frames; REST and stream never disagree about what a\nsession looks like.",
|
|
9293
9662
|
"properties": {
|
|
9294
9663
|
"agent": {
|
|
9295
9664
|
"anyOf": [
|
|
@@ -9313,7 +9682,7 @@
|
|
|
9313
9682
|
}
|
|
9314
9683
|
],
|
|
9315
9684
|
"default": null,
|
|
9316
|
-
"description": "When and by whom the session was archived
|
|
9685
|
+
"description": "When and by whom the session was archived, or null when it isn't. A session is archived when it closes, after the account's archive_inactive_sessions_days without a message, or by PUT /v1/sessions/{id}. An archived session takes no messages, and a reply on the Slack thread, pull request, issue, or Linear issue it answers starts a new session."
|
|
9317
9686
|
},
|
|
9318
9687
|
"attribution": {
|
|
9319
9688
|
"$ref": "#/$defs/SessionAttribution",
|
|
@@ -9349,6 +9718,20 @@
|
|
|
9349
9718
|
"default": null,
|
|
9350
9719
|
"description": "Codex input and native options. Set exactly one of claude_code, codex, or gemini."
|
|
9351
9720
|
},
|
|
9721
|
+
"content_deleted_at": {
|
|
9722
|
+
"anyOf": [
|
|
9723
|
+
{
|
|
9724
|
+
"format": "date-time",
|
|
9725
|
+
"type": "string"
|
|
9726
|
+
},
|
|
9727
|
+
{
|
|
9728
|
+
"type": "null"
|
|
9729
|
+
}
|
|
9730
|
+
],
|
|
9731
|
+
"default": null,
|
|
9732
|
+
"description": "When session log retention deleted the session's records, messages, and prompt, or null. The session's status, cost, tokens, and summary stay.",
|
|
9733
|
+
"title": "Content Deleted At"
|
|
9734
|
+
},
|
|
9352
9735
|
"conversation": {
|
|
9353
9736
|
"$ref": "#/$defs/SessionConversation",
|
|
9354
9737
|
"description": "Whether the session can take more messages, and whether an agent is warm to answer one."
|
|
@@ -9367,6 +9750,18 @@
|
|
|
9367
9750
|
"$ref": "#/$defs/SessionEnvironment",
|
|
9368
9751
|
"description": "The full environment configuration frozen when the session was created, with the saved environment's id and how it was chosen."
|
|
9369
9752
|
},
|
|
9753
|
+
"error": {
|
|
9754
|
+
"anyOf": [
|
|
9755
|
+
{
|
|
9756
|
+
"$ref": "#/$defs/SessionError"
|
|
9757
|
+
},
|
|
9758
|
+
{
|
|
9759
|
+
"type": "null"
|
|
9760
|
+
}
|
|
9761
|
+
],
|
|
9762
|
+
"default": null,
|
|
9763
|
+
"description": "Why the last message failed, was stopped, or was cancelled; null otherwise."
|
|
9764
|
+
},
|
|
9370
9765
|
"event": {
|
|
9371
9766
|
"anyOf": [
|
|
9372
9767
|
{
|
|
@@ -9494,7 +9889,7 @@
|
|
|
9494
9889
|
}
|
|
9495
9890
|
],
|
|
9496
9891
|
"default": null,
|
|
9497
|
-
"description": "The session's structured output: the `json_schema` the agent must satisfy and, once
|
|
9892
|
+
"description": "The session's structured output: the `json_schema` the agent must satisfy and, once the agent has submitted it, the `result`."
|
|
9498
9893
|
},
|
|
9499
9894
|
"parent": {
|
|
9500
9895
|
"anyOf": [
|
|
@@ -9512,6 +9907,18 @@
|
|
|
9512
9907
|
"$ref": "#/$defs/PermissionsConfig",
|
|
9513
9908
|
"description": "What the session may touch, per minted credential."
|
|
9514
9909
|
},
|
|
9910
|
+
"review": {
|
|
9911
|
+
"anyOf": [
|
|
9912
|
+
{
|
|
9913
|
+
"$ref": "#/$defs/SessionReview"
|
|
9914
|
+
},
|
|
9915
|
+
{
|
|
9916
|
+
"type": "null"
|
|
9917
|
+
}
|
|
9918
|
+
],
|
|
9919
|
+
"default": null,
|
|
9920
|
+
"description": "The code review this session ran for; null unless the source is `code_review`."
|
|
9921
|
+
},
|
|
9515
9922
|
"skills": {
|
|
9516
9923
|
"description": "Skills installed for this session.",
|
|
9517
9924
|
"items": {
|
|
@@ -9524,6 +9931,10 @@
|
|
|
9524
9931
|
"$ref": "#/$defs/SessionSource",
|
|
9525
9932
|
"description": "Where the session came from (e.g. react, web, api, cli, mention, cron)."
|
|
9526
9933
|
},
|
|
9934
|
+
"status": {
|
|
9935
|
+
"$ref": "#/$defs/SessionStatus",
|
|
9936
|
+
"description": "Where the session is. A message you sent is answered once the status is `idle` or `closed`; its `message_ended` record in GET /v1/sessions/{id}/records says how."
|
|
9937
|
+
},
|
|
9527
9938
|
"summary": {
|
|
9528
9939
|
"anyOf": [
|
|
9529
9940
|
{
|
|
@@ -9540,23 +9951,24 @@
|
|
|
9540
9951
|
"$ref": "#/$defs/Tokens",
|
|
9541
9952
|
"description": "The tokens the session has used so far."
|
|
9542
9953
|
},
|
|
9543
|
-
"
|
|
9954
|
+
"updated_at": {
|
|
9955
|
+
"description": "When the session was last updated.",
|
|
9956
|
+
"format": "date-time",
|
|
9957
|
+
"title": "Updated At",
|
|
9958
|
+
"type": "string"
|
|
9959
|
+
},
|
|
9960
|
+
"wait_ms": {
|
|
9544
9961
|
"anyOf": [
|
|
9545
9962
|
{
|
|
9546
|
-
"
|
|
9963
|
+
"type": "integer"
|
|
9547
9964
|
},
|
|
9548
9965
|
{
|
|
9549
9966
|
"type": "null"
|
|
9550
9967
|
}
|
|
9551
9968
|
],
|
|
9552
9969
|
"default": null,
|
|
9553
|
-
"description": "
|
|
9554
|
-
|
|
9555
|
-
"updated_at": {
|
|
9556
|
-
"description": "When the session was last updated.",
|
|
9557
|
-
"format": "date-time",
|
|
9558
|
-
"title": "Updated At",
|
|
9559
|
-
"type": "string"
|
|
9970
|
+
"description": "Milliseconds from when the session was created to when it started, including any time it waited because your account already had its limit of sessions alive. Null until the session starts, and for sessions created before this field was added.",
|
|
9971
|
+
"title": "Wait Ms"
|
|
9560
9972
|
}
|
|
9561
9973
|
},
|
|
9562
9974
|
"required": [
|
|
@@ -9566,10 +9978,12 @@
|
|
|
9566
9978
|
"budget",
|
|
9567
9979
|
"claude_code",
|
|
9568
9980
|
"codex",
|
|
9981
|
+
"content_deleted_at",
|
|
9569
9982
|
"conversation",
|
|
9570
9983
|
"cost",
|
|
9571
9984
|
"created_at",
|
|
9572
9985
|
"environment",
|
|
9986
|
+
"error",
|
|
9573
9987
|
"event",
|
|
9574
9988
|
"gemini",
|
|
9575
9989
|
"git",
|
|
@@ -9579,12 +9993,14 @@
|
|
|
9579
9993
|
"output",
|
|
9580
9994
|
"parent",
|
|
9581
9995
|
"permissions",
|
|
9996
|
+
"review",
|
|
9582
9997
|
"skills",
|
|
9583
9998
|
"source",
|
|
9999
|
+
"status",
|
|
9584
10000
|
"summary",
|
|
9585
10001
|
"tokens",
|
|
9586
|
-
"
|
|
9587
|
-
"
|
|
10002
|
+
"updated_at",
|
|
10003
|
+
"wait_ms"
|
|
9588
10004
|
],
|
|
9589
10005
|
"title": "Session",
|
|
9590
10006
|
"type": "object"
|
|
@@ -9637,11 +10053,26 @@
|
|
|
9637
10053
|
],
|
|
9638
10054
|
"default": null,
|
|
9639
10055
|
"description": "The GitHub user who archived the session; null if unknown or unavailable."
|
|
10056
|
+
},
|
|
10057
|
+
"deletes_at": {
|
|
10058
|
+
"anyOf": [
|
|
10059
|
+
{
|
|
10060
|
+
"format": "date-time",
|
|
10061
|
+
"type": "string"
|
|
10062
|
+
},
|
|
10063
|
+
{
|
|
10064
|
+
"type": "null"
|
|
10065
|
+
}
|
|
10066
|
+
],
|
|
10067
|
+
"default": null,
|
|
10068
|
+
"description": "When the session's records and messages are deleted, from the account's current session log retention. It moves when the retention changes. Null when the account keeps them or they're already deleted.",
|
|
10069
|
+
"title": "Deletes At"
|
|
9640
10070
|
}
|
|
9641
10071
|
},
|
|
9642
10072
|
"required": [
|
|
9643
10073
|
"at",
|
|
9644
|
-
"by"
|
|
10074
|
+
"by",
|
|
10075
|
+
"deletes_at"
|
|
9645
10076
|
],
|
|
9646
10077
|
"title": "SessionArchived",
|
|
9647
10078
|
"type": "object"
|
|
@@ -9697,7 +10128,7 @@
|
|
|
9697
10128
|
},
|
|
9698
10129
|
"SessionClosedPayload": {
|
|
9699
10130
|
"additionalProperties": true,
|
|
9700
|
-
"description": "session_closed: the
|
|
10131
|
+
"description": "session_closed: the session closed permanently.",
|
|
9701
10132
|
"properties": {},
|
|
9702
10133
|
"title": "SessionClosedPayload",
|
|
9703
10134
|
"type": "object"
|
|
@@ -9749,6 +10180,19 @@
|
|
|
9749
10180
|
"title": "Kind",
|
|
9750
10181
|
"type": "string"
|
|
9751
10182
|
},
|
|
10183
|
+
"message_id": {
|
|
10184
|
+
"anyOf": [
|
|
10185
|
+
{
|
|
10186
|
+
"type": "string"
|
|
10187
|
+
},
|
|
10188
|
+
{
|
|
10189
|
+
"type": "null"
|
|
10190
|
+
}
|
|
10191
|
+
],
|
|
10192
|
+
"default": null,
|
|
10193
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
10194
|
+
"title": "Message Id"
|
|
10195
|
+
},
|
|
9752
10196
|
"model": {
|
|
9753
10197
|
"anyOf": [
|
|
9754
10198
|
{
|
|
@@ -9781,19 +10225,6 @@
|
|
|
9781
10225
|
"title": "Session Id",
|
|
9782
10226
|
"type": "string"
|
|
9783
10227
|
},
|
|
9784
|
-
"session_message_id": {
|
|
9785
|
-
"anyOf": [
|
|
9786
|
-
{
|
|
9787
|
-
"type": "string"
|
|
9788
|
-
},
|
|
9789
|
-
{
|
|
9790
|
-
"type": "null"
|
|
9791
|
-
}
|
|
9792
|
-
],
|
|
9793
|
-
"default": null,
|
|
9794
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
9795
|
-
"title": "Session Message Id"
|
|
9796
|
-
},
|
|
9797
10228
|
"source": {
|
|
9798
10229
|
"const": "lifecycle",
|
|
9799
10230
|
"default": "lifecycle",
|
|
@@ -9825,19 +10256,6 @@
|
|
|
9825
10256
|
],
|
|
9826
10257
|
"default": null,
|
|
9827
10258
|
"title": "Tools"
|
|
9828
|
-
},
|
|
9829
|
-
"turn_id": {
|
|
9830
|
-
"anyOf": [
|
|
9831
|
-
{
|
|
9832
|
-
"type": "string"
|
|
9833
|
-
},
|
|
9834
|
-
{
|
|
9835
|
-
"type": "null"
|
|
9836
|
-
}
|
|
9837
|
-
],
|
|
9838
|
-
"default": null,
|
|
9839
|
-
"description": "Turn containing this record, when applicable.",
|
|
9840
|
-
"title": "Turn Id"
|
|
9841
10259
|
}
|
|
9842
10260
|
},
|
|
9843
10261
|
"required": [
|
|
@@ -9847,16 +10265,15 @@
|
|
|
9847
10265
|
"feed_seq",
|
|
9848
10266
|
"id",
|
|
9849
10267
|
"kind",
|
|
10268
|
+
"message_id",
|
|
9850
10269
|
"model",
|
|
9851
10270
|
"payload",
|
|
9852
10271
|
"record_format",
|
|
9853
10272
|
"record_type",
|
|
9854
10273
|
"session_id",
|
|
9855
|
-
"session_message_id",
|
|
9856
10274
|
"source",
|
|
9857
10275
|
"tokens_info",
|
|
9858
|
-
"tools"
|
|
9859
|
-
"turn_id"
|
|
10276
|
+
"tools"
|
|
9860
10277
|
],
|
|
9861
10278
|
"title": "SessionClosedRecord",
|
|
9862
10279
|
"type": "object",
|
|
@@ -10067,7 +10484,7 @@
|
|
|
10067
10484
|
"description": "Whether the session can take more messages, and how quickly it would\nanswer one.",
|
|
10068
10485
|
"properties": {
|
|
10069
10486
|
"interactive": {
|
|
10070
|
-
"description": "Whether the session stays open after its first
|
|
10487
|
+
"description": "Whether the session stays open after its first message is answered.",
|
|
10071
10488
|
"title": "Interactive",
|
|
10072
10489
|
"type": "boolean"
|
|
10073
10490
|
},
|
|
@@ -10075,10 +10492,6 @@
|
|
|
10075
10492
|
"$ref": "#/$defs/SessionPrompting",
|
|
10076
10493
|
"description": "The session's policy for direct messages. Caller authorization and message validation are checked separately."
|
|
10077
10494
|
},
|
|
10078
|
-
"state": {
|
|
10079
|
-
"$ref": "#/$defs/SessionState",
|
|
10080
|
-
"description": "`open` while the session can take messages; `closed` is permanent."
|
|
10081
|
-
},
|
|
10082
10495
|
"warm": {
|
|
10083
10496
|
"description": "Whether an agent is ready to answer the next message right away. When false, the next message first prepares an environment, which takes longer. A hint only; clients need no logic on it.",
|
|
10084
10497
|
"title": "Warm",
|
|
@@ -10088,7 +10501,6 @@
|
|
|
10088
10501
|
"required": [
|
|
10089
10502
|
"interactive",
|
|
10090
10503
|
"prompting",
|
|
10091
|
-
"state",
|
|
10092
10504
|
"warm"
|
|
10093
10505
|
],
|
|
10094
10506
|
"title": "SessionConversation",
|
|
@@ -10100,7 +10512,7 @@
|
|
|
10100
10512
|
"properties": {
|
|
10101
10513
|
"interactive": {
|
|
10102
10514
|
"default": true,
|
|
10103
|
-
"description": "Whether the session stays open after its first
|
|
10515
|
+
"description": "Whether the session stays open after its first message is answered. Defaults to true; false runs once and requires a prompt. Requires the model's interactive capability when true. Direct message acceptance is reported separately in conversation.prompting.",
|
|
10104
10516
|
"title": "Interactive",
|
|
10105
10517
|
"type": "boolean"
|
|
10106
10518
|
}
|
|
@@ -10209,6 +10621,34 @@
|
|
|
10209
10621
|
"title": "SessionEnvironment",
|
|
10210
10622
|
"type": "object"
|
|
10211
10623
|
},
|
|
10624
|
+
"SessionError": {
|
|
10625
|
+
"description": "Why the last message failed, was stopped, or was cancelled. Cleared\nwhen the next message starts.",
|
|
10626
|
+
"properties": {
|
|
10627
|
+
"detail": {
|
|
10628
|
+
"anyOf": [
|
|
10629
|
+
{
|
|
10630
|
+
"type": "string"
|
|
10631
|
+
},
|
|
10632
|
+
{
|
|
10633
|
+
"type": "null"
|
|
10634
|
+
}
|
|
10635
|
+
],
|
|
10636
|
+
"default": null,
|
|
10637
|
+
"description": "A human-readable explanation.",
|
|
10638
|
+
"title": "Detail"
|
|
10639
|
+
},
|
|
10640
|
+
"reason": {
|
|
10641
|
+
"$ref": "#/$defs/ErrorReason",
|
|
10642
|
+
"description": "What went wrong."
|
|
10643
|
+
}
|
|
10644
|
+
},
|
|
10645
|
+
"required": [
|
|
10646
|
+
"detail",
|
|
10647
|
+
"reason"
|
|
10648
|
+
],
|
|
10649
|
+
"title": "SessionError",
|
|
10650
|
+
"type": "object"
|
|
10651
|
+
},
|
|
10212
10652
|
"SessionEventActor": {
|
|
10213
10653
|
"description": "The event's initiator, when known; never inferred from resource ownership.",
|
|
10214
10654
|
"properties": {
|
|
@@ -10250,7 +10690,7 @@
|
|
|
10250
10690
|
"type": "object"
|
|
10251
10691
|
},
|
|
10252
10692
|
"SessionFrame": {
|
|
10253
|
-
"description": "
|
|
10693
|
+
"description": "The whole session, last writer wins: the first frame after the stream\nconnects, and resent whole whenever any field changes (status, error,\ncost). A `closed` status is the last one; a normal close (1000) follows.",
|
|
10254
10694
|
"properties": {
|
|
10255
10695
|
"session": {
|
|
10256
10696
|
"$ref": "#/$defs/Session",
|
|
@@ -10514,7 +10954,7 @@
|
|
|
10514
10954
|
"type": "object"
|
|
10515
10955
|
},
|
|
10516
10956
|
"SessionMessage": {
|
|
10517
|
-
"description": "One message
|
|
10957
|
+
"description": "One message sent to a session.",
|
|
10518
10958
|
"properties": {
|
|
10519
10959
|
"author": {
|
|
10520
10960
|
"anyOf": [
|
|
@@ -10535,38 +10975,11 @@
|
|
|
10535
10975
|
"type": "string"
|
|
10536
10976
|
},
|
|
10537
10977
|
"created_at": {
|
|
10538
|
-
"description": "When the message was
|
|
10978
|
+
"description": "When the message was received.",
|
|
10539
10979
|
"format": "date-time",
|
|
10540
10980
|
"title": "Created At",
|
|
10541
10981
|
"type": "string"
|
|
10542
10982
|
},
|
|
10543
|
-
"delivered_at": {
|
|
10544
|
-
"anyOf": [
|
|
10545
|
-
{
|
|
10546
|
-
"format": "date-time",
|
|
10547
|
-
"type": "string"
|
|
10548
|
-
},
|
|
10549
|
-
{
|
|
10550
|
-
"type": "null"
|
|
10551
|
-
}
|
|
10552
|
-
],
|
|
10553
|
-
"default": null,
|
|
10554
|
-
"description": "When the message was delivered to the agent, if it has been.",
|
|
10555
|
-
"title": "Delivered At"
|
|
10556
|
-
},
|
|
10557
|
-
"feed_seq": {
|
|
10558
|
-
"anyOf": [
|
|
10559
|
-
{
|
|
10560
|
-
"type": "integer"
|
|
10561
|
-
},
|
|
10562
|
-
{
|
|
10563
|
-
"type": "null"
|
|
10564
|
-
}
|
|
10565
|
-
],
|
|
10566
|
-
"default": null,
|
|
10567
|
-
"description": "Where the message sits in the session's feed \u2014 placement metadata only, NOT a resume cursor (only records_append frames advance the cursor). Null for older rows.",
|
|
10568
|
-
"title": "Feed Seq"
|
|
10569
|
-
},
|
|
10570
10983
|
"id": {
|
|
10571
10984
|
"description": "Unique identifier of the message.",
|
|
10572
10985
|
"title": "Id",
|
|
@@ -10580,67 +10993,25 @@
|
|
|
10580
10993
|
"title": "Images",
|
|
10581
10994
|
"type": "array"
|
|
10582
10995
|
},
|
|
10583
|
-
"
|
|
10584
|
-
"
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
},
|
|
10588
|
-
{
|
|
10589
|
-
"type": "null"
|
|
10590
|
-
}
|
|
10591
|
-
],
|
|
10592
|
-
"default": null,
|
|
10593
|
-
"description": "Identifier of the principal that sent the message, if attributed.",
|
|
10594
|
-
"title": "Sender Attribution Id"
|
|
10595
|
-
},
|
|
10596
|
-
"sender_attribution_type": {
|
|
10597
|
-
"anyOf": [
|
|
10598
|
-
{
|
|
10599
|
-
"$ref": "#/$defs/AttributionType"
|
|
10600
|
-
},
|
|
10601
|
-
{
|
|
10602
|
-
"type": "null"
|
|
10603
|
-
}
|
|
10604
|
-
],
|
|
10605
|
-
"default": null,
|
|
10606
|
-
"description": "Kind of principal that sent the message, if attributed."
|
|
10996
|
+
"index": {
|
|
10997
|
+
"description": "Position in the session, starting at 0.",
|
|
10998
|
+
"title": "Index",
|
|
10999
|
+
"type": "integer"
|
|
10607
11000
|
},
|
|
10608
11001
|
"session_id": {
|
|
10609
11002
|
"description": "Identifier of the session the message belongs to.",
|
|
10610
11003
|
"title": "Session Id",
|
|
10611
11004
|
"type": "string"
|
|
10612
|
-
},
|
|
10613
|
-
"status": {
|
|
10614
|
-
"$ref": "#/$defs/SessionMessageStatus",
|
|
10615
|
-
"description": "Delivery status of the message."
|
|
10616
|
-
},
|
|
10617
|
-
"turn_id": {
|
|
10618
|
-
"anyOf": [
|
|
10619
|
-
{
|
|
10620
|
-
"type": "string"
|
|
10621
|
-
},
|
|
10622
|
-
{
|
|
10623
|
-
"type": "null"
|
|
10624
|
-
}
|
|
10625
|
-
],
|
|
10626
|
-
"default": null,
|
|
10627
|
-
"description": "The turn created to answer this message. Wait on it: the message is answered when that turn reaches a final status.",
|
|
10628
|
-
"title": "Turn Id"
|
|
10629
11005
|
}
|
|
10630
11006
|
},
|
|
10631
11007
|
"required": [
|
|
10632
11008
|
"author",
|
|
10633
11009
|
"body",
|
|
10634
11010
|
"created_at",
|
|
10635
|
-
"delivered_at",
|
|
10636
|
-
"feed_seq",
|
|
10637
11011
|
"id",
|
|
10638
11012
|
"images",
|
|
10639
|
-
"
|
|
10640
|
-
"
|
|
10641
|
-
"session_id",
|
|
10642
|
-
"status",
|
|
10643
|
-
"turn_id"
|
|
11013
|
+
"index",
|
|
11014
|
+
"session_id"
|
|
10644
11015
|
],
|
|
10645
11016
|
"title": "SessionMessage",
|
|
10646
11017
|
"type": "object"
|
|
@@ -10672,16 +11043,8 @@
|
|
|
10672
11043
|
"title": "SessionMessageImage",
|
|
10673
11044
|
"type": "object"
|
|
10674
11045
|
},
|
|
10675
|
-
"SessionMessageStatus": {
|
|
10676
|
-
"enum": [
|
|
10677
|
-
"pending",
|
|
10678
|
-
"delivered"
|
|
10679
|
-
],
|
|
10680
|
-
"title": "SessionMessageStatus",
|
|
10681
|
-
"type": "string"
|
|
10682
|
-
},
|
|
10683
11046
|
"SessionOutput": {
|
|
10684
|
-
"description": "Structured output on the wire: the contract and, when
|
|
11047
|
+
"description": "Structured output on the wire: the contract and, when the agent has\nsubmitted one, the payload. `result` is None while the session runs and\nwhen the agent submitted nothing; it is the agent's own JSON, in the\nshape of `json_schema`.",
|
|
10685
11048
|
"properties": {
|
|
10686
11049
|
"json_schema": {
|
|
10687
11050
|
"additionalProperties": true,
|
|
@@ -10700,7 +11063,7 @@
|
|
|
10700
11063
|
}
|
|
10701
11064
|
],
|
|
10702
11065
|
"default": null,
|
|
10703
|
-
"description": "The payload the agent submitted, or null until
|
|
11066
|
+
"description": "The payload the agent submitted, or null until it submits one.",
|
|
10704
11067
|
"title": "Result"
|
|
10705
11068
|
}
|
|
10706
11069
|
},
|
|
@@ -10811,10 +11174,25 @@
|
|
|
10811
11174
|
}
|
|
10812
11175
|
]
|
|
10813
11176
|
},
|
|
10814
|
-
"
|
|
10815
|
-
"description": "
|
|
10816
|
-
"
|
|
10817
|
-
"
|
|
11177
|
+
"SessionReview": {
|
|
11178
|
+
"description": "The code review a reviewer session ran for.",
|
|
11179
|
+
"properties": {
|
|
11180
|
+
"id": {
|
|
11181
|
+
"description": "Identifier of the code review.",
|
|
11182
|
+
"title": "Id",
|
|
11183
|
+
"type": "string"
|
|
11184
|
+
}
|
|
11185
|
+
},
|
|
11186
|
+
"required": [
|
|
11187
|
+
"id"
|
|
11188
|
+
],
|
|
11189
|
+
"title": "SessionReview",
|
|
11190
|
+
"type": "object"
|
|
11191
|
+
},
|
|
11192
|
+
"SessionSource": {
|
|
11193
|
+
"description": "Where a session came from: the credential that started it (web app,\nAPI key, CLI) or the trigger that fired (react, mention, cron, code\nreview). Never taken from a request body.",
|
|
11194
|
+
"enum": [
|
|
11195
|
+
"react",
|
|
10818
11196
|
"code_review",
|
|
10819
11197
|
"web",
|
|
10820
11198
|
"api",
|
|
@@ -10825,44 +11203,18 @@
|
|
|
10825
11203
|
"title": "SessionSource",
|
|
10826
11204
|
"type": "string"
|
|
10827
11205
|
},
|
|
10828
|
-
"
|
|
10829
|
-
"description": "
|
|
11206
|
+
"SessionStatus": {
|
|
11207
|
+
"description": "Where the session is. `queued` while a message waits for a worker,\n`preparing` while its environment is set up, `running` while the agent\nworks, `idle` when every message has been answered and the session can\ntake another, and `closed` when it can take no more. `closed` is\npermanent.",
|
|
10830
11208
|
"enum": [
|
|
10831
|
-
"
|
|
11209
|
+
"queued",
|
|
11210
|
+
"preparing",
|
|
11211
|
+
"running",
|
|
11212
|
+
"idle",
|
|
10832
11213
|
"closed"
|
|
10833
11214
|
],
|
|
10834
|
-
"title": "
|
|
11215
|
+
"title": "SessionStatus",
|
|
10835
11216
|
"type": "string"
|
|
10836
11217
|
},
|
|
10837
|
-
"SessionStopped": {
|
|
10838
|
-
"description": "When a stop was requested and the GitHub user who requested it.",
|
|
10839
|
-
"properties": {
|
|
10840
|
-
"at": {
|
|
10841
|
-
"description": "When a stop was requested.",
|
|
10842
|
-
"format": "date-time",
|
|
10843
|
-
"title": "At",
|
|
10844
|
-
"type": "string"
|
|
10845
|
-
},
|
|
10846
|
-
"by": {
|
|
10847
|
-
"anyOf": [
|
|
10848
|
-
{
|
|
10849
|
-
"$ref": "#/$defs/GithubAccountSnippet"
|
|
10850
|
-
},
|
|
10851
|
-
{
|
|
10852
|
-
"type": "null"
|
|
10853
|
-
}
|
|
10854
|
-
],
|
|
10855
|
-
"default": null,
|
|
10856
|
-
"description": "The GitHub user who stopped the session, resolved at read time. Null if the user is unknown or unavailable."
|
|
10857
|
-
}
|
|
10858
|
-
},
|
|
10859
|
-
"required": [
|
|
10860
|
-
"at",
|
|
10861
|
-
"by"
|
|
10862
|
-
],
|
|
10863
|
-
"title": "SessionStopped",
|
|
10864
|
-
"type": "object"
|
|
10865
|
-
},
|
|
10866
11218
|
"SessionSummary": {
|
|
10867
11219
|
"description": "A live one-line summary of what the session is doing, refreshed\nevery few steps while it runs.",
|
|
10868
11220
|
"properties": {
|
|
@@ -10884,127 +11236,29 @@
|
|
|
10884
11236
|
"description": "One-line description of what the session is doing.",
|
|
10885
11237
|
"title": "Description",
|
|
10886
11238
|
"type": "string"
|
|
11239
|
+
},
|
|
11240
|
+
"source": {
|
|
11241
|
+
"$ref": "#/$defs/SessionSummarySource",
|
|
11242
|
+
"description": "Where this summary came from. `prompt` is the first line of the prompt the session started with, `generated` is written by Ellipsis as the session runs, and `user` was set by a person and is never replaced by a generated one."
|
|
10887
11243
|
}
|
|
10888
11244
|
},
|
|
10889
11245
|
"required": [
|
|
10890
11246
|
"created_at",
|
|
10891
|
-
"description"
|
|
11247
|
+
"description",
|
|
11248
|
+
"source"
|
|
10892
11249
|
],
|
|
10893
11250
|
"title": "SessionSummary",
|
|
10894
11251
|
"type": "object"
|
|
10895
11252
|
},
|
|
10896
|
-
"
|
|
10897
|
-
"description": "
|
|
10898
|
-
"
|
|
10899
|
-
"
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
},
|
|
10903
|
-
"created_at": {
|
|
10904
|
-
"description": "When the turn's message was received.",
|
|
10905
|
-
"format": "date-time",
|
|
10906
|
-
"title": "Created At",
|
|
10907
|
-
"type": "string"
|
|
10908
|
-
},
|
|
10909
|
-
"detail": {
|
|
10910
|
-
"anyOf": [
|
|
10911
|
-
{
|
|
10912
|
-
"type": "string"
|
|
10913
|
-
},
|
|
10914
|
-
{
|
|
10915
|
-
"type": "null"
|
|
10916
|
-
}
|
|
10917
|
-
],
|
|
10918
|
-
"default": null,
|
|
10919
|
-
"description": "A human-readable explanation of a failed, stopped, or cancelled turn, or of why a queued turn waits.",
|
|
10920
|
-
"title": "Detail"
|
|
10921
|
-
},
|
|
10922
|
-
"ended_at": {
|
|
10923
|
-
"anyOf": [
|
|
10924
|
-
{
|
|
10925
|
-
"format": "date-time",
|
|
10926
|
-
"type": "string"
|
|
10927
|
-
},
|
|
10928
|
-
{
|
|
10929
|
-
"type": "null"
|
|
10930
|
-
}
|
|
10931
|
-
],
|
|
10932
|
-
"default": null,
|
|
10933
|
-
"description": "When the turn reached its final status.",
|
|
10934
|
-
"title": "Ended At"
|
|
10935
|
-
},
|
|
10936
|
-
"id": {
|
|
10937
|
-
"description": "Unique identifier of the turn.",
|
|
10938
|
-
"title": "Id",
|
|
10939
|
-
"type": "string"
|
|
10940
|
-
},
|
|
10941
|
-
"index": {
|
|
10942
|
-
"description": "Position in the session, starting at 0.",
|
|
10943
|
-
"title": "Index",
|
|
10944
|
-
"type": "integer"
|
|
10945
|
-
},
|
|
10946
|
-
"reason": {
|
|
10947
|
-
"anyOf": [
|
|
10948
|
-
{
|
|
10949
|
-
"$ref": "#/$defs/TurnReason"
|
|
10950
|
-
},
|
|
10951
|
-
{
|
|
10952
|
-
"type": "null"
|
|
10953
|
-
}
|
|
10954
|
-
],
|
|
10955
|
-
"default": null,
|
|
10956
|
-
"description": "Why the turn failed or was cancelled; null on every other status."
|
|
10957
|
-
},
|
|
10958
|
-
"started_at": {
|
|
10959
|
-
"anyOf": [
|
|
10960
|
-
{
|
|
10961
|
-
"format": "date-time",
|
|
10962
|
-
"type": "string"
|
|
10963
|
-
},
|
|
10964
|
-
{
|
|
10965
|
-
"type": "null"
|
|
10966
|
-
}
|
|
10967
|
-
],
|
|
10968
|
-
"default": null,
|
|
10969
|
-
"description": "When the agent started on the message.",
|
|
10970
|
-
"title": "Started At"
|
|
10971
|
-
},
|
|
10972
|
-
"status": {
|
|
10973
|
-
"$ref": "#/$defs/TurnStatus",
|
|
10974
|
-
"description": "Where the turn is."
|
|
10975
|
-
},
|
|
10976
|
-
"stopped": {
|
|
10977
|
-
"anyOf": [
|
|
10978
|
-
{
|
|
10979
|
-
"$ref": "#/$defs/SessionStopped"
|
|
10980
|
-
},
|
|
10981
|
-
{
|
|
10982
|
-
"type": "null"
|
|
10983
|
-
}
|
|
10984
|
-
],
|
|
10985
|
-
"default": null,
|
|
10986
|
-
"description": "When and by whom a stop was requested; null when none was."
|
|
10987
|
-
},
|
|
10988
|
-
"tokens": {
|
|
10989
|
-
"$ref": "#/$defs/Tokens",
|
|
10990
|
-
"description": "The tokens the turn spent and the model they went to."
|
|
10991
|
-
}
|
|
10992
|
-
},
|
|
10993
|
-
"required": [
|
|
10994
|
-
"cost",
|
|
10995
|
-
"created_at",
|
|
10996
|
-
"detail",
|
|
10997
|
-
"ended_at",
|
|
10998
|
-
"id",
|
|
10999
|
-
"index",
|
|
11000
|
-
"reason",
|
|
11001
|
-
"started_at",
|
|
11002
|
-
"status",
|
|
11003
|
-
"stopped",
|
|
11004
|
-
"tokens"
|
|
11253
|
+
"SessionSummarySource": {
|
|
11254
|
+
"description": "Where a session's summary came from.",
|
|
11255
|
+
"enum": [
|
|
11256
|
+
"prompt",
|
|
11257
|
+
"generated",
|
|
11258
|
+
"user"
|
|
11005
11259
|
],
|
|
11006
|
-
"title": "
|
|
11007
|
-
"type": "
|
|
11260
|
+
"title": "SessionSummarySource",
|
|
11261
|
+
"type": "string"
|
|
11008
11262
|
},
|
|
11009
11263
|
"SettingsRef": {
|
|
11010
11264
|
"additionalProperties": false,
|
|
@@ -11187,49 +11441,6 @@
|
|
|
11187
11441
|
"title": "SlackMessageEvent",
|
|
11188
11442
|
"type": "object"
|
|
11189
11443
|
},
|
|
11190
|
-
"SnapshotFrame": {
|
|
11191
|
-
"description": "The first frame after the stream connects: the session plus its open\ninbox. Records always arrive separately via records_append frames.",
|
|
11192
|
-
"properties": {
|
|
11193
|
-
"earliest_feed_seq": {
|
|
11194
|
-
"anyOf": [
|
|
11195
|
-
{
|
|
11196
|
-
"type": "integer"
|
|
11197
|
-
},
|
|
11198
|
-
{
|
|
11199
|
-
"type": "null"
|
|
11200
|
-
}
|
|
11201
|
-
],
|
|
11202
|
-
"description": "The retention head: the lowest feed_seq still stored for this session, or null when it has no stored records. A client resuming from after_seq < earliest_feed_seq - 1 knows history is truncated.",
|
|
11203
|
-
"title": "Earliest Feed Seq"
|
|
11204
|
-
},
|
|
11205
|
-
"messages": {
|
|
11206
|
-
"description": "The session's open (pending) inbox messages.",
|
|
11207
|
-
"items": {
|
|
11208
|
-
"$ref": "#/$defs/SessionMessage"
|
|
11209
|
-
},
|
|
11210
|
-
"title": "Messages",
|
|
11211
|
-
"type": "array"
|
|
11212
|
-
},
|
|
11213
|
-
"session": {
|
|
11214
|
-
"$ref": "#/$defs/Session",
|
|
11215
|
-
"description": "The session's current state."
|
|
11216
|
-
},
|
|
11217
|
-
"type": {
|
|
11218
|
-
"const": "snapshot",
|
|
11219
|
-
"default": "snapshot",
|
|
11220
|
-
"title": "Type",
|
|
11221
|
-
"type": "string"
|
|
11222
|
-
}
|
|
11223
|
-
},
|
|
11224
|
-
"required": [
|
|
11225
|
-
"earliest_feed_seq",
|
|
11226
|
-
"messages",
|
|
11227
|
-
"session",
|
|
11228
|
-
"type"
|
|
11229
|
-
],
|
|
11230
|
-
"title": "SnapshotFrame",
|
|
11231
|
-
"type": "object"
|
|
11232
|
-
},
|
|
11233
11444
|
"StatusAction": {
|
|
11234
11445
|
"description": "The state of a commit status. `success` is `passed`, `failure` is `failed`, and `error` is `errored`.",
|
|
11235
11446
|
"enum": [
|
|
@@ -11346,68 +11557,8 @@
|
|
|
11346
11557
|
"title": "TokensInfo",
|
|
11347
11558
|
"type": "object"
|
|
11348
11559
|
},
|
|
11349
|
-
"
|
|
11350
|
-
"
|
|
11351
|
-
"description": "turn_ended: the turn reached its final status. `status`, `reason`, and\n`detail` match the turn on the session object.",
|
|
11352
|
-
"properties": {
|
|
11353
|
-
"detail": {
|
|
11354
|
-
"anyOf": [
|
|
11355
|
-
{
|
|
11356
|
-
"type": "string"
|
|
11357
|
-
},
|
|
11358
|
-
{
|
|
11359
|
-
"type": "null"
|
|
11360
|
-
}
|
|
11361
|
-
],
|
|
11362
|
-
"default": null,
|
|
11363
|
-
"title": "Detail"
|
|
11364
|
-
},
|
|
11365
|
-
"duration_ms": {
|
|
11366
|
-
"anyOf": [
|
|
11367
|
-
{
|
|
11368
|
-
"type": "integer"
|
|
11369
|
-
},
|
|
11370
|
-
{
|
|
11371
|
-
"type": "null"
|
|
11372
|
-
}
|
|
11373
|
-
],
|
|
11374
|
-
"default": null,
|
|
11375
|
-
"title": "Duration Ms"
|
|
11376
|
-
},
|
|
11377
|
-
"reason": {
|
|
11378
|
-
"anyOf": [
|
|
11379
|
-
{
|
|
11380
|
-
"type": "string"
|
|
11381
|
-
},
|
|
11382
|
-
{
|
|
11383
|
-
"type": "null"
|
|
11384
|
-
}
|
|
11385
|
-
],
|
|
11386
|
-
"default": null,
|
|
11387
|
-
"title": "Reason"
|
|
11388
|
-
},
|
|
11389
|
-
"status": {
|
|
11390
|
-
"title": "Status",
|
|
11391
|
-
"type": "string"
|
|
11392
|
-
},
|
|
11393
|
-
"turn_id": {
|
|
11394
|
-
"title": "Turn Id",
|
|
11395
|
-
"type": "string"
|
|
11396
|
-
},
|
|
11397
|
-
"turn_index": {
|
|
11398
|
-
"title": "Turn Index",
|
|
11399
|
-
"type": "integer"
|
|
11400
|
-
}
|
|
11401
|
-
},
|
|
11402
|
-
"required": [
|
|
11403
|
-
"turn_id",
|
|
11404
|
-
"turn_index",
|
|
11405
|
-
"status"
|
|
11406
|
-
],
|
|
11407
|
-
"title": "TurnEndedPayload",
|
|
11408
|
-
"type": "object"
|
|
11409
|
-
},
|
|
11410
|
-
"TurnEndedRecord": {
|
|
11560
|
+
"UnknownSessionRecord": {
|
|
11561
|
+
"description": "Unrecognized or unparseable payload; the complete original stays readable.",
|
|
11411
11562
|
"properties": {
|
|
11412
11563
|
"cost": {
|
|
11413
11564
|
"anyOf": [
|
|
@@ -11449,11 +11600,24 @@
|
|
|
11449
11600
|
"type": "string"
|
|
11450
11601
|
},
|
|
11451
11602
|
"kind": {
|
|
11452
|
-
"const": "
|
|
11453
|
-
"default": "
|
|
11603
|
+
"const": "unknown",
|
|
11604
|
+
"default": "unknown",
|
|
11454
11605
|
"title": "Kind",
|
|
11455
11606
|
"type": "string"
|
|
11456
11607
|
},
|
|
11608
|
+
"message_id": {
|
|
11609
|
+
"anyOf": [
|
|
11610
|
+
{
|
|
11611
|
+
"type": "string"
|
|
11612
|
+
},
|
|
11613
|
+
{
|
|
11614
|
+
"type": "null"
|
|
11615
|
+
}
|
|
11616
|
+
],
|
|
11617
|
+
"default": null,
|
|
11618
|
+
"description": "The message this record belongs to: the message itself, or what happened while answering it. Null for records outside any message, such as the session closing.",
|
|
11619
|
+
"title": "Message Id"
|
|
11620
|
+
},
|
|
11457
11621
|
"model": {
|
|
11458
11622
|
"anyOf": [
|
|
11459
11623
|
{
|
|
@@ -11467,17 +11631,17 @@
|
|
|
11467
11631
|
"title": "Model"
|
|
11468
11632
|
},
|
|
11469
11633
|
"payload": {
|
|
11470
|
-
"
|
|
11634
|
+
"additionalProperties": true,
|
|
11635
|
+
"title": "Payload",
|
|
11636
|
+
"type": "object"
|
|
11471
11637
|
},
|
|
11472
11638
|
"record_format": {
|
|
11473
|
-
"
|
|
11474
|
-
"default": "ellipsis_lifecycle@1",
|
|
11639
|
+
"description": "Original versioned payload format.",
|
|
11475
11640
|
"title": "Record Format",
|
|
11476
11641
|
"type": "string"
|
|
11477
11642
|
},
|
|
11478
11643
|
"record_type": {
|
|
11479
|
-
"
|
|
11480
|
-
"default": "turn_ended",
|
|
11644
|
+
"description": "Original record type within its format.",
|
|
11481
11645
|
"title": "Record Type",
|
|
11482
11646
|
"type": "string"
|
|
11483
11647
|
},
|
|
@@ -11486,22 +11650,8 @@
|
|
|
11486
11650
|
"title": "Session Id",
|
|
11487
11651
|
"type": "string"
|
|
11488
11652
|
},
|
|
11489
|
-
"session_message_id": {
|
|
11490
|
-
"anyOf": [
|
|
11491
|
-
{
|
|
11492
|
-
"type": "string"
|
|
11493
|
-
},
|
|
11494
|
-
{
|
|
11495
|
-
"type": "null"
|
|
11496
|
-
}
|
|
11497
|
-
],
|
|
11498
|
-
"default": null,
|
|
11499
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
11500
|
-
"title": "Session Message Id"
|
|
11501
|
-
},
|
|
11502
11653
|
"source": {
|
|
11503
|
-
"
|
|
11504
|
-
"default": "lifecycle",
|
|
11654
|
+
"description": "Original producer. Unknown producers remain readable as unknown records.",
|
|
11505
11655
|
"title": "Source",
|
|
11506
11656
|
"type": "string"
|
|
11507
11657
|
},
|
|
@@ -11530,581 +11680,6 @@
|
|
|
11530
11680
|
],
|
|
11531
11681
|
"default": null,
|
|
11532
11682
|
"title": "Tools"
|
|
11533
|
-
},
|
|
11534
|
-
"turn_id": {
|
|
11535
|
-
"anyOf": [
|
|
11536
|
-
{
|
|
11537
|
-
"type": "string"
|
|
11538
|
-
},
|
|
11539
|
-
{
|
|
11540
|
-
"type": "null"
|
|
11541
|
-
}
|
|
11542
|
-
],
|
|
11543
|
-
"default": null,
|
|
11544
|
-
"description": "Turn containing this record, when applicable.",
|
|
11545
|
-
"title": "Turn Id"
|
|
11546
|
-
}
|
|
11547
|
-
},
|
|
11548
|
-
"required": [
|
|
11549
|
-
"cost",
|
|
11550
|
-
"created_at",
|
|
11551
|
-
"duration",
|
|
11552
|
-
"feed_seq",
|
|
11553
|
-
"id",
|
|
11554
|
-
"kind",
|
|
11555
|
-
"model",
|
|
11556
|
-
"payload",
|
|
11557
|
-
"record_format",
|
|
11558
|
-
"record_type",
|
|
11559
|
-
"session_id",
|
|
11560
|
-
"session_message_id",
|
|
11561
|
-
"source",
|
|
11562
|
-
"tokens_info",
|
|
11563
|
-
"tools",
|
|
11564
|
-
"turn_id"
|
|
11565
|
-
],
|
|
11566
|
-
"title": "TurnEndedRecord",
|
|
11567
|
-
"type": "object",
|
|
11568
|
-
"x-ellipsis-preserve-payload": true
|
|
11569
|
-
},
|
|
11570
|
-
"TurnQueuedPayload": {
|
|
11571
|
-
"additionalProperties": true,
|
|
11572
|
-
"description": "turn_queued: the turn waits because the account already has\n`sessions_alive` sessions alive, its limit.",
|
|
11573
|
-
"properties": {
|
|
11574
|
-
"limit": {
|
|
11575
|
-
"title": "Limit",
|
|
11576
|
-
"type": "integer"
|
|
11577
|
-
},
|
|
11578
|
-
"sessions_alive": {
|
|
11579
|
-
"title": "Sessions Alive",
|
|
11580
|
-
"type": "integer"
|
|
11581
|
-
},
|
|
11582
|
-
"turn_id": {
|
|
11583
|
-
"title": "Turn Id",
|
|
11584
|
-
"type": "string"
|
|
11585
|
-
}
|
|
11586
|
-
},
|
|
11587
|
-
"required": [
|
|
11588
|
-
"turn_id",
|
|
11589
|
-
"sessions_alive",
|
|
11590
|
-
"limit"
|
|
11591
|
-
],
|
|
11592
|
-
"title": "TurnQueuedPayload",
|
|
11593
|
-
"type": "object"
|
|
11594
|
-
},
|
|
11595
|
-
"TurnQueuedRecord": {
|
|
11596
|
-
"properties": {
|
|
11597
|
-
"cost": {
|
|
11598
|
-
"anyOf": [
|
|
11599
|
-
{
|
|
11600
|
-
"type": "integer"
|
|
11601
|
-
},
|
|
11602
|
-
{
|
|
11603
|
-
"type": "null"
|
|
11604
|
-
}
|
|
11605
|
-
],
|
|
11606
|
-
"default": null,
|
|
11607
|
-
"title": "Cost"
|
|
11608
|
-
},
|
|
11609
|
-
"created_at": {
|
|
11610
|
-
"format": "date-time",
|
|
11611
|
-
"title": "Created At",
|
|
11612
|
-
"type": "string"
|
|
11613
|
-
},
|
|
11614
|
-
"duration": {
|
|
11615
|
-
"anyOf": [
|
|
11616
|
-
{
|
|
11617
|
-
"type": "integer"
|
|
11618
|
-
},
|
|
11619
|
-
{
|
|
11620
|
-
"type": "null"
|
|
11621
|
-
}
|
|
11622
|
-
],
|
|
11623
|
-
"default": null,
|
|
11624
|
-
"title": "Duration"
|
|
11625
|
-
},
|
|
11626
|
-
"feed_seq": {
|
|
11627
|
-
"description": "Position in the session feed and the stream's resume cursor.",
|
|
11628
|
-
"title": "Feed Seq",
|
|
11629
|
-
"type": "integer"
|
|
11630
|
-
},
|
|
11631
|
-
"id": {
|
|
11632
|
-
"description": "Unique identifier of the record.",
|
|
11633
|
-
"title": "Id",
|
|
11634
|
-
"type": "string"
|
|
11635
|
-
},
|
|
11636
|
-
"kind": {
|
|
11637
|
-
"const": "platform",
|
|
11638
|
-
"default": "platform",
|
|
11639
|
-
"title": "Kind",
|
|
11640
|
-
"type": "string"
|
|
11641
|
-
},
|
|
11642
|
-
"model": {
|
|
11643
|
-
"anyOf": [
|
|
11644
|
-
{
|
|
11645
|
-
"type": "string"
|
|
11646
|
-
},
|
|
11647
|
-
{
|
|
11648
|
-
"type": "null"
|
|
11649
|
-
}
|
|
11650
|
-
],
|
|
11651
|
-
"default": null,
|
|
11652
|
-
"title": "Model"
|
|
11653
|
-
},
|
|
11654
|
-
"payload": {
|
|
11655
|
-
"$ref": "#/$defs/TurnQueuedPayload"
|
|
11656
|
-
},
|
|
11657
|
-
"record_format": {
|
|
11658
|
-
"const": "ellipsis_lifecycle@1",
|
|
11659
|
-
"default": "ellipsis_lifecycle@1",
|
|
11660
|
-
"title": "Record Format",
|
|
11661
|
-
"type": "string"
|
|
11662
|
-
},
|
|
11663
|
-
"record_type": {
|
|
11664
|
-
"const": "turn_queued",
|
|
11665
|
-
"default": "turn_queued",
|
|
11666
|
-
"title": "Record Type",
|
|
11667
|
-
"type": "string"
|
|
11668
|
-
},
|
|
11669
|
-
"session_id": {
|
|
11670
|
-
"description": "Session containing this record.",
|
|
11671
|
-
"title": "Session Id",
|
|
11672
|
-
"type": "string"
|
|
11673
|
-
},
|
|
11674
|
-
"session_message_id": {
|
|
11675
|
-
"anyOf": [
|
|
11676
|
-
{
|
|
11677
|
-
"type": "string"
|
|
11678
|
-
},
|
|
11679
|
-
{
|
|
11680
|
-
"type": "null"
|
|
11681
|
-
}
|
|
11682
|
-
],
|
|
11683
|
-
"default": null,
|
|
11684
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
11685
|
-
"title": "Session Message Id"
|
|
11686
|
-
},
|
|
11687
|
-
"source": {
|
|
11688
|
-
"const": "lifecycle",
|
|
11689
|
-
"default": "lifecycle",
|
|
11690
|
-
"title": "Source",
|
|
11691
|
-
"type": "string"
|
|
11692
|
-
},
|
|
11693
|
-
"tokens_info": {
|
|
11694
|
-
"anyOf": [
|
|
11695
|
-
{
|
|
11696
|
-
"$ref": "#/$defs/TokensInfo"
|
|
11697
|
-
},
|
|
11698
|
-
{
|
|
11699
|
-
"type": "null"
|
|
11700
|
-
}
|
|
11701
|
-
],
|
|
11702
|
-
"default": null
|
|
11703
|
-
},
|
|
11704
|
-
"tools": {
|
|
11705
|
-
"anyOf": [
|
|
11706
|
-
{
|
|
11707
|
-
"items": {
|
|
11708
|
-
"type": "string"
|
|
11709
|
-
},
|
|
11710
|
-
"type": "array"
|
|
11711
|
-
},
|
|
11712
|
-
{
|
|
11713
|
-
"type": "null"
|
|
11714
|
-
}
|
|
11715
|
-
],
|
|
11716
|
-
"default": null,
|
|
11717
|
-
"title": "Tools"
|
|
11718
|
-
},
|
|
11719
|
-
"turn_id": {
|
|
11720
|
-
"anyOf": [
|
|
11721
|
-
{
|
|
11722
|
-
"type": "string"
|
|
11723
|
-
},
|
|
11724
|
-
{
|
|
11725
|
-
"type": "null"
|
|
11726
|
-
}
|
|
11727
|
-
],
|
|
11728
|
-
"default": null,
|
|
11729
|
-
"description": "Turn containing this record, when applicable.",
|
|
11730
|
-
"title": "Turn Id"
|
|
11731
|
-
}
|
|
11732
|
-
},
|
|
11733
|
-
"required": [
|
|
11734
|
-
"cost",
|
|
11735
|
-
"created_at",
|
|
11736
|
-
"duration",
|
|
11737
|
-
"feed_seq",
|
|
11738
|
-
"id",
|
|
11739
|
-
"kind",
|
|
11740
|
-
"model",
|
|
11741
|
-
"payload",
|
|
11742
|
-
"record_format",
|
|
11743
|
-
"record_type",
|
|
11744
|
-
"session_id",
|
|
11745
|
-
"session_message_id",
|
|
11746
|
-
"source",
|
|
11747
|
-
"tokens_info",
|
|
11748
|
-
"tools",
|
|
11749
|
-
"turn_id"
|
|
11750
|
-
],
|
|
11751
|
-
"title": "TurnQueuedRecord",
|
|
11752
|
-
"type": "object",
|
|
11753
|
-
"x-ellipsis-preserve-payload": true
|
|
11754
|
-
},
|
|
11755
|
-
"TurnReason": {
|
|
11756
|
-
"description": "Why a turn failed or was cancelled. Null on every other outcome.",
|
|
11757
|
-
"enum": [
|
|
11758
|
-
"error",
|
|
11759
|
-
"tool_call_failed",
|
|
11760
|
-
"budget_hit",
|
|
11761
|
-
"payment_required",
|
|
11762
|
-
"blocked",
|
|
11763
|
-
"contact_email_required",
|
|
11764
|
-
"lifecycle_hook_failed",
|
|
11765
|
-
"missing_repo_access",
|
|
11766
|
-
"missing_token_permissions",
|
|
11767
|
-
"missing_environment_variables",
|
|
11768
|
-
"missing_github_integration",
|
|
11769
|
-
"agent_unavailable",
|
|
11770
|
-
"upstream_unavailable",
|
|
11771
|
-
"unsupported_configuration",
|
|
11772
|
-
"execution_disabled",
|
|
11773
|
-
"interrupted"
|
|
11774
|
-
],
|
|
11775
|
-
"title": "TurnReason",
|
|
11776
|
-
"type": "string"
|
|
11777
|
-
},
|
|
11778
|
-
"TurnStartedPayload": {
|
|
11779
|
-
"additionalProperties": true,
|
|
11780
|
-
"description": "turn_started: the agent started on the turn's message.",
|
|
11781
|
-
"properties": {
|
|
11782
|
-
"turn_id": {
|
|
11783
|
-
"title": "Turn Id",
|
|
11784
|
-
"type": "string"
|
|
11785
|
-
},
|
|
11786
|
-
"turn_index": {
|
|
11787
|
-
"title": "Turn Index",
|
|
11788
|
-
"type": "integer"
|
|
11789
|
-
}
|
|
11790
|
-
},
|
|
11791
|
-
"required": [
|
|
11792
|
-
"turn_id",
|
|
11793
|
-
"turn_index"
|
|
11794
|
-
],
|
|
11795
|
-
"title": "TurnStartedPayload",
|
|
11796
|
-
"type": "object"
|
|
11797
|
-
},
|
|
11798
|
-
"TurnStartedRecord": {
|
|
11799
|
-
"properties": {
|
|
11800
|
-
"cost": {
|
|
11801
|
-
"anyOf": [
|
|
11802
|
-
{
|
|
11803
|
-
"type": "integer"
|
|
11804
|
-
},
|
|
11805
|
-
{
|
|
11806
|
-
"type": "null"
|
|
11807
|
-
}
|
|
11808
|
-
],
|
|
11809
|
-
"default": null,
|
|
11810
|
-
"title": "Cost"
|
|
11811
|
-
},
|
|
11812
|
-
"created_at": {
|
|
11813
|
-
"format": "date-time",
|
|
11814
|
-
"title": "Created At",
|
|
11815
|
-
"type": "string"
|
|
11816
|
-
},
|
|
11817
|
-
"duration": {
|
|
11818
|
-
"anyOf": [
|
|
11819
|
-
{
|
|
11820
|
-
"type": "integer"
|
|
11821
|
-
},
|
|
11822
|
-
{
|
|
11823
|
-
"type": "null"
|
|
11824
|
-
}
|
|
11825
|
-
],
|
|
11826
|
-
"default": null,
|
|
11827
|
-
"title": "Duration"
|
|
11828
|
-
},
|
|
11829
|
-
"feed_seq": {
|
|
11830
|
-
"description": "Position in the session feed and the stream's resume cursor.",
|
|
11831
|
-
"title": "Feed Seq",
|
|
11832
|
-
"type": "integer"
|
|
11833
|
-
},
|
|
11834
|
-
"id": {
|
|
11835
|
-
"description": "Unique identifier of the record.",
|
|
11836
|
-
"title": "Id",
|
|
11837
|
-
"type": "string"
|
|
11838
|
-
},
|
|
11839
|
-
"kind": {
|
|
11840
|
-
"const": "platform",
|
|
11841
|
-
"default": "platform",
|
|
11842
|
-
"title": "Kind",
|
|
11843
|
-
"type": "string"
|
|
11844
|
-
},
|
|
11845
|
-
"model": {
|
|
11846
|
-
"anyOf": [
|
|
11847
|
-
{
|
|
11848
|
-
"type": "string"
|
|
11849
|
-
},
|
|
11850
|
-
{
|
|
11851
|
-
"type": "null"
|
|
11852
|
-
}
|
|
11853
|
-
],
|
|
11854
|
-
"default": null,
|
|
11855
|
-
"title": "Model"
|
|
11856
|
-
},
|
|
11857
|
-
"payload": {
|
|
11858
|
-
"$ref": "#/$defs/TurnStartedPayload"
|
|
11859
|
-
},
|
|
11860
|
-
"record_format": {
|
|
11861
|
-
"const": "ellipsis_lifecycle@1",
|
|
11862
|
-
"default": "ellipsis_lifecycle@1",
|
|
11863
|
-
"title": "Record Format",
|
|
11864
|
-
"type": "string"
|
|
11865
|
-
},
|
|
11866
|
-
"record_type": {
|
|
11867
|
-
"const": "turn_started",
|
|
11868
|
-
"default": "turn_started",
|
|
11869
|
-
"title": "Record Type",
|
|
11870
|
-
"type": "string"
|
|
11871
|
-
},
|
|
11872
|
-
"session_id": {
|
|
11873
|
-
"description": "Session containing this record.",
|
|
11874
|
-
"title": "Session Id",
|
|
11875
|
-
"type": "string"
|
|
11876
|
-
},
|
|
11877
|
-
"session_message_id": {
|
|
11878
|
-
"anyOf": [
|
|
11879
|
-
{
|
|
11880
|
-
"type": "string"
|
|
11881
|
-
},
|
|
11882
|
-
{
|
|
11883
|
-
"type": "null"
|
|
11884
|
-
}
|
|
11885
|
-
],
|
|
11886
|
-
"default": null,
|
|
11887
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
11888
|
-
"title": "Session Message Id"
|
|
11889
|
-
},
|
|
11890
|
-
"source": {
|
|
11891
|
-
"const": "lifecycle",
|
|
11892
|
-
"default": "lifecycle",
|
|
11893
|
-
"title": "Source",
|
|
11894
|
-
"type": "string"
|
|
11895
|
-
},
|
|
11896
|
-
"tokens_info": {
|
|
11897
|
-
"anyOf": [
|
|
11898
|
-
{
|
|
11899
|
-
"$ref": "#/$defs/TokensInfo"
|
|
11900
|
-
},
|
|
11901
|
-
{
|
|
11902
|
-
"type": "null"
|
|
11903
|
-
}
|
|
11904
|
-
],
|
|
11905
|
-
"default": null
|
|
11906
|
-
},
|
|
11907
|
-
"tools": {
|
|
11908
|
-
"anyOf": [
|
|
11909
|
-
{
|
|
11910
|
-
"items": {
|
|
11911
|
-
"type": "string"
|
|
11912
|
-
},
|
|
11913
|
-
"type": "array"
|
|
11914
|
-
},
|
|
11915
|
-
{
|
|
11916
|
-
"type": "null"
|
|
11917
|
-
}
|
|
11918
|
-
],
|
|
11919
|
-
"default": null,
|
|
11920
|
-
"title": "Tools"
|
|
11921
|
-
},
|
|
11922
|
-
"turn_id": {
|
|
11923
|
-
"anyOf": [
|
|
11924
|
-
{
|
|
11925
|
-
"type": "string"
|
|
11926
|
-
},
|
|
11927
|
-
{
|
|
11928
|
-
"type": "null"
|
|
11929
|
-
}
|
|
11930
|
-
],
|
|
11931
|
-
"default": null,
|
|
11932
|
-
"description": "Turn containing this record, when applicable.",
|
|
11933
|
-
"title": "Turn Id"
|
|
11934
|
-
}
|
|
11935
|
-
},
|
|
11936
|
-
"required": [
|
|
11937
|
-
"cost",
|
|
11938
|
-
"created_at",
|
|
11939
|
-
"duration",
|
|
11940
|
-
"feed_seq",
|
|
11941
|
-
"id",
|
|
11942
|
-
"kind",
|
|
11943
|
-
"model",
|
|
11944
|
-
"payload",
|
|
11945
|
-
"record_format",
|
|
11946
|
-
"record_type",
|
|
11947
|
-
"session_id",
|
|
11948
|
-
"session_message_id",
|
|
11949
|
-
"source",
|
|
11950
|
-
"tokens_info",
|
|
11951
|
-
"tools",
|
|
11952
|
-
"turn_id"
|
|
11953
|
-
],
|
|
11954
|
-
"title": "TurnStartedRecord",
|
|
11955
|
-
"type": "object",
|
|
11956
|
-
"x-ellipsis-preserve-payload": true
|
|
11957
|
-
},
|
|
11958
|
-
"TurnStatus": {
|
|
11959
|
-
"description": "Where one turn is: waiting, preparing, being answered, or over.\n\n`queued` turns wait to start, behind another turn or for a free session\nslot on the account. `preparing` turns wait while the environment is set\nup. `stopped` and `cancelled` are their own outcomes; `reason` explains a\n`failed` or `cancelled` turn.",
|
|
11960
|
-
"enum": [
|
|
11961
|
-
"queued",
|
|
11962
|
-
"preparing",
|
|
11963
|
-
"running",
|
|
11964
|
-
"completed",
|
|
11965
|
-
"failed",
|
|
11966
|
-
"stopped",
|
|
11967
|
-
"cancelled"
|
|
11968
|
-
],
|
|
11969
|
-
"title": "TurnStatus",
|
|
11970
|
-
"type": "string"
|
|
11971
|
-
},
|
|
11972
|
-
"UnknownSessionRecord": {
|
|
11973
|
-
"description": "Unrecognized or unparseable payload; the complete original stays readable.",
|
|
11974
|
-
"properties": {
|
|
11975
|
-
"cost": {
|
|
11976
|
-
"anyOf": [
|
|
11977
|
-
{
|
|
11978
|
-
"type": "integer"
|
|
11979
|
-
},
|
|
11980
|
-
{
|
|
11981
|
-
"type": "null"
|
|
11982
|
-
}
|
|
11983
|
-
],
|
|
11984
|
-
"default": null,
|
|
11985
|
-
"title": "Cost"
|
|
11986
|
-
},
|
|
11987
|
-
"created_at": {
|
|
11988
|
-
"format": "date-time",
|
|
11989
|
-
"title": "Created At",
|
|
11990
|
-
"type": "string"
|
|
11991
|
-
},
|
|
11992
|
-
"duration": {
|
|
11993
|
-
"anyOf": [
|
|
11994
|
-
{
|
|
11995
|
-
"type": "integer"
|
|
11996
|
-
},
|
|
11997
|
-
{
|
|
11998
|
-
"type": "null"
|
|
11999
|
-
}
|
|
12000
|
-
],
|
|
12001
|
-
"default": null,
|
|
12002
|
-
"title": "Duration"
|
|
12003
|
-
},
|
|
12004
|
-
"feed_seq": {
|
|
12005
|
-
"description": "Position in the session feed and the stream's resume cursor.",
|
|
12006
|
-
"title": "Feed Seq",
|
|
12007
|
-
"type": "integer"
|
|
12008
|
-
},
|
|
12009
|
-
"id": {
|
|
12010
|
-
"description": "Unique identifier of the record.",
|
|
12011
|
-
"title": "Id",
|
|
12012
|
-
"type": "string"
|
|
12013
|
-
},
|
|
12014
|
-
"kind": {
|
|
12015
|
-
"const": "unknown",
|
|
12016
|
-
"default": "unknown",
|
|
12017
|
-
"title": "Kind",
|
|
12018
|
-
"type": "string"
|
|
12019
|
-
},
|
|
12020
|
-
"model": {
|
|
12021
|
-
"anyOf": [
|
|
12022
|
-
{
|
|
12023
|
-
"type": "string"
|
|
12024
|
-
},
|
|
12025
|
-
{
|
|
12026
|
-
"type": "null"
|
|
12027
|
-
}
|
|
12028
|
-
],
|
|
12029
|
-
"default": null,
|
|
12030
|
-
"title": "Model"
|
|
12031
|
-
},
|
|
12032
|
-
"payload": {
|
|
12033
|
-
"additionalProperties": true,
|
|
12034
|
-
"title": "Payload",
|
|
12035
|
-
"type": "object"
|
|
12036
|
-
},
|
|
12037
|
-
"record_format": {
|
|
12038
|
-
"description": "Original versioned payload format.",
|
|
12039
|
-
"title": "Record Format",
|
|
12040
|
-
"type": "string"
|
|
12041
|
-
},
|
|
12042
|
-
"record_type": {
|
|
12043
|
-
"description": "Original record type within its format.",
|
|
12044
|
-
"title": "Record Type",
|
|
12045
|
-
"type": "string"
|
|
12046
|
-
},
|
|
12047
|
-
"session_id": {
|
|
12048
|
-
"description": "Session containing this record.",
|
|
12049
|
-
"title": "Session Id",
|
|
12050
|
-
"type": "string"
|
|
12051
|
-
},
|
|
12052
|
-
"session_message_id": {
|
|
12053
|
-
"anyOf": [
|
|
12054
|
-
{
|
|
12055
|
-
"type": "string"
|
|
12056
|
-
},
|
|
12057
|
-
{
|
|
12058
|
-
"type": "null"
|
|
12059
|
-
}
|
|
12060
|
-
],
|
|
12061
|
-
"default": null,
|
|
12062
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
12063
|
-
"title": "Session Message Id"
|
|
12064
|
-
},
|
|
12065
|
-
"source": {
|
|
12066
|
-
"description": "Original producer. Unknown producers remain readable as unknown records.",
|
|
12067
|
-
"title": "Source",
|
|
12068
|
-
"type": "string"
|
|
12069
|
-
},
|
|
12070
|
-
"tokens_info": {
|
|
12071
|
-
"anyOf": [
|
|
12072
|
-
{
|
|
12073
|
-
"$ref": "#/$defs/TokensInfo"
|
|
12074
|
-
},
|
|
12075
|
-
{
|
|
12076
|
-
"type": "null"
|
|
12077
|
-
}
|
|
12078
|
-
],
|
|
12079
|
-
"default": null
|
|
12080
|
-
},
|
|
12081
|
-
"tools": {
|
|
12082
|
-
"anyOf": [
|
|
12083
|
-
{
|
|
12084
|
-
"items": {
|
|
12085
|
-
"type": "string"
|
|
12086
|
-
},
|
|
12087
|
-
"type": "array"
|
|
12088
|
-
},
|
|
12089
|
-
{
|
|
12090
|
-
"type": "null"
|
|
12091
|
-
}
|
|
12092
|
-
],
|
|
12093
|
-
"default": null,
|
|
12094
|
-
"title": "Tools"
|
|
12095
|
-
},
|
|
12096
|
-
"turn_id": {
|
|
12097
|
-
"anyOf": [
|
|
12098
|
-
{
|
|
12099
|
-
"type": "string"
|
|
12100
|
-
},
|
|
12101
|
-
{
|
|
12102
|
-
"type": "null"
|
|
12103
|
-
}
|
|
12104
|
-
],
|
|
12105
|
-
"default": null,
|
|
12106
|
-
"description": "Turn containing this record, when applicable.",
|
|
12107
|
-
"title": "Turn Id"
|
|
12108
11683
|
}
|
|
12109
11684
|
},
|
|
12110
11685
|
"required": [
|
|
@@ -12114,16 +11689,15 @@
|
|
|
12114
11689
|
"feed_seq",
|
|
12115
11690
|
"id",
|
|
12116
11691
|
"kind",
|
|
11692
|
+
"message_id",
|
|
12117
11693
|
"model",
|
|
12118
11694
|
"payload",
|
|
12119
11695
|
"record_format",
|
|
12120
11696
|
"record_type",
|
|
12121
11697
|
"session_id",
|
|
12122
|
-
"session_message_id",
|
|
12123
11698
|
"source",
|
|
12124
11699
|
"tokens_info",
|
|
12125
|
-
"tools"
|
|
12126
|
-
"turn_id"
|
|
11700
|
+
"tools"
|
|
12127
11701
|
],
|
|
12128
11702
|
"title": "UnknownSessionRecord",
|
|
12129
11703
|
"type": "object",
|
|
@@ -12155,13 +11729,10 @@
|
|
|
12155
11729
|
"description": "One server-to-client frame of the Ellipsis session stream (WS /v1/sessions/{id}/stream). Clients ignore frames with unknown `type` values.",
|
|
12156
11730
|
"oneOf": [
|
|
12157
11731
|
{
|
|
12158
|
-
"$ref": "#/$defs/
|
|
11732
|
+
"$ref": "#/$defs/SessionFrame"
|
|
12159
11733
|
},
|
|
12160
11734
|
{
|
|
12161
|
-
"$ref": "#/$defs/
|
|
12162
|
-
},
|
|
12163
|
-
{
|
|
12164
|
-
"$ref": "#/$defs/SessionFrame"
|
|
11735
|
+
"$ref": "#/$defs/RecordsFrame"
|
|
12165
11736
|
},
|
|
12166
11737
|
{
|
|
12167
11738
|
"$ref": "#/$defs/DeltaFrame"
|
|
@@ -12169,9 +11740,6 @@
|
|
|
12169
11740
|
{
|
|
12170
11741
|
"$ref": "#/$defs/HeartbeatFrame"
|
|
12171
11742
|
},
|
|
12172
|
-
{
|
|
12173
|
-
"$ref": "#/$defs/DoneFrame"
|
|
12174
|
-
},
|
|
12175
11743
|
{
|
|
12176
11744
|
"$ref": "#/$defs/ErrorFrame"
|
|
12177
11745
|
}
|