@ellipsis-dev/sdk 0.35.0 → 0.37.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 +56 -175
- package/dist/index.js +38 -82
- package/dist/store/index.d.ts +14 -25
- package/dist/store/index.js +228 -284
- package/dist/stream/index.d.ts +2 -3
- package/dist/stream/index.js +11 -22
- package/dist/{types-BrLpRRde.d.ts → types-BXbnHOQe.d.ts} +844 -1555
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +87 -211
- package/schema/frames.schema.json +842 -1496
- package/schema/lifecycle.schema.json +389 -150
- package/schema/openapi.v1.json +761 -1619
package/schema/openapi.v1.json
CHANGED
|
@@ -2226,7 +2226,7 @@
|
|
|
2226
2226
|
"type": "null"
|
|
2227
2227
|
}
|
|
2228
2228
|
],
|
|
2229
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
2229
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
2230
2230
|
"title": "Prompt"
|
|
2231
2231
|
},
|
|
2232
2232
|
"settings": {
|
|
@@ -2297,7 +2297,7 @@
|
|
|
2297
2297
|
"type": "null"
|
|
2298
2298
|
}
|
|
2299
2299
|
],
|
|
2300
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
2300
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
2301
2301
|
"title": "Prompt"
|
|
2302
2302
|
},
|
|
2303
2303
|
"settings": {
|
|
@@ -2411,6 +2411,18 @@
|
|
|
2411
2411
|
"title": "Kind",
|
|
2412
2412
|
"type": "string"
|
|
2413
2413
|
},
|
|
2414
|
+
"message_id": {
|
|
2415
|
+
"anyOf": [
|
|
2416
|
+
{
|
|
2417
|
+
"type": "string"
|
|
2418
|
+
},
|
|
2419
|
+
{
|
|
2420
|
+
"type": "null"
|
|
2421
|
+
}
|
|
2422
|
+
],
|
|
2423
|
+
"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.",
|
|
2424
|
+
"title": "Message Id"
|
|
2425
|
+
},
|
|
2414
2426
|
"model": {
|
|
2415
2427
|
"anyOf": [
|
|
2416
2428
|
{
|
|
@@ -2472,18 +2484,6 @@
|
|
|
2472
2484
|
"title": "Session Id",
|
|
2473
2485
|
"type": "string"
|
|
2474
2486
|
},
|
|
2475
|
-
"session_message_id": {
|
|
2476
|
-
"anyOf": [
|
|
2477
|
-
{
|
|
2478
|
-
"type": "string"
|
|
2479
|
-
},
|
|
2480
|
-
{
|
|
2481
|
-
"type": "null"
|
|
2482
|
-
}
|
|
2483
|
-
],
|
|
2484
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
2485
|
-
"title": "Session Message Id"
|
|
2486
|
-
},
|
|
2487
2487
|
"source": {
|
|
2488
2488
|
"const": "claude_code",
|
|
2489
2489
|
"default": "claude_code",
|
|
@@ -2513,25 +2513,12 @@
|
|
|
2513
2513
|
}
|
|
2514
2514
|
],
|
|
2515
2515
|
"title": "Tools"
|
|
2516
|
-
},
|
|
2517
|
-
"turn_id": {
|
|
2518
|
-
"anyOf": [
|
|
2519
|
-
{
|
|
2520
|
-
"type": "string"
|
|
2521
|
-
},
|
|
2522
|
-
{
|
|
2523
|
-
"type": "null"
|
|
2524
|
-
}
|
|
2525
|
-
],
|
|
2526
|
-
"description": "Turn containing this record, when applicable.",
|
|
2527
|
-
"title": "Turn Id"
|
|
2528
2516
|
}
|
|
2529
2517
|
},
|
|
2530
2518
|
"required": [
|
|
2531
2519
|
"id",
|
|
2532
2520
|
"session_id",
|
|
2533
|
-
"
|
|
2534
|
-
"session_message_id",
|
|
2521
|
+
"message_id",
|
|
2535
2522
|
"feed_seq",
|
|
2536
2523
|
"source",
|
|
2537
2524
|
"record_type",
|
|
@@ -2646,7 +2633,7 @@
|
|
|
2646
2633
|
"type": "null"
|
|
2647
2634
|
}
|
|
2648
2635
|
],
|
|
2649
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
2636
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
2650
2637
|
"title": "Prompt"
|
|
2651
2638
|
},
|
|
2652
2639
|
"settings": {
|
|
@@ -2966,6 +2953,18 @@
|
|
|
2966
2953
|
"title": "Kind",
|
|
2967
2954
|
"type": "string"
|
|
2968
2955
|
},
|
|
2956
|
+
"message_id": {
|
|
2957
|
+
"anyOf": [
|
|
2958
|
+
{
|
|
2959
|
+
"type": "string"
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
"type": "null"
|
|
2963
|
+
}
|
|
2964
|
+
],
|
|
2965
|
+
"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.",
|
|
2966
|
+
"title": "Message Id"
|
|
2967
|
+
},
|
|
2969
2968
|
"model": {
|
|
2970
2969
|
"anyOf": [
|
|
2971
2970
|
{
|
|
@@ -3023,18 +3022,6 @@
|
|
|
3023
3022
|
"title": "Session Id",
|
|
3024
3023
|
"type": "string"
|
|
3025
3024
|
},
|
|
3026
|
-
"session_message_id": {
|
|
3027
|
-
"anyOf": [
|
|
3028
|
-
{
|
|
3029
|
-
"type": "string"
|
|
3030
|
-
},
|
|
3031
|
-
{
|
|
3032
|
-
"type": "null"
|
|
3033
|
-
}
|
|
3034
|
-
],
|
|
3035
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
3036
|
-
"title": "Session Message Id"
|
|
3037
|
-
},
|
|
3038
3025
|
"source": {
|
|
3039
3026
|
"const": "claude_code",
|
|
3040
3027
|
"default": "claude_code",
|
|
@@ -3064,25 +3051,12 @@
|
|
|
3064
3051
|
}
|
|
3065
3052
|
],
|
|
3066
3053
|
"title": "Tools"
|
|
3067
|
-
},
|
|
3068
|
-
"turn_id": {
|
|
3069
|
-
"anyOf": [
|
|
3070
|
-
{
|
|
3071
|
-
"type": "string"
|
|
3072
|
-
},
|
|
3073
|
-
{
|
|
3074
|
-
"type": "null"
|
|
3075
|
-
}
|
|
3076
|
-
],
|
|
3077
|
-
"description": "Turn containing this record, when applicable.",
|
|
3078
|
-
"title": "Turn Id"
|
|
3079
3054
|
}
|
|
3080
3055
|
},
|
|
3081
3056
|
"required": [
|
|
3082
3057
|
"id",
|
|
3083
3058
|
"session_id",
|
|
3084
|
-
"
|
|
3085
|
-
"session_message_id",
|
|
3059
|
+
"message_id",
|
|
3086
3060
|
"feed_seq",
|
|
3087
3061
|
"source",
|
|
3088
3062
|
"record_type",
|
|
@@ -3570,12 +3544,14 @@
|
|
|
3570
3544
|
"discriminator": {
|
|
3571
3545
|
"mapping": {
|
|
3572
3546
|
"agentMessage": "#/components/schemas/CodexAgentMessage",
|
|
3547
|
+
"collabAgentToolCall": "#/components/schemas/CodexCollabAgentToolCall",
|
|
3573
3548
|
"commandExecution": "#/components/schemas/CodexCommandExecution",
|
|
3574
3549
|
"contextCompaction": "#/components/schemas/CodexContextCompaction",
|
|
3575
3550
|
"fileChange": "#/components/schemas/CodexFileChange",
|
|
3576
3551
|
"mcpToolCall": "#/components/schemas/CodexMcpToolCall",
|
|
3577
3552
|
"plan": "#/components/schemas/CodexPlan",
|
|
3578
3553
|
"reasoning": "#/components/schemas/CodexReasoning",
|
|
3554
|
+
"subAgentActivity": "#/components/schemas/CodexSubAgentActivity",
|
|
3579
3555
|
"userMessage": "#/components/schemas/CodexUserMessage",
|
|
3580
3556
|
"webSearch": "#/components/schemas/CodexWebSearch"
|
|
3581
3557
|
},
|
|
@@ -3608,6 +3584,12 @@
|
|
|
3608
3584
|
},
|
|
3609
3585
|
{
|
|
3610
3586
|
"$ref": "#/components/schemas/CodexContextCompaction"
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
"$ref": "#/components/schemas/CodexSubAgentActivity"
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
"$ref": "#/components/schemas/CodexCollabAgentToolCall"
|
|
3611
3593
|
}
|
|
3612
3594
|
]
|
|
3613
3595
|
},
|
|
@@ -3693,6 +3675,18 @@
|
|
|
3693
3675
|
"title": "Kind",
|
|
3694
3676
|
"type": "string"
|
|
3695
3677
|
},
|
|
3678
|
+
"message_id": {
|
|
3679
|
+
"anyOf": [
|
|
3680
|
+
{
|
|
3681
|
+
"type": "string"
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
"type": "null"
|
|
3685
|
+
}
|
|
3686
|
+
],
|
|
3687
|
+
"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.",
|
|
3688
|
+
"title": "Message Id"
|
|
3689
|
+
},
|
|
3696
3690
|
"model": {
|
|
3697
3691
|
"anyOf": [
|
|
3698
3692
|
{
|
|
@@ -3723,18 +3717,6 @@
|
|
|
3723
3717
|
"title": "Session Id",
|
|
3724
3718
|
"type": "string"
|
|
3725
3719
|
},
|
|
3726
|
-
"session_message_id": {
|
|
3727
|
-
"anyOf": [
|
|
3728
|
-
{
|
|
3729
|
-
"type": "string"
|
|
3730
|
-
},
|
|
3731
|
-
{
|
|
3732
|
-
"type": "null"
|
|
3733
|
-
}
|
|
3734
|
-
],
|
|
3735
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
3736
|
-
"title": "Session Message Id"
|
|
3737
|
-
},
|
|
3738
3720
|
"source": {
|
|
3739
3721
|
"const": "codex",
|
|
3740
3722
|
"default": "codex",
|
|
@@ -3764,25 +3746,12 @@
|
|
|
3764
3746
|
}
|
|
3765
3747
|
],
|
|
3766
3748
|
"title": "Tools"
|
|
3767
|
-
},
|
|
3768
|
-
"turn_id": {
|
|
3769
|
-
"anyOf": [
|
|
3770
|
-
{
|
|
3771
|
-
"type": "string"
|
|
3772
|
-
},
|
|
3773
|
-
{
|
|
3774
|
-
"type": "null"
|
|
3775
|
-
}
|
|
3776
|
-
],
|
|
3777
|
-
"description": "Turn containing this record, when applicable.",
|
|
3778
|
-
"title": "Turn Id"
|
|
3779
3749
|
}
|
|
3780
3750
|
},
|
|
3781
3751
|
"required": [
|
|
3782
3752
|
"id",
|
|
3783
3753
|
"session_id",
|
|
3784
|
-
"
|
|
3785
|
-
"session_message_id",
|
|
3754
|
+
"message_id",
|
|
3786
3755
|
"feed_seq",
|
|
3787
3756
|
"source",
|
|
3788
3757
|
"record_type",
|
|
@@ -3800,6 +3769,66 @@
|
|
|
3800
3769
|
"type": "object",
|
|
3801
3770
|
"x-ellipsis-preserve-payload": true
|
|
3802
3771
|
},
|
|
3772
|
+
"CodexCollabAgentToolCall": {
|
|
3773
|
+
"additionalProperties": true,
|
|
3774
|
+
"properties": {
|
|
3775
|
+
"id": {
|
|
3776
|
+
"title": "Id",
|
|
3777
|
+
"type": "string"
|
|
3778
|
+
},
|
|
3779
|
+
"prompt": {
|
|
3780
|
+
"anyOf": [
|
|
3781
|
+
{
|
|
3782
|
+
"type": "string"
|
|
3783
|
+
},
|
|
3784
|
+
{
|
|
3785
|
+
"type": "null"
|
|
3786
|
+
}
|
|
3787
|
+
],
|
|
3788
|
+
"title": "Prompt"
|
|
3789
|
+
},
|
|
3790
|
+
"receiverThreadIds": {
|
|
3791
|
+
"items": {
|
|
3792
|
+
"type": "string"
|
|
3793
|
+
},
|
|
3794
|
+
"title": "Receiverthreadids",
|
|
3795
|
+
"type": "array"
|
|
3796
|
+
},
|
|
3797
|
+
"senderThreadId": {
|
|
3798
|
+
"title": "Senderthreadid",
|
|
3799
|
+
"type": "string"
|
|
3800
|
+
},
|
|
3801
|
+
"status": {
|
|
3802
|
+
"enum": [
|
|
3803
|
+
"inProgress",
|
|
3804
|
+
"completed",
|
|
3805
|
+
"failed"
|
|
3806
|
+
],
|
|
3807
|
+
"title": "Status",
|
|
3808
|
+
"type": "string"
|
|
3809
|
+
},
|
|
3810
|
+
"tool": {
|
|
3811
|
+
"title": "Tool",
|
|
3812
|
+
"type": "string"
|
|
3813
|
+
},
|
|
3814
|
+
"type": {
|
|
3815
|
+
"const": "collabAgentToolCall",
|
|
3816
|
+
"default": "collabAgentToolCall",
|
|
3817
|
+
"title": "Type",
|
|
3818
|
+
"type": "string"
|
|
3819
|
+
}
|
|
3820
|
+
},
|
|
3821
|
+
"required": [
|
|
3822
|
+
"id",
|
|
3823
|
+
"receiverThreadIds",
|
|
3824
|
+
"senderThreadId",
|
|
3825
|
+
"status",
|
|
3826
|
+
"tool",
|
|
3827
|
+
"type"
|
|
3828
|
+
],
|
|
3829
|
+
"title": "CodexCollabAgentToolCall",
|
|
3830
|
+
"type": "object"
|
|
3831
|
+
},
|
|
3803
3832
|
"CodexCommandExecution": {
|
|
3804
3833
|
"additionalProperties": true,
|
|
3805
3834
|
"properties": {
|
|
@@ -3973,7 +4002,7 @@
|
|
|
3973
4002
|
"type": "null"
|
|
3974
4003
|
}
|
|
3975
4004
|
],
|
|
3976
|
-
"description": "Reasoning effort for every
|
|
4005
|
+
"description": "Reasoning effort for every message. Omit to use the model default."
|
|
3977
4006
|
},
|
|
3978
4007
|
"model": {
|
|
3979
4008
|
"description": "The model the session runs on: a Responses-capable id from the models table. Required.",
|
|
@@ -3989,7 +4018,7 @@
|
|
|
3989
4018
|
"type": "null"
|
|
3990
4019
|
}
|
|
3991
4020
|
],
|
|
3992
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
4021
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
3993
4022
|
"title": "Prompt"
|
|
3994
4023
|
}
|
|
3995
4024
|
},
|
|
@@ -4012,7 +4041,7 @@
|
|
|
4012
4041
|
"type": "null"
|
|
4013
4042
|
}
|
|
4014
4043
|
],
|
|
4015
|
-
"description": "Reasoning effort for every
|
|
4044
|
+
"description": "Reasoning effort for every message. Omit to use the model default."
|
|
4016
4045
|
},
|
|
4017
4046
|
"model": {
|
|
4018
4047
|
"description": "The model the session runs on: a Responses-capable id from the models table. Required.",
|
|
@@ -4028,7 +4057,7 @@
|
|
|
4028
4057
|
"type": "null"
|
|
4029
4058
|
}
|
|
4030
4059
|
],
|
|
4031
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
4060
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
4032
4061
|
"title": "Prompt"
|
|
4033
4062
|
}
|
|
4034
4063
|
},
|
|
@@ -4836,7 +4865,7 @@
|
|
|
4836
4865
|
"type": "null"
|
|
4837
4866
|
}
|
|
4838
4867
|
],
|
|
4839
|
-
"description": "Reasoning effort for every
|
|
4868
|
+
"description": "Reasoning effort for every message. Omit to use the model default."
|
|
4840
4869
|
},
|
|
4841
4870
|
"model": {
|
|
4842
4871
|
"anyOf": [
|
|
@@ -4858,7 +4887,7 @@
|
|
|
4858
4887
|
"type": "null"
|
|
4859
4888
|
}
|
|
4860
4889
|
],
|
|
4861
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
4890
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
4862
4891
|
"title": "Prompt"
|
|
4863
4892
|
}
|
|
4864
4893
|
},
|
|
@@ -5022,6 +5051,18 @@
|
|
|
5022
5051
|
"title": "Kind",
|
|
5023
5052
|
"type": "string"
|
|
5024
5053
|
},
|
|
5054
|
+
"message_id": {
|
|
5055
|
+
"anyOf": [
|
|
5056
|
+
{
|
|
5057
|
+
"type": "string"
|
|
5058
|
+
},
|
|
5059
|
+
{
|
|
5060
|
+
"type": "null"
|
|
5061
|
+
}
|
|
5062
|
+
],
|
|
5063
|
+
"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.",
|
|
5064
|
+
"title": "Message Id"
|
|
5065
|
+
},
|
|
5025
5066
|
"model": {
|
|
5026
5067
|
"anyOf": [
|
|
5027
5068
|
{
|
|
@@ -5091,18 +5132,6 @@
|
|
|
5091
5132
|
"title": "Session Id",
|
|
5092
5133
|
"type": "string"
|
|
5093
5134
|
},
|
|
5094
|
-
"session_message_id": {
|
|
5095
|
-
"anyOf": [
|
|
5096
|
-
{
|
|
5097
|
-
"type": "string"
|
|
5098
|
-
},
|
|
5099
|
-
{
|
|
5100
|
-
"type": "null"
|
|
5101
|
-
}
|
|
5102
|
-
],
|
|
5103
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
5104
|
-
"title": "Session Message Id"
|
|
5105
|
-
},
|
|
5106
5135
|
"source": {
|
|
5107
5136
|
"const": "codex",
|
|
5108
5137
|
"default": "codex",
|
|
@@ -5132,25 +5161,12 @@
|
|
|
5132
5161
|
}
|
|
5133
5162
|
],
|
|
5134
5163
|
"title": "Tools"
|
|
5135
|
-
},
|
|
5136
|
-
"turn_id": {
|
|
5137
|
-
"anyOf": [
|
|
5138
|
-
{
|
|
5139
|
-
"type": "string"
|
|
5140
|
-
},
|
|
5141
|
-
{
|
|
5142
|
-
"type": "null"
|
|
5143
|
-
}
|
|
5144
|
-
],
|
|
5145
|
-
"description": "Turn containing this record, when applicable.",
|
|
5146
|
-
"title": "Turn Id"
|
|
5147
5164
|
}
|
|
5148
5165
|
},
|
|
5149
5166
|
"required": [
|
|
5150
5167
|
"id",
|
|
5151
5168
|
"session_id",
|
|
5152
|
-
"
|
|
5153
|
-
"session_message_id",
|
|
5169
|
+
"message_id",
|
|
5154
5170
|
"feed_seq",
|
|
5155
5171
|
"source",
|
|
5156
5172
|
"record_type",
|
|
@@ -5168,6 +5184,49 @@
|
|
|
5168
5184
|
"type": "object",
|
|
5169
5185
|
"x-ellipsis-preserve-payload": true
|
|
5170
5186
|
},
|
|
5187
|
+
"CodexSubAgentActivity": {
|
|
5188
|
+
"additionalProperties": true,
|
|
5189
|
+
"description": "A subagent's spawn or completion, recorded on the spawning thread.",
|
|
5190
|
+
"properties": {
|
|
5191
|
+
"agentPath": {
|
|
5192
|
+
"anyOf": [
|
|
5193
|
+
{
|
|
5194
|
+
"type": "string"
|
|
5195
|
+
},
|
|
5196
|
+
{
|
|
5197
|
+
"type": "null"
|
|
5198
|
+
}
|
|
5199
|
+
],
|
|
5200
|
+
"title": "Agentpath"
|
|
5201
|
+
},
|
|
5202
|
+
"agentThreadId": {
|
|
5203
|
+
"title": "Agentthreadid",
|
|
5204
|
+
"type": "string"
|
|
5205
|
+
},
|
|
5206
|
+
"id": {
|
|
5207
|
+
"title": "Id",
|
|
5208
|
+
"type": "string"
|
|
5209
|
+
},
|
|
5210
|
+
"kind": {
|
|
5211
|
+
"title": "Kind",
|
|
5212
|
+
"type": "string"
|
|
5213
|
+
},
|
|
5214
|
+
"type": {
|
|
5215
|
+
"const": "subAgentActivity",
|
|
5216
|
+
"default": "subAgentActivity",
|
|
5217
|
+
"title": "Type",
|
|
5218
|
+
"type": "string"
|
|
5219
|
+
}
|
|
5220
|
+
},
|
|
5221
|
+
"required": [
|
|
5222
|
+
"agentThreadId",
|
|
5223
|
+
"id",
|
|
5224
|
+
"kind",
|
|
5225
|
+
"type"
|
|
5226
|
+
],
|
|
5227
|
+
"title": "CodexSubAgentActivity",
|
|
5228
|
+
"type": "object"
|
|
5229
|
+
},
|
|
5171
5230
|
"CodexTextInput": {
|
|
5172
5231
|
"additionalProperties": true,
|
|
5173
5232
|
"properties": {
|
|
@@ -7703,7 +7762,7 @@
|
|
|
7703
7762
|
},
|
|
7704
7763
|
"EnvironmentOutputPayload": {
|
|
7705
7764
|
"additionalProperties": true,
|
|
7706
|
-
"description": "environment_output: one chunk of output from preparing the environment,\nincluding the customer's own hooks. Many fire per
|
|
7765
|
+
"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.",
|
|
7707
7766
|
"properties": {
|
|
7708
7767
|
"chunk": {
|
|
7709
7768
|
"title": "Chunk",
|
|
@@ -7790,6 +7849,18 @@
|
|
|
7790
7849
|
"title": "Kind",
|
|
7791
7850
|
"type": "string"
|
|
7792
7851
|
},
|
|
7852
|
+
"message_id": {
|
|
7853
|
+
"anyOf": [
|
|
7854
|
+
{
|
|
7855
|
+
"type": "string"
|
|
7856
|
+
},
|
|
7857
|
+
{
|
|
7858
|
+
"type": "null"
|
|
7859
|
+
}
|
|
7860
|
+
],
|
|
7861
|
+
"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.",
|
|
7862
|
+
"title": "Message Id"
|
|
7863
|
+
},
|
|
7793
7864
|
"model": {
|
|
7794
7865
|
"anyOf": [
|
|
7795
7866
|
{
|
|
@@ -7821,18 +7892,6 @@
|
|
|
7821
7892
|
"title": "Session Id",
|
|
7822
7893
|
"type": "string"
|
|
7823
7894
|
},
|
|
7824
|
-
"session_message_id": {
|
|
7825
|
-
"anyOf": [
|
|
7826
|
-
{
|
|
7827
|
-
"type": "string"
|
|
7828
|
-
},
|
|
7829
|
-
{
|
|
7830
|
-
"type": "null"
|
|
7831
|
-
}
|
|
7832
|
-
],
|
|
7833
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
7834
|
-
"title": "Session Message Id"
|
|
7835
|
-
},
|
|
7836
7895
|
"source": {
|
|
7837
7896
|
"const": "lifecycle",
|
|
7838
7897
|
"default": "lifecycle",
|
|
@@ -7862,25 +7921,12 @@
|
|
|
7862
7921
|
}
|
|
7863
7922
|
],
|
|
7864
7923
|
"title": "Tools"
|
|
7865
|
-
},
|
|
7866
|
-
"turn_id": {
|
|
7867
|
-
"anyOf": [
|
|
7868
|
-
{
|
|
7869
|
-
"type": "string"
|
|
7870
|
-
},
|
|
7871
|
-
{
|
|
7872
|
-
"type": "null"
|
|
7873
|
-
}
|
|
7874
|
-
],
|
|
7875
|
-
"description": "Turn containing this record, when applicable.",
|
|
7876
|
-
"title": "Turn Id"
|
|
7877
7924
|
}
|
|
7878
7925
|
},
|
|
7879
7926
|
"required": [
|
|
7880
7927
|
"id",
|
|
7881
7928
|
"session_id",
|
|
7882
|
-
"
|
|
7883
|
-
"session_message_id",
|
|
7929
|
+
"message_id",
|
|
7884
7930
|
"feed_seq",
|
|
7885
7931
|
"source",
|
|
7886
7932
|
"record_type",
|
|
@@ -7997,6 +8043,18 @@
|
|
|
7997
8043
|
"title": "Kind",
|
|
7998
8044
|
"type": "string"
|
|
7999
8045
|
},
|
|
8046
|
+
"message_id": {
|
|
8047
|
+
"anyOf": [
|
|
8048
|
+
{
|
|
8049
|
+
"type": "string"
|
|
8050
|
+
},
|
|
8051
|
+
{
|
|
8052
|
+
"type": "null"
|
|
8053
|
+
}
|
|
8054
|
+
],
|
|
8055
|
+
"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.",
|
|
8056
|
+
"title": "Message Id"
|
|
8057
|
+
},
|
|
8000
8058
|
"model": {
|
|
8001
8059
|
"anyOf": [
|
|
8002
8060
|
{
|
|
@@ -8028,18 +8086,6 @@
|
|
|
8028
8086
|
"title": "Session Id",
|
|
8029
8087
|
"type": "string"
|
|
8030
8088
|
},
|
|
8031
|
-
"session_message_id": {
|
|
8032
|
-
"anyOf": [
|
|
8033
|
-
{
|
|
8034
|
-
"type": "string"
|
|
8035
|
-
},
|
|
8036
|
-
{
|
|
8037
|
-
"type": "null"
|
|
8038
|
-
}
|
|
8039
|
-
],
|
|
8040
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
8041
|
-
"title": "Session Message Id"
|
|
8042
|
-
},
|
|
8043
8089
|
"source": {
|
|
8044
8090
|
"const": "lifecycle",
|
|
8045
8091
|
"default": "lifecycle",
|
|
@@ -8069,25 +8115,12 @@
|
|
|
8069
8115
|
}
|
|
8070
8116
|
],
|
|
8071
8117
|
"title": "Tools"
|
|
8072
|
-
},
|
|
8073
|
-
"turn_id": {
|
|
8074
|
-
"anyOf": [
|
|
8075
|
-
{
|
|
8076
|
-
"type": "string"
|
|
8077
|
-
},
|
|
8078
|
-
{
|
|
8079
|
-
"type": "null"
|
|
8080
|
-
}
|
|
8081
|
-
],
|
|
8082
|
-
"description": "Turn containing this record, when applicable.",
|
|
8083
|
-
"title": "Turn Id"
|
|
8084
8118
|
}
|
|
8085
8119
|
},
|
|
8086
8120
|
"required": [
|
|
8087
8121
|
"id",
|
|
8088
8122
|
"session_id",
|
|
8089
|
-
"
|
|
8090
|
-
"session_message_id",
|
|
8123
|
+
"message_id",
|
|
8091
8124
|
"feed_seq",
|
|
8092
8125
|
"source",
|
|
8093
8126
|
"record_type",
|
|
@@ -8179,6 +8212,18 @@
|
|
|
8179
8212
|
"title": "Kind",
|
|
8180
8213
|
"type": "string"
|
|
8181
8214
|
},
|
|
8215
|
+
"message_id": {
|
|
8216
|
+
"anyOf": [
|
|
8217
|
+
{
|
|
8218
|
+
"type": "string"
|
|
8219
|
+
},
|
|
8220
|
+
{
|
|
8221
|
+
"type": "null"
|
|
8222
|
+
}
|
|
8223
|
+
],
|
|
8224
|
+
"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.",
|
|
8225
|
+
"title": "Message Id"
|
|
8226
|
+
},
|
|
8182
8227
|
"model": {
|
|
8183
8228
|
"anyOf": [
|
|
8184
8229
|
{
|
|
@@ -8210,18 +8255,6 @@
|
|
|
8210
8255
|
"title": "Session Id",
|
|
8211
8256
|
"type": "string"
|
|
8212
8257
|
},
|
|
8213
|
-
"session_message_id": {
|
|
8214
|
-
"anyOf": [
|
|
8215
|
-
{
|
|
8216
|
-
"type": "string"
|
|
8217
|
-
},
|
|
8218
|
-
{
|
|
8219
|
-
"type": "null"
|
|
8220
|
-
}
|
|
8221
|
-
],
|
|
8222
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
8223
|
-
"title": "Session Message Id"
|
|
8224
|
-
},
|
|
8225
8258
|
"source": {
|
|
8226
8259
|
"const": "lifecycle",
|
|
8227
8260
|
"default": "lifecycle",
|
|
@@ -8251,25 +8284,12 @@
|
|
|
8251
8284
|
}
|
|
8252
8285
|
],
|
|
8253
8286
|
"title": "Tools"
|
|
8254
|
-
},
|
|
8255
|
-
"turn_id": {
|
|
8256
|
-
"anyOf": [
|
|
8257
|
-
{
|
|
8258
|
-
"type": "string"
|
|
8259
|
-
},
|
|
8260
|
-
{
|
|
8261
|
-
"type": "null"
|
|
8262
|
-
}
|
|
8263
|
-
],
|
|
8264
|
-
"description": "Turn containing this record, when applicable.",
|
|
8265
|
-
"title": "Turn Id"
|
|
8266
8287
|
}
|
|
8267
8288
|
},
|
|
8268
8289
|
"required": [
|
|
8269
8290
|
"id",
|
|
8270
8291
|
"session_id",
|
|
8271
|
-
"
|
|
8272
|
-
"session_message_id",
|
|
8292
|
+
"message_id",
|
|
8273
8293
|
"feed_seq",
|
|
8274
8294
|
"source",
|
|
8275
8295
|
"record_type",
|
|
@@ -8433,6 +8453,30 @@
|
|
|
8433
8453
|
"title": "ErrorInfo",
|
|
8434
8454
|
"type": "object"
|
|
8435
8455
|
},
|
|
8456
|
+
"ErrorReason": {
|
|
8457
|
+
"description": "Why a message failed, was stopped, or was cancelled.",
|
|
8458
|
+
"enum": [
|
|
8459
|
+
"error",
|
|
8460
|
+
"tool_call_failed",
|
|
8461
|
+
"budget_hit",
|
|
8462
|
+
"payment_required",
|
|
8463
|
+
"blocked",
|
|
8464
|
+
"contact_email_required",
|
|
8465
|
+
"lifecycle_hook_failed",
|
|
8466
|
+
"missing_repo_access",
|
|
8467
|
+
"missing_token_permissions",
|
|
8468
|
+
"missing_environment_variables",
|
|
8469
|
+
"missing_github_integration",
|
|
8470
|
+
"agent_unavailable",
|
|
8471
|
+
"upstream_unavailable",
|
|
8472
|
+
"unsupported_configuration",
|
|
8473
|
+
"execution_disabled",
|
|
8474
|
+
"interrupted",
|
|
8475
|
+
"stopped"
|
|
8476
|
+
],
|
|
8477
|
+
"title": "ErrorReason",
|
|
8478
|
+
"type": "string"
|
|
8479
|
+
},
|
|
8436
8480
|
"ErrorResponse": {
|
|
8437
8481
|
"description": "The error envelope every /v1 error returns.",
|
|
8438
8482
|
"properties": {
|
|
@@ -8476,7 +8520,7 @@
|
|
|
8476
8520
|
"type": "null"
|
|
8477
8521
|
}
|
|
8478
8522
|
],
|
|
8479
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
8523
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
8480
8524
|
"title": "Prompt"
|
|
8481
8525
|
}
|
|
8482
8526
|
},
|
|
@@ -8504,7 +8548,7 @@
|
|
|
8504
8548
|
"type": "null"
|
|
8505
8549
|
}
|
|
8506
8550
|
],
|
|
8507
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
8551
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
8508
8552
|
"title": "Prompt"
|
|
8509
8553
|
}
|
|
8510
8554
|
},
|
|
@@ -8686,7 +8730,7 @@
|
|
|
8686
8730
|
"type": "null"
|
|
8687
8731
|
}
|
|
8688
8732
|
],
|
|
8689
|
-
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no
|
|
8733
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no message, waiting for one.",
|
|
8690
8734
|
"title": "Prompt"
|
|
8691
8735
|
}
|
|
8692
8736
|
},
|
|
@@ -8788,6 +8832,18 @@
|
|
|
8788
8832
|
"title": "Kind",
|
|
8789
8833
|
"type": "string"
|
|
8790
8834
|
},
|
|
8835
|
+
"message_id": {
|
|
8836
|
+
"anyOf": [
|
|
8837
|
+
{
|
|
8838
|
+
"type": "string"
|
|
8839
|
+
},
|
|
8840
|
+
{
|
|
8841
|
+
"type": "null"
|
|
8842
|
+
}
|
|
8843
|
+
],
|
|
8844
|
+
"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.",
|
|
8845
|
+
"title": "Message Id"
|
|
8846
|
+
},
|
|
8791
8847
|
"model": {
|
|
8792
8848
|
"anyOf": [
|
|
8793
8849
|
{
|
|
@@ -8818,18 +8874,6 @@
|
|
|
8818
8874
|
"title": "Session Id",
|
|
8819
8875
|
"type": "string"
|
|
8820
8876
|
},
|
|
8821
|
-
"session_message_id": {
|
|
8822
|
-
"anyOf": [
|
|
8823
|
-
{
|
|
8824
|
-
"type": "string"
|
|
8825
|
-
},
|
|
8826
|
-
{
|
|
8827
|
-
"type": "null"
|
|
8828
|
-
}
|
|
8829
|
-
],
|
|
8830
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
8831
|
-
"title": "Session Message Id"
|
|
8832
|
-
},
|
|
8833
8877
|
"source": {
|
|
8834
8878
|
"const": "gemini",
|
|
8835
8879
|
"default": "gemini",
|
|
@@ -8859,25 +8903,12 @@
|
|
|
8859
8903
|
}
|
|
8860
8904
|
],
|
|
8861
8905
|
"title": "Tools"
|
|
8862
|
-
},
|
|
8863
|
-
"turn_id": {
|
|
8864
|
-
"anyOf": [
|
|
8865
|
-
{
|
|
8866
|
-
"type": "string"
|
|
8867
|
-
},
|
|
8868
|
-
{
|
|
8869
|
-
"type": "null"
|
|
8870
|
-
}
|
|
8871
|
-
],
|
|
8872
|
-
"description": "Turn containing this record, when applicable.",
|
|
8873
|
-
"title": "Turn Id"
|
|
8874
8906
|
}
|
|
8875
8907
|
},
|
|
8876
8908
|
"required": [
|
|
8877
8909
|
"id",
|
|
8878
8910
|
"session_id",
|
|
8879
|
-
"
|
|
8880
|
-
"session_message_id",
|
|
8911
|
+
"message_id",
|
|
8881
8912
|
"feed_seq",
|
|
8882
8913
|
"source",
|
|
8883
8914
|
"record_type",
|
|
@@ -12936,27 +12967,54 @@
|
|
|
12936
12967
|
"title": "MentionSettings",
|
|
12937
12968
|
"type": "object"
|
|
12938
12969
|
},
|
|
12939
|
-
"
|
|
12970
|
+
"MessageEndedPayload": {
|
|
12940
12971
|
"additionalProperties": true,
|
|
12941
|
-
"description": "
|
|
12972
|
+
"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.",
|
|
12942
12973
|
"properties": {
|
|
12974
|
+
"cost": {
|
|
12975
|
+
"$ref": "#/components/schemas/Cost"
|
|
12976
|
+
},
|
|
12977
|
+
"duration_ms": {
|
|
12978
|
+
"anyOf": [
|
|
12979
|
+
{
|
|
12980
|
+
"type": "integer"
|
|
12981
|
+
},
|
|
12982
|
+
{
|
|
12983
|
+
"type": "null"
|
|
12984
|
+
}
|
|
12985
|
+
],
|
|
12986
|
+
"title": "Duration Ms"
|
|
12987
|
+
},
|
|
12988
|
+
"error": {
|
|
12989
|
+
"anyOf": [
|
|
12990
|
+
{
|
|
12991
|
+
"$ref": "#/components/schemas/SessionError"
|
|
12992
|
+
},
|
|
12993
|
+
{
|
|
12994
|
+
"type": "null"
|
|
12995
|
+
}
|
|
12996
|
+
]
|
|
12997
|
+
},
|
|
12943
12998
|
"message_id": {
|
|
12944
12999
|
"title": "Message Id",
|
|
12945
13000
|
"type": "string"
|
|
12946
13001
|
},
|
|
12947
|
-
"
|
|
12948
|
-
"title": "
|
|
13002
|
+
"status": {
|
|
13003
|
+
"title": "Status",
|
|
12949
13004
|
"type": "string"
|
|
13005
|
+
},
|
|
13006
|
+
"tokens": {
|
|
13007
|
+
"$ref": "#/components/schemas/Tokens"
|
|
12950
13008
|
}
|
|
12951
13009
|
},
|
|
12952
13010
|
"required": [
|
|
12953
13011
|
"message_id",
|
|
12954
|
-
"
|
|
13012
|
+
"status"
|
|
12955
13013
|
],
|
|
12956
|
-
"title": "
|
|
13014
|
+
"title": "MessageEndedPayload",
|
|
12957
13015
|
"type": "object"
|
|
12958
13016
|
},
|
|
12959
|
-
"
|
|
13017
|
+
"MessageEndedRecord": {
|
|
12960
13018
|
"properties": {
|
|
12961
13019
|
"cost": {
|
|
12962
13020
|
"anyOf": [
|
|
@@ -13001,6 +13059,18 @@
|
|
|
13001
13059
|
"title": "Kind",
|
|
13002
13060
|
"type": "string"
|
|
13003
13061
|
},
|
|
13062
|
+
"message_id": {
|
|
13063
|
+
"anyOf": [
|
|
13064
|
+
{
|
|
13065
|
+
"type": "string"
|
|
13066
|
+
},
|
|
13067
|
+
{
|
|
13068
|
+
"type": "null"
|
|
13069
|
+
}
|
|
13070
|
+
],
|
|
13071
|
+
"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.",
|
|
13072
|
+
"title": "Message Id"
|
|
13073
|
+
},
|
|
13004
13074
|
"model": {
|
|
13005
13075
|
"anyOf": [
|
|
13006
13076
|
{
|
|
@@ -13013,7 +13083,7 @@
|
|
|
13013
13083
|
"title": "Model"
|
|
13014
13084
|
},
|
|
13015
13085
|
"payload": {
|
|
13016
|
-
"$ref": "#/components/schemas/
|
|
13086
|
+
"$ref": "#/components/schemas/MessageEndedPayload"
|
|
13017
13087
|
},
|
|
13018
13088
|
"record_format": {
|
|
13019
13089
|
"const": "ellipsis_lifecycle@1",
|
|
@@ -13022,8 +13092,8 @@
|
|
|
13022
13092
|
"type": "string"
|
|
13023
13093
|
},
|
|
13024
13094
|
"record_type": {
|
|
13025
|
-
"const": "
|
|
13026
|
-
"default": "
|
|
13095
|
+
"const": "message_ended",
|
|
13096
|
+
"default": "message_ended",
|
|
13027
13097
|
"title": "Record Type",
|
|
13028
13098
|
"type": "string"
|
|
13029
13099
|
},
|
|
@@ -13032,18 +13102,6 @@
|
|
|
13032
13102
|
"title": "Session Id",
|
|
13033
13103
|
"type": "string"
|
|
13034
13104
|
},
|
|
13035
|
-
"session_message_id": {
|
|
13036
|
-
"anyOf": [
|
|
13037
|
-
{
|
|
13038
|
-
"type": "string"
|
|
13039
|
-
},
|
|
13040
|
-
{
|
|
13041
|
-
"type": "null"
|
|
13042
|
-
}
|
|
13043
|
-
],
|
|
13044
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
13045
|
-
"title": "Session Message Id"
|
|
13046
|
-
},
|
|
13047
13105
|
"source": {
|
|
13048
13106
|
"const": "lifecycle",
|
|
13049
13107
|
"default": "lifecycle",
|
|
@@ -13073,25 +13131,12 @@
|
|
|
13073
13131
|
}
|
|
13074
13132
|
],
|
|
13075
13133
|
"title": "Tools"
|
|
13076
|
-
},
|
|
13077
|
-
"turn_id": {
|
|
13078
|
-
"anyOf": [
|
|
13079
|
-
{
|
|
13080
|
-
"type": "string"
|
|
13081
|
-
},
|
|
13082
|
-
{
|
|
13083
|
-
"type": "null"
|
|
13084
|
-
}
|
|
13085
|
-
],
|
|
13086
|
-
"description": "Turn containing this record, when applicable.",
|
|
13087
|
-
"title": "Turn Id"
|
|
13088
13134
|
}
|
|
13089
13135
|
},
|
|
13090
13136
|
"required": [
|
|
13091
13137
|
"id",
|
|
13092
13138
|
"session_id",
|
|
13093
|
-
"
|
|
13094
|
-
"session_message_id",
|
|
13139
|
+
"message_id",
|
|
13095
13140
|
"feed_seq",
|
|
13096
13141
|
"source",
|
|
13097
13142
|
"record_type",
|
|
@@ -13105,39 +13150,81 @@
|
|
|
13105
13150
|
"created_at",
|
|
13106
13151
|
"kind"
|
|
13107
13152
|
],
|
|
13108
|
-
"title": "
|
|
13153
|
+
"title": "MessageEndedRecord",
|
|
13109
13154
|
"type": "object",
|
|
13110
13155
|
"x-ellipsis-preserve-payload": true
|
|
13111
13156
|
},
|
|
13112
|
-
"
|
|
13157
|
+
"MessageQueuedPayload": {
|
|
13113
13158
|
"additionalProperties": true,
|
|
13114
|
-
"description": "
|
|
13159
|
+
"description": "message_queued: the message waits because the account already has\n`sessions_alive` sessions alive, its limit.",
|
|
13115
13160
|
"properties": {
|
|
13116
|
-
"
|
|
13161
|
+
"limit": {
|
|
13162
|
+
"title": "Limit",
|
|
13163
|
+
"type": "integer"
|
|
13164
|
+
},
|
|
13165
|
+
"message_id": {
|
|
13166
|
+
"title": "Message Id",
|
|
13167
|
+
"type": "string"
|
|
13168
|
+
},
|
|
13169
|
+
"sessions_alive": {
|
|
13170
|
+
"title": "Sessions Alive",
|
|
13171
|
+
"type": "integer"
|
|
13172
|
+
}
|
|
13173
|
+
},
|
|
13174
|
+
"required": [
|
|
13175
|
+
"message_id",
|
|
13176
|
+
"sessions_alive",
|
|
13177
|
+
"limit"
|
|
13178
|
+
],
|
|
13179
|
+
"title": "MessageQueuedPayload",
|
|
13180
|
+
"type": "object"
|
|
13181
|
+
},
|
|
13182
|
+
"MessageQueuedRecord": {
|
|
13183
|
+
"properties": {
|
|
13184
|
+
"cost": {
|
|
13117
13185
|
"anyOf": [
|
|
13118
13186
|
{
|
|
13119
|
-
"type": "
|
|
13187
|
+
"type": "integer"
|
|
13120
13188
|
},
|
|
13121
13189
|
{
|
|
13122
13190
|
"type": "null"
|
|
13123
13191
|
}
|
|
13124
13192
|
],
|
|
13125
|
-
"title": "
|
|
13193
|
+
"title": "Cost"
|
|
13126
13194
|
},
|
|
13127
|
-
"
|
|
13128
|
-
"
|
|
13195
|
+
"created_at": {
|
|
13196
|
+
"format": "date-time",
|
|
13197
|
+
"title": "Created At",
|
|
13129
13198
|
"type": "string"
|
|
13130
13199
|
},
|
|
13131
|
-
"
|
|
13132
|
-
"
|
|
13133
|
-
|
|
13134
|
-
|
|
13200
|
+
"duration": {
|
|
13201
|
+
"anyOf": [
|
|
13202
|
+
{
|
|
13203
|
+
"type": "integer"
|
|
13204
|
+
},
|
|
13205
|
+
{
|
|
13206
|
+
"type": "null"
|
|
13207
|
+
}
|
|
13208
|
+
],
|
|
13209
|
+
"title": "Duration"
|
|
13135
13210
|
},
|
|
13136
|
-
"
|
|
13137
|
-
"
|
|
13211
|
+
"feed_seq": {
|
|
13212
|
+
"description": "Position in the session feed and the stream's resume cursor.",
|
|
13213
|
+
"title": "Feed Seq",
|
|
13214
|
+
"type": "integer"
|
|
13215
|
+
},
|
|
13216
|
+
"id": {
|
|
13217
|
+
"description": "Unique identifier of the record.",
|
|
13218
|
+
"title": "Id",
|
|
13138
13219
|
"type": "string"
|
|
13139
13220
|
},
|
|
13140
|
-
"
|
|
13221
|
+
"kind": {
|
|
13222
|
+
"const": "platform",
|
|
13223
|
+
"default": "platform",
|
|
13224
|
+
"title": "Kind",
|
|
13225
|
+
"type": "string"
|
|
13226
|
+
},
|
|
13227
|
+
"message_id": {
|
|
13141
13228
|
"anyOf": [
|
|
13142
13229
|
{
|
|
13143
13230
|
"type": "string"
|
|
@@ -13146,9 +13233,10 @@
|
|
|
13146
13233
|
"type": "null"
|
|
13147
13234
|
}
|
|
13148
13235
|
],
|
|
13149
|
-
"
|
|
13236
|
+
"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.",
|
|
13237
|
+
"title": "Message Id"
|
|
13150
13238
|
},
|
|
13151
|
-
"
|
|
13239
|
+
"model": {
|
|
13152
13240
|
"anyOf": [
|
|
13153
13241
|
{
|
|
13154
13242
|
"type": "string"
|
|
@@ -13157,28 +13245,81 @@
|
|
|
13157
13245
|
"type": "null"
|
|
13158
13246
|
}
|
|
13159
13247
|
],
|
|
13160
|
-
"title": "
|
|
13248
|
+
"title": "Model"
|
|
13249
|
+
},
|
|
13250
|
+
"payload": {
|
|
13251
|
+
"$ref": "#/components/schemas/MessageQueuedPayload"
|
|
13252
|
+
},
|
|
13253
|
+
"record_format": {
|
|
13254
|
+
"const": "ellipsis_lifecycle@1",
|
|
13255
|
+
"default": "ellipsis_lifecycle@1",
|
|
13256
|
+
"title": "Record Format",
|
|
13257
|
+
"type": "string"
|
|
13258
|
+
},
|
|
13259
|
+
"record_type": {
|
|
13260
|
+
"const": "message_queued",
|
|
13261
|
+
"default": "message_queued",
|
|
13262
|
+
"title": "Record Type",
|
|
13263
|
+
"type": "string"
|
|
13264
|
+
},
|
|
13265
|
+
"session_id": {
|
|
13266
|
+
"description": "Session containing this record.",
|
|
13267
|
+
"title": "Session Id",
|
|
13268
|
+
"type": "string"
|
|
13269
|
+
},
|
|
13270
|
+
"source": {
|
|
13271
|
+
"const": "lifecycle",
|
|
13272
|
+
"default": "lifecycle",
|
|
13273
|
+
"title": "Source",
|
|
13274
|
+
"type": "string"
|
|
13275
|
+
},
|
|
13276
|
+
"tokens_info": {
|
|
13277
|
+
"anyOf": [
|
|
13278
|
+
{
|
|
13279
|
+
"$ref": "#/components/schemas/TokensInfo"
|
|
13280
|
+
},
|
|
13281
|
+
{
|
|
13282
|
+
"type": "null"
|
|
13283
|
+
}
|
|
13284
|
+
]
|
|
13161
13285
|
},
|
|
13162
|
-
"
|
|
13286
|
+
"tools": {
|
|
13163
13287
|
"anyOf": [
|
|
13164
13288
|
{
|
|
13165
|
-
"
|
|
13289
|
+
"items": {
|
|
13290
|
+
"type": "string"
|
|
13291
|
+
},
|
|
13292
|
+
"type": "array"
|
|
13166
13293
|
},
|
|
13167
13294
|
{
|
|
13168
13295
|
"type": "null"
|
|
13169
13296
|
}
|
|
13170
13297
|
],
|
|
13171
|
-
"title": "
|
|
13298
|
+
"title": "Tools"
|
|
13172
13299
|
}
|
|
13173
13300
|
},
|
|
13174
13301
|
"required": [
|
|
13302
|
+
"id",
|
|
13303
|
+
"session_id",
|
|
13175
13304
|
"message_id",
|
|
13176
|
-
"
|
|
13305
|
+
"feed_seq",
|
|
13306
|
+
"source",
|
|
13307
|
+
"record_type",
|
|
13308
|
+
"record_format",
|
|
13309
|
+
"payload",
|
|
13310
|
+
"tools",
|
|
13311
|
+
"tokens_info",
|
|
13312
|
+
"cost",
|
|
13313
|
+
"duration",
|
|
13314
|
+
"model",
|
|
13315
|
+
"created_at",
|
|
13316
|
+
"kind"
|
|
13177
13317
|
],
|
|
13178
|
-
"title": "
|
|
13179
|
-
"type": "object"
|
|
13318
|
+
"title": "MessageQueuedRecord",
|
|
13319
|
+
"type": "object",
|
|
13320
|
+
"x-ellipsis-preserve-payload": true
|
|
13180
13321
|
},
|
|
13181
|
-
"
|
|
13322
|
+
"MessageRecord": {
|
|
13182
13323
|
"properties": {
|
|
13183
13324
|
"cost": {
|
|
13184
13325
|
"anyOf": [
|
|
@@ -13223,6 +13364,18 @@
|
|
|
13223
13364
|
"title": "Kind",
|
|
13224
13365
|
"type": "string"
|
|
13225
13366
|
},
|
|
13367
|
+
"message_id": {
|
|
13368
|
+
"anyOf": [
|
|
13369
|
+
{
|
|
13370
|
+
"type": "string"
|
|
13371
|
+
},
|
|
13372
|
+
{
|
|
13373
|
+
"type": "null"
|
|
13374
|
+
}
|
|
13375
|
+
],
|
|
13376
|
+
"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.",
|
|
13377
|
+
"title": "Message Id"
|
|
13378
|
+
},
|
|
13226
13379
|
"model": {
|
|
13227
13380
|
"anyOf": [
|
|
13228
13381
|
{
|
|
@@ -13235,7 +13388,7 @@
|
|
|
13235
13388
|
"title": "Model"
|
|
13236
13389
|
},
|
|
13237
13390
|
"payload": {
|
|
13238
|
-
"$ref": "#/components/schemas/
|
|
13391
|
+
"$ref": "#/components/schemas/SessionMessage"
|
|
13239
13392
|
},
|
|
13240
13393
|
"record_format": {
|
|
13241
13394
|
"const": "ellipsis_lifecycle@1",
|
|
@@ -13244,8 +13397,8 @@
|
|
|
13244
13397
|
"type": "string"
|
|
13245
13398
|
},
|
|
13246
13399
|
"record_type": {
|
|
13247
|
-
"const": "
|
|
13248
|
-
"default": "
|
|
13400
|
+
"const": "message",
|
|
13401
|
+
"default": "message",
|
|
13249
13402
|
"title": "Record Type",
|
|
13250
13403
|
"type": "string"
|
|
13251
13404
|
},
|
|
@@ -13254,18 +13407,6 @@
|
|
|
13254
13407
|
"title": "Session Id",
|
|
13255
13408
|
"type": "string"
|
|
13256
13409
|
},
|
|
13257
|
-
"session_message_id": {
|
|
13258
|
-
"anyOf": [
|
|
13259
|
-
{
|
|
13260
|
-
"type": "string"
|
|
13261
|
-
},
|
|
13262
|
-
{
|
|
13263
|
-
"type": "null"
|
|
13264
|
-
}
|
|
13265
|
-
],
|
|
13266
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
13267
|
-
"title": "Session Message Id"
|
|
13268
|
-
},
|
|
13269
13410
|
"source": {
|
|
13270
13411
|
"const": "lifecycle",
|
|
13271
13412
|
"default": "lifecycle",
|
|
@@ -13295,25 +13436,12 @@
|
|
|
13295
13436
|
}
|
|
13296
13437
|
],
|
|
13297
13438
|
"title": "Tools"
|
|
13298
|
-
},
|
|
13299
|
-
"turn_id": {
|
|
13300
|
-
"anyOf": [
|
|
13301
|
-
{
|
|
13302
|
-
"type": "string"
|
|
13303
|
-
},
|
|
13304
|
-
{
|
|
13305
|
-
"type": "null"
|
|
13306
|
-
}
|
|
13307
|
-
],
|
|
13308
|
-
"description": "Turn containing this record, when applicable.",
|
|
13309
|
-
"title": "Turn Id"
|
|
13310
13439
|
}
|
|
13311
13440
|
},
|
|
13312
13441
|
"required": [
|
|
13313
13442
|
"id",
|
|
13314
13443
|
"session_id",
|
|
13315
|
-
"
|
|
13316
|
-
"session_message_id",
|
|
13444
|
+
"message_id",
|
|
13317
13445
|
"feed_seq",
|
|
13318
13446
|
"source",
|
|
13319
13447
|
"record_type",
|
|
@@ -13327,37 +13455,21 @@
|
|
|
13327
13455
|
"created_at",
|
|
13328
13456
|
"kind"
|
|
13329
13457
|
],
|
|
13330
|
-
"title": "
|
|
13458
|
+
"title": "MessageRecord",
|
|
13331
13459
|
"type": "object",
|
|
13332
13460
|
"x-ellipsis-preserve-payload": true
|
|
13333
13461
|
},
|
|
13334
13462
|
"MessageRequeuedPayload": {
|
|
13335
13463
|
"additionalProperties": true,
|
|
13336
|
-
"description": "message_requeued:
|
|
13464
|
+
"description": "message_requeued: the agent was interrupted before answering, so the\nmessage goes back to the inbox and starts again on a fresh environment.",
|
|
13337
13465
|
"properties": {
|
|
13338
13466
|
"message_id": {
|
|
13339
13467
|
"title": "Message Id",
|
|
13340
13468
|
"type": "string"
|
|
13341
|
-
},
|
|
13342
|
-
"requeued_turn_id": {
|
|
13343
|
-
"anyOf": [
|
|
13344
|
-
{
|
|
13345
|
-
"type": "string"
|
|
13346
|
-
},
|
|
13347
|
-
{
|
|
13348
|
-
"type": "null"
|
|
13349
|
-
}
|
|
13350
|
-
],
|
|
13351
|
-
"title": "Requeued Turn Id"
|
|
13352
|
-
},
|
|
13353
|
-
"turn_id": {
|
|
13354
|
-
"title": "Turn Id",
|
|
13355
|
-
"type": "string"
|
|
13356
13469
|
}
|
|
13357
13470
|
},
|
|
13358
13471
|
"required": [
|
|
13359
|
-
"message_id"
|
|
13360
|
-
"turn_id"
|
|
13472
|
+
"message_id"
|
|
13361
13473
|
],
|
|
13362
13474
|
"title": "MessageRequeuedPayload",
|
|
13363
13475
|
"type": "object"
|
|
@@ -13407,6 +13519,18 @@
|
|
|
13407
13519
|
"title": "Kind",
|
|
13408
13520
|
"type": "string"
|
|
13409
13521
|
},
|
|
13522
|
+
"message_id": {
|
|
13523
|
+
"anyOf": [
|
|
13524
|
+
{
|
|
13525
|
+
"type": "string"
|
|
13526
|
+
},
|
|
13527
|
+
{
|
|
13528
|
+
"type": "null"
|
|
13529
|
+
}
|
|
13530
|
+
],
|
|
13531
|
+
"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.",
|
|
13532
|
+
"title": "Message Id"
|
|
13533
|
+
},
|
|
13410
13534
|
"model": {
|
|
13411
13535
|
"anyOf": [
|
|
13412
13536
|
{
|
|
@@ -13438,18 +13562,6 @@
|
|
|
13438
13562
|
"title": "Session Id",
|
|
13439
13563
|
"type": "string"
|
|
13440
13564
|
},
|
|
13441
|
-
"session_message_id": {
|
|
13442
|
-
"anyOf": [
|
|
13443
|
-
{
|
|
13444
|
-
"type": "string"
|
|
13445
|
-
},
|
|
13446
|
-
{
|
|
13447
|
-
"type": "null"
|
|
13448
|
-
}
|
|
13449
|
-
],
|
|
13450
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
13451
|
-
"title": "Session Message Id"
|
|
13452
|
-
},
|
|
13453
13565
|
"source": {
|
|
13454
13566
|
"const": "lifecycle",
|
|
13455
13567
|
"default": "lifecycle",
|
|
@@ -13479,8 +13591,90 @@
|
|
|
13479
13591
|
}
|
|
13480
13592
|
],
|
|
13481
13593
|
"title": "Tools"
|
|
13594
|
+
}
|
|
13595
|
+
},
|
|
13596
|
+
"required": [
|
|
13597
|
+
"id",
|
|
13598
|
+
"session_id",
|
|
13599
|
+
"message_id",
|
|
13600
|
+
"feed_seq",
|
|
13601
|
+
"source",
|
|
13602
|
+
"record_type",
|
|
13603
|
+
"record_format",
|
|
13604
|
+
"payload",
|
|
13605
|
+
"tools",
|
|
13606
|
+
"tokens_info",
|
|
13607
|
+
"cost",
|
|
13608
|
+
"duration",
|
|
13609
|
+
"model",
|
|
13610
|
+
"created_at",
|
|
13611
|
+
"kind"
|
|
13612
|
+
],
|
|
13613
|
+
"title": "MessageRequeuedRecord",
|
|
13614
|
+
"type": "object",
|
|
13615
|
+
"x-ellipsis-preserve-payload": true
|
|
13616
|
+
},
|
|
13617
|
+
"MessageStartedPayload": {
|
|
13618
|
+
"additionalProperties": true,
|
|
13619
|
+
"description": "message_started: the agent started on the message.",
|
|
13620
|
+
"properties": {
|
|
13621
|
+
"message_id": {
|
|
13622
|
+
"title": "Message Id",
|
|
13623
|
+
"type": "string"
|
|
13624
|
+
}
|
|
13625
|
+
},
|
|
13626
|
+
"required": [
|
|
13627
|
+
"message_id"
|
|
13628
|
+
],
|
|
13629
|
+
"title": "MessageStartedPayload",
|
|
13630
|
+
"type": "object"
|
|
13631
|
+
},
|
|
13632
|
+
"MessageStartedRecord": {
|
|
13633
|
+
"properties": {
|
|
13634
|
+
"cost": {
|
|
13635
|
+
"anyOf": [
|
|
13636
|
+
{
|
|
13637
|
+
"type": "integer"
|
|
13638
|
+
},
|
|
13639
|
+
{
|
|
13640
|
+
"type": "null"
|
|
13641
|
+
}
|
|
13642
|
+
],
|
|
13643
|
+
"title": "Cost"
|
|
13644
|
+
},
|
|
13645
|
+
"created_at": {
|
|
13646
|
+
"format": "date-time",
|
|
13647
|
+
"title": "Created At",
|
|
13648
|
+
"type": "string"
|
|
13482
13649
|
},
|
|
13483
|
-
"
|
|
13650
|
+
"duration": {
|
|
13651
|
+
"anyOf": [
|
|
13652
|
+
{
|
|
13653
|
+
"type": "integer"
|
|
13654
|
+
},
|
|
13655
|
+
{
|
|
13656
|
+
"type": "null"
|
|
13657
|
+
}
|
|
13658
|
+
],
|
|
13659
|
+
"title": "Duration"
|
|
13660
|
+
},
|
|
13661
|
+
"feed_seq": {
|
|
13662
|
+
"description": "Position in the session feed and the stream's resume cursor.",
|
|
13663
|
+
"title": "Feed Seq",
|
|
13664
|
+
"type": "integer"
|
|
13665
|
+
},
|
|
13666
|
+
"id": {
|
|
13667
|
+
"description": "Unique identifier of the record.",
|
|
13668
|
+
"title": "Id",
|
|
13669
|
+
"type": "string"
|
|
13670
|
+
},
|
|
13671
|
+
"kind": {
|
|
13672
|
+
"const": "platform",
|
|
13673
|
+
"default": "platform",
|
|
13674
|
+
"title": "Kind",
|
|
13675
|
+
"type": "string"
|
|
13676
|
+
},
|
|
13677
|
+
"message_id": {
|
|
13484
13678
|
"anyOf": [
|
|
13485
13679
|
{
|
|
13486
13680
|
"type": "string"
|
|
@@ -13489,15 +13683,75 @@
|
|
|
13489
13683
|
"type": "null"
|
|
13490
13684
|
}
|
|
13491
13685
|
],
|
|
13492
|
-
"description": "
|
|
13493
|
-
"title": "
|
|
13686
|
+
"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.",
|
|
13687
|
+
"title": "Message Id"
|
|
13688
|
+
},
|
|
13689
|
+
"model": {
|
|
13690
|
+
"anyOf": [
|
|
13691
|
+
{
|
|
13692
|
+
"type": "string"
|
|
13693
|
+
},
|
|
13694
|
+
{
|
|
13695
|
+
"type": "null"
|
|
13696
|
+
}
|
|
13697
|
+
],
|
|
13698
|
+
"title": "Model"
|
|
13699
|
+
},
|
|
13700
|
+
"payload": {
|
|
13701
|
+
"$ref": "#/components/schemas/MessageStartedPayload"
|
|
13702
|
+
},
|
|
13703
|
+
"record_format": {
|
|
13704
|
+
"const": "ellipsis_lifecycle@1",
|
|
13705
|
+
"default": "ellipsis_lifecycle@1",
|
|
13706
|
+
"title": "Record Format",
|
|
13707
|
+
"type": "string"
|
|
13708
|
+
},
|
|
13709
|
+
"record_type": {
|
|
13710
|
+
"const": "message_started",
|
|
13711
|
+
"default": "message_started",
|
|
13712
|
+
"title": "Record Type",
|
|
13713
|
+
"type": "string"
|
|
13714
|
+
},
|
|
13715
|
+
"session_id": {
|
|
13716
|
+
"description": "Session containing this record.",
|
|
13717
|
+
"title": "Session Id",
|
|
13718
|
+
"type": "string"
|
|
13719
|
+
},
|
|
13720
|
+
"source": {
|
|
13721
|
+
"const": "lifecycle",
|
|
13722
|
+
"default": "lifecycle",
|
|
13723
|
+
"title": "Source",
|
|
13724
|
+
"type": "string"
|
|
13725
|
+
},
|
|
13726
|
+
"tokens_info": {
|
|
13727
|
+
"anyOf": [
|
|
13728
|
+
{
|
|
13729
|
+
"$ref": "#/components/schemas/TokensInfo"
|
|
13730
|
+
},
|
|
13731
|
+
{
|
|
13732
|
+
"type": "null"
|
|
13733
|
+
}
|
|
13734
|
+
]
|
|
13735
|
+
},
|
|
13736
|
+
"tools": {
|
|
13737
|
+
"anyOf": [
|
|
13738
|
+
{
|
|
13739
|
+
"items": {
|
|
13740
|
+
"type": "string"
|
|
13741
|
+
},
|
|
13742
|
+
"type": "array"
|
|
13743
|
+
},
|
|
13744
|
+
{
|
|
13745
|
+
"type": "null"
|
|
13746
|
+
}
|
|
13747
|
+
],
|
|
13748
|
+
"title": "Tools"
|
|
13494
13749
|
}
|
|
13495
13750
|
},
|
|
13496
13751
|
"required": [
|
|
13497
13752
|
"id",
|
|
13498
13753
|
"session_id",
|
|
13499
|
-
"
|
|
13500
|
-
"session_message_id",
|
|
13754
|
+
"message_id",
|
|
13501
13755
|
"feed_seq",
|
|
13502
13756
|
"source",
|
|
13503
13757
|
"record_type",
|
|
@@ -13511,7 +13765,7 @@
|
|
|
13511
13765
|
"created_at",
|
|
13512
13766
|
"kind"
|
|
13513
13767
|
],
|
|
13514
|
-
"title": "
|
|
13768
|
+
"title": "MessageStartedRecord",
|
|
13515
13769
|
"type": "object",
|
|
13516
13770
|
"x-ellipsis-preserve-payload": true
|
|
13517
13771
|
},
|
|
@@ -14010,13 +14264,12 @@
|
|
|
14010
14264
|
"environment_output": "#/components/schemas/EnvironmentOutputRecord",
|
|
14011
14265
|
"environment_phase": "#/components/schemas/EnvironmentPhaseRecord",
|
|
14012
14266
|
"environment_ready": "#/components/schemas/EnvironmentReadyRecord",
|
|
14013
|
-
"
|
|
14014
|
-
"
|
|
14267
|
+
"message": "#/components/schemas/MessageRecord",
|
|
14268
|
+
"message_ended": "#/components/schemas/MessageEndedRecord",
|
|
14269
|
+
"message_queued": "#/components/schemas/MessageQueuedRecord",
|
|
14015
14270
|
"message_requeued": "#/components/schemas/MessageRequeuedRecord",
|
|
14016
|
-
"
|
|
14017
|
-
"
|
|
14018
|
-
"turn_queued": "#/components/schemas/TurnQueuedRecord",
|
|
14019
|
-
"turn_started": "#/components/schemas/TurnStartedRecord"
|
|
14271
|
+
"message_started": "#/components/schemas/MessageStartedRecord",
|
|
14272
|
+
"session_closed": "#/components/schemas/SessionClosedRecord"
|
|
14020
14273
|
},
|
|
14021
14274
|
"propertyName": "record_type"
|
|
14022
14275
|
},
|
|
@@ -14025,22 +14278,19 @@
|
|
|
14025
14278
|
"$ref": "#/components/schemas/SessionClosedRecord"
|
|
14026
14279
|
},
|
|
14027
14280
|
{
|
|
14028
|
-
"$ref": "#/components/schemas/
|
|
14281
|
+
"$ref": "#/components/schemas/MessageRecord"
|
|
14029
14282
|
},
|
|
14030
14283
|
{
|
|
14031
|
-
"$ref": "#/components/schemas/
|
|
14284
|
+
"$ref": "#/components/schemas/MessageQueuedRecord"
|
|
14032
14285
|
},
|
|
14033
14286
|
{
|
|
14034
|
-
"$ref": "#/components/schemas/
|
|
14035
|
-
},
|
|
14036
|
-
{
|
|
14037
|
-
"$ref": "#/components/schemas/TurnQueuedRecord"
|
|
14287
|
+
"$ref": "#/components/schemas/MessageStartedRecord"
|
|
14038
14288
|
},
|
|
14039
14289
|
{
|
|
14040
|
-
"$ref": "#/components/schemas/
|
|
14290
|
+
"$ref": "#/components/schemas/MessageEndedRecord"
|
|
14041
14291
|
},
|
|
14042
14292
|
{
|
|
14043
|
-
"$ref": "#/components/schemas/
|
|
14293
|
+
"$ref": "#/components/schemas/MessageRequeuedRecord"
|
|
14044
14294
|
},
|
|
14045
14295
|
{
|
|
14046
14296
|
"$ref": "#/components/schemas/EnvironmentPhaseRecord"
|
|
@@ -18374,7 +18624,7 @@
|
|
|
18374
18624
|
]
|
|
18375
18625
|
}
|
|
18376
18626
|
],
|
|
18377
|
-
"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
|
|
18627
|
+
"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.",
|
|
18378
18628
|
"properties": {
|
|
18379
18629
|
"agent": {
|
|
18380
18630
|
"anyOf": [
|
|
@@ -18448,6 +18698,17 @@
|
|
|
18448
18698
|
"$ref": "#/components/schemas/SessionEnvironment",
|
|
18449
18699
|
"description": "The full environment configuration frozen when the session was created, with the saved environment's id and how it was chosen."
|
|
18450
18700
|
},
|
|
18701
|
+
"error": {
|
|
18702
|
+
"anyOf": [
|
|
18703
|
+
{
|
|
18704
|
+
"$ref": "#/components/schemas/SessionError"
|
|
18705
|
+
},
|
|
18706
|
+
{
|
|
18707
|
+
"type": "null"
|
|
18708
|
+
}
|
|
18709
|
+
],
|
|
18710
|
+
"description": "Why the last message failed, was stopped, or was cancelled; null otherwise."
|
|
18711
|
+
},
|
|
18451
18712
|
"event": {
|
|
18452
18713
|
"anyOf": [
|
|
18453
18714
|
{
|
|
@@ -18570,7 +18831,7 @@
|
|
|
18570
18831
|
"type": "null"
|
|
18571
18832
|
}
|
|
18572
18833
|
],
|
|
18573
|
-
"description": "The session's structured output: the `json_schema` the agent must satisfy and, once
|
|
18834
|
+
"description": "The session's structured output: the `json_schema` the agent must satisfy and, once the agent has submitted it, the `result`."
|
|
18574
18835
|
},
|
|
18575
18836
|
"parent": {
|
|
18576
18837
|
"anyOf": [
|
|
@@ -18599,6 +18860,10 @@
|
|
|
18599
18860
|
"$ref": "#/components/schemas/SessionSource",
|
|
18600
18861
|
"description": "Where the session came from (e.g. react, web, api, cli, mention, cron)."
|
|
18601
18862
|
},
|
|
18863
|
+
"status": {
|
|
18864
|
+
"$ref": "#/components/schemas/SessionStatus",
|
|
18865
|
+
"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."
|
|
18866
|
+
},
|
|
18602
18867
|
"summary": {
|
|
18603
18868
|
"anyOf": [
|
|
18604
18869
|
{
|
|
@@ -18614,17 +18879,6 @@
|
|
|
18614
18879
|
"$ref": "#/components/schemas/Tokens",
|
|
18615
18880
|
"description": "The tokens the session has used so far."
|
|
18616
18881
|
},
|
|
18617
|
-
"turn": {
|
|
18618
|
-
"anyOf": [
|
|
18619
|
-
{
|
|
18620
|
-
"$ref": "#/components/schemas/SessionTurn"
|
|
18621
|
-
},
|
|
18622
|
-
{
|
|
18623
|
-
"type": "null"
|
|
18624
|
-
}
|
|
18625
|
-
],
|
|
18626
|
-
"description": "The turn in progress, or the latest one when none is running. Null until the session has a message. Wait on it: the message you sent is answered when the turn with your message's `turn_id` reaches a final status."
|
|
18627
|
-
},
|
|
18628
18882
|
"updated_at": {
|
|
18629
18883
|
"description": "When the session was last updated.",
|
|
18630
18884
|
"format": "date-time",
|
|
@@ -18643,6 +18897,7 @@
|
|
|
18643
18897
|
"cost",
|
|
18644
18898
|
"created_at",
|
|
18645
18899
|
"environment",
|
|
18900
|
+
"error",
|
|
18646
18901
|
"event",
|
|
18647
18902
|
"gemini",
|
|
18648
18903
|
"git",
|
|
@@ -18654,9 +18909,9 @@
|
|
|
18654
18909
|
"permissions",
|
|
18655
18910
|
"skills",
|
|
18656
18911
|
"source",
|
|
18912
|
+
"status",
|
|
18657
18913
|
"summary",
|
|
18658
18914
|
"tokens",
|
|
18659
|
-
"turn",
|
|
18660
18915
|
"updated_at"
|
|
18661
18916
|
],
|
|
18662
18917
|
"title": "Session",
|
|
@@ -18892,7 +19147,7 @@
|
|
|
18892
19147
|
},
|
|
18893
19148
|
"SessionClosedPayload": {
|
|
18894
19149
|
"additionalProperties": true,
|
|
18895
|
-
"description": "session_closed: the
|
|
19150
|
+
"description": "session_closed: the session closed permanently.",
|
|
18896
19151
|
"properties": {},
|
|
18897
19152
|
"title": "SessionClosedPayload",
|
|
18898
19153
|
"type": "object"
|
|
@@ -18942,6 +19197,18 @@
|
|
|
18942
19197
|
"title": "Kind",
|
|
18943
19198
|
"type": "string"
|
|
18944
19199
|
},
|
|
19200
|
+
"message_id": {
|
|
19201
|
+
"anyOf": [
|
|
19202
|
+
{
|
|
19203
|
+
"type": "string"
|
|
19204
|
+
},
|
|
19205
|
+
{
|
|
19206
|
+
"type": "null"
|
|
19207
|
+
}
|
|
19208
|
+
],
|
|
19209
|
+
"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.",
|
|
19210
|
+
"title": "Message Id"
|
|
19211
|
+
},
|
|
18945
19212
|
"model": {
|
|
18946
19213
|
"anyOf": [
|
|
18947
19214
|
{
|
|
@@ -18973,18 +19240,6 @@
|
|
|
18973
19240
|
"title": "Session Id",
|
|
18974
19241
|
"type": "string"
|
|
18975
19242
|
},
|
|
18976
|
-
"session_message_id": {
|
|
18977
|
-
"anyOf": [
|
|
18978
|
-
{
|
|
18979
|
-
"type": "string"
|
|
18980
|
-
},
|
|
18981
|
-
{
|
|
18982
|
-
"type": "null"
|
|
18983
|
-
}
|
|
18984
|
-
],
|
|
18985
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
18986
|
-
"title": "Session Message Id"
|
|
18987
|
-
},
|
|
18988
19243
|
"source": {
|
|
18989
19244
|
"const": "lifecycle",
|
|
18990
19245
|
"default": "lifecycle",
|
|
@@ -19014,25 +19269,12 @@
|
|
|
19014
19269
|
}
|
|
19015
19270
|
],
|
|
19016
19271
|
"title": "Tools"
|
|
19017
|
-
},
|
|
19018
|
-
"turn_id": {
|
|
19019
|
-
"anyOf": [
|
|
19020
|
-
{
|
|
19021
|
-
"type": "string"
|
|
19022
|
-
},
|
|
19023
|
-
{
|
|
19024
|
-
"type": "null"
|
|
19025
|
-
}
|
|
19026
|
-
],
|
|
19027
|
-
"description": "Turn containing this record, when applicable.",
|
|
19028
|
-
"title": "Turn Id"
|
|
19029
19272
|
}
|
|
19030
19273
|
},
|
|
19031
19274
|
"required": [
|
|
19032
19275
|
"id",
|
|
19033
19276
|
"session_id",
|
|
19034
|
-
"
|
|
19035
|
-
"session_message_id",
|
|
19277
|
+
"message_id",
|
|
19036
19278
|
"feed_seq",
|
|
19037
19279
|
"source",
|
|
19038
19280
|
"record_type",
|
|
@@ -19375,7 +19617,7 @@
|
|
|
19375
19617
|
"description": "Whether the session can take more messages, and how quickly it would\nanswer one.",
|
|
19376
19618
|
"properties": {
|
|
19377
19619
|
"interactive": {
|
|
19378
|
-
"description": "Whether the session stays open after its first
|
|
19620
|
+
"description": "Whether the session stays open after its first message is answered.",
|
|
19379
19621
|
"title": "Interactive",
|
|
19380
19622
|
"type": "boolean"
|
|
19381
19623
|
},
|
|
@@ -19383,10 +19625,6 @@
|
|
|
19383
19625
|
"$ref": "#/components/schemas/SessionPrompting",
|
|
19384
19626
|
"description": "The session's policy for direct messages. Caller authorization and message validation are checked separately."
|
|
19385
19627
|
},
|
|
19386
|
-
"state": {
|
|
19387
|
-
"$ref": "#/components/schemas/SessionState",
|
|
19388
|
-
"description": "`open` while the session can take messages; `closed` is permanent."
|
|
19389
|
-
},
|
|
19390
19628
|
"warm": {
|
|
19391
19629
|
"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.",
|
|
19392
19630
|
"title": "Warm",
|
|
@@ -19396,7 +19634,6 @@
|
|
|
19396
19634
|
"required": [
|
|
19397
19635
|
"interactive",
|
|
19398
19636
|
"prompting",
|
|
19399
|
-
"state",
|
|
19400
19637
|
"warm"
|
|
19401
19638
|
],
|
|
19402
19639
|
"title": "SessionConversation",
|
|
@@ -19407,7 +19644,7 @@
|
|
|
19407
19644
|
"description": "Conversation settings for a session, set on a saved agent or sent when starting a session or running an agent.",
|
|
19408
19645
|
"properties": {
|
|
19409
19646
|
"interactive": {
|
|
19410
|
-
"description": "Whether the session stays open after its first
|
|
19647
|
+
"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.",
|
|
19411
19648
|
"title": "Interactive",
|
|
19412
19649
|
"type": "boolean"
|
|
19413
19650
|
}
|
|
@@ -19421,7 +19658,7 @@
|
|
|
19421
19658
|
"properties": {
|
|
19422
19659
|
"interactive": {
|
|
19423
19660
|
"default": true,
|
|
19424
|
-
"description": "Whether the session stays open after its first
|
|
19661
|
+
"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.",
|
|
19425
19662
|
"title": "Interactive",
|
|
19426
19663
|
"type": "boolean"
|
|
19427
19664
|
}
|
|
@@ -19575,6 +19812,33 @@
|
|
|
19575
19812
|
"title": "SessionEnvironment",
|
|
19576
19813
|
"type": "object"
|
|
19577
19814
|
},
|
|
19815
|
+
"SessionError": {
|
|
19816
|
+
"description": "Why the last message failed, was stopped, or was cancelled. Cleared\nwhen the next message starts.",
|
|
19817
|
+
"properties": {
|
|
19818
|
+
"detail": {
|
|
19819
|
+
"anyOf": [
|
|
19820
|
+
{
|
|
19821
|
+
"type": "string"
|
|
19822
|
+
},
|
|
19823
|
+
{
|
|
19824
|
+
"type": "null"
|
|
19825
|
+
}
|
|
19826
|
+
],
|
|
19827
|
+
"description": "A human-readable explanation.",
|
|
19828
|
+
"title": "Detail"
|
|
19829
|
+
},
|
|
19830
|
+
"reason": {
|
|
19831
|
+
"$ref": "#/components/schemas/ErrorReason",
|
|
19832
|
+
"description": "What went wrong."
|
|
19833
|
+
}
|
|
19834
|
+
},
|
|
19835
|
+
"required": [
|
|
19836
|
+
"detail",
|
|
19837
|
+
"reason"
|
|
19838
|
+
],
|
|
19839
|
+
"title": "SessionError",
|
|
19840
|
+
"type": "object"
|
|
19841
|
+
},
|
|
19578
19842
|
"SessionEventActor": {
|
|
19579
19843
|
"description": "The event's initiator, when known; never inferred from resource ownership.",
|
|
19580
19844
|
"properties": {
|
|
@@ -19971,7 +20235,7 @@
|
|
|
19971
20235
|
"type": "object"
|
|
19972
20236
|
},
|
|
19973
20237
|
"SessionMessage": {
|
|
19974
|
-
"description": "One message
|
|
20238
|
+
"description": "One message sent to a session.",
|
|
19975
20239
|
"properties": {
|
|
19976
20240
|
"author": {
|
|
19977
20241
|
"anyOf": [
|
|
@@ -19991,36 +20255,11 @@
|
|
|
19991
20255
|
"type": "string"
|
|
19992
20256
|
},
|
|
19993
20257
|
"created_at": {
|
|
19994
|
-
"description": "When the message was
|
|
20258
|
+
"description": "When the message was received.",
|
|
19995
20259
|
"format": "date-time",
|
|
19996
20260
|
"title": "Created At",
|
|
19997
20261
|
"type": "string"
|
|
19998
20262
|
},
|
|
19999
|
-
"delivered_at": {
|
|
20000
|
-
"anyOf": [
|
|
20001
|
-
{
|
|
20002
|
-
"format": "date-time",
|
|
20003
|
-
"type": "string"
|
|
20004
|
-
},
|
|
20005
|
-
{
|
|
20006
|
-
"type": "null"
|
|
20007
|
-
}
|
|
20008
|
-
],
|
|
20009
|
-
"description": "When the message was delivered to the agent, if it has been.",
|
|
20010
|
-
"title": "Delivered At"
|
|
20011
|
-
},
|
|
20012
|
-
"feed_seq": {
|
|
20013
|
-
"anyOf": [
|
|
20014
|
-
{
|
|
20015
|
-
"type": "integer"
|
|
20016
|
-
},
|
|
20017
|
-
{
|
|
20018
|
-
"type": "null"
|
|
20019
|
-
}
|
|
20020
|
-
],
|
|
20021
|
-
"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.",
|
|
20022
|
-
"title": "Feed Seq"
|
|
20023
|
-
},
|
|
20024
20263
|
"id": {
|
|
20025
20264
|
"description": "Unique identifier of the message.",
|
|
20026
20265
|
"title": "Id",
|
|
@@ -20034,55 +20273,21 @@
|
|
|
20034
20273
|
"title": "Images",
|
|
20035
20274
|
"type": "array"
|
|
20036
20275
|
},
|
|
20037
|
-
"
|
|
20038
|
-
"
|
|
20039
|
-
|
|
20040
|
-
|
|
20041
|
-
},
|
|
20042
|
-
{
|
|
20043
|
-
"type": "null"
|
|
20044
|
-
}
|
|
20045
|
-
],
|
|
20046
|
-
"description": "Identifier of the principal that sent the message, if attributed.",
|
|
20047
|
-
"title": "Sender Attribution Id"
|
|
20048
|
-
},
|
|
20049
|
-
"sender_attribution_type": {
|
|
20050
|
-
"anyOf": [
|
|
20051
|
-
{
|
|
20052
|
-
"$ref": "#/components/schemas/AttributionType"
|
|
20053
|
-
},
|
|
20054
|
-
{
|
|
20055
|
-
"type": "null"
|
|
20056
|
-
}
|
|
20057
|
-
],
|
|
20058
|
-
"description": "Kind of principal that sent the message, if attributed."
|
|
20276
|
+
"index": {
|
|
20277
|
+
"description": "Position in the session, starting at 0.",
|
|
20278
|
+
"title": "Index",
|
|
20279
|
+
"type": "integer"
|
|
20059
20280
|
},
|
|
20060
20281
|
"session_id": {
|
|
20061
20282
|
"description": "Identifier of the session the message belongs to.",
|
|
20062
20283
|
"title": "Session Id",
|
|
20063
20284
|
"type": "string"
|
|
20064
|
-
},
|
|
20065
|
-
"status": {
|
|
20066
|
-
"$ref": "#/components/schemas/SessionMessageStatus",
|
|
20067
|
-
"description": "Delivery status of the message."
|
|
20068
|
-
},
|
|
20069
|
-
"turn_id": {
|
|
20070
|
-
"anyOf": [
|
|
20071
|
-
{
|
|
20072
|
-
"type": "string"
|
|
20073
|
-
},
|
|
20074
|
-
{
|
|
20075
|
-
"type": "null"
|
|
20076
|
-
}
|
|
20077
|
-
],
|
|
20078
|
-
"description": "The turn created to answer this message. Wait on it: the message is answered when that turn reaches a final status.",
|
|
20079
|
-
"title": "Turn Id"
|
|
20080
20285
|
}
|
|
20081
20286
|
},
|
|
20082
20287
|
"required": [
|
|
20083
20288
|
"id",
|
|
20084
20289
|
"session_id",
|
|
20085
|
-
"
|
|
20290
|
+
"index",
|
|
20086
20291
|
"body",
|
|
20087
20292
|
"created_at"
|
|
20088
20293
|
],
|
|
@@ -20117,34 +20322,21 @@
|
|
|
20117
20322
|
"type": "object"
|
|
20118
20323
|
},
|
|
20119
20324
|
"SessionMessageResponse": {
|
|
20120
|
-
"description": "One
|
|
20325
|
+
"description": "One message sent to a session.",
|
|
20121
20326
|
"properties": {
|
|
20122
20327
|
"message": {
|
|
20123
20328
|
"$ref": "#/components/schemas/SessionMessage",
|
|
20124
|
-
"description": "The message."
|
|
20125
|
-
},
|
|
20126
|
-
"turn": {
|
|
20127
|
-
"$ref": "#/components/schemas/SessionTurn",
|
|
20128
|
-
"description": "The turn that will answer the message. Wait on it: poll GET /v1/sessions/{session_id}/turns/{id} or watch the stream's session frames until its status is final."
|
|
20329
|
+
"description": "The message. It is answered once the session's status is `idle` or `closed`; its `message_ended` record says how."
|
|
20129
20330
|
}
|
|
20130
20331
|
},
|
|
20131
20332
|
"required": [
|
|
20132
|
-
"message"
|
|
20133
|
-
"turn"
|
|
20333
|
+
"message"
|
|
20134
20334
|
],
|
|
20135
20335
|
"title": "SessionMessageResponse",
|
|
20136
20336
|
"type": "object"
|
|
20137
20337
|
},
|
|
20138
|
-
"SessionMessageStatus": {
|
|
20139
|
-
"enum": [
|
|
20140
|
-
"pending",
|
|
20141
|
-
"delivered"
|
|
20142
|
-
],
|
|
20143
|
-
"title": "SessionMessageStatus",
|
|
20144
|
-
"type": "string"
|
|
20145
|
-
},
|
|
20146
20338
|
"SessionOutput": {
|
|
20147
|
-
"description": "Structured output on the wire: the contract and, when
|
|
20339
|
+
"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`.",
|
|
20148
20340
|
"properties": {
|
|
20149
20341
|
"json_schema": {
|
|
20150
20342
|
"additionalProperties": true,
|
|
@@ -20162,7 +20354,7 @@
|
|
|
20162
20354
|
"type": "null"
|
|
20163
20355
|
}
|
|
20164
20356
|
],
|
|
20165
|
-
"description": "The payload the agent submitted, or null until
|
|
20357
|
+
"description": "The payload the agent submitted, or null until it submits one.",
|
|
20166
20358
|
"title": "Result"
|
|
20167
20359
|
}
|
|
20168
20360
|
},
|
|
@@ -20618,7 +20810,7 @@
|
|
|
20618
20810
|
"type": "object"
|
|
20619
20811
|
},
|
|
20620
20812
|
"SessionRecordsListResponse": {
|
|
20621
|
-
"description": "A session's
|
|
20813
|
+
"description": "A session's log: everything that happened, oldest first.",
|
|
20622
20814
|
"properties": {
|
|
20623
20815
|
"earliest_feed_seq": {
|
|
20624
20816
|
"anyOf": [
|
|
@@ -20638,15 +20830,6 @@
|
|
|
20638
20830
|
"title": "Has More",
|
|
20639
20831
|
"type": "boolean"
|
|
20640
20832
|
},
|
|
20641
|
-
"messages": {
|
|
20642
|
-
"default": [],
|
|
20643
|
-
"description": "The open inbox slice (pending rows only): queued messages not yet consumed by a turn. Delivered history comes from the records themselves.",
|
|
20644
|
-
"items": {
|
|
20645
|
-
"$ref": "#/components/schemas/SessionMessage"
|
|
20646
|
-
},
|
|
20647
|
-
"title": "Messages",
|
|
20648
|
-
"type": "array"
|
|
20649
|
-
},
|
|
20650
20833
|
"next_cursor": {
|
|
20651
20834
|
"anyOf": [
|
|
20652
20835
|
{
|
|
@@ -20660,7 +20843,7 @@
|
|
|
20660
20843
|
"title": "Next Cursor"
|
|
20661
20844
|
},
|
|
20662
20845
|
"records": {
|
|
20663
|
-
"description": "The session's records
|
|
20846
|
+
"description": "The session's records, ordered by feed_seq: the messages sent to it, the platform's own events, and the agent's output. Clients render each by (source, record_format, record_type). Pagination is opt-in (`cursor` + `limit`); a bare call returns the full retained log.",
|
|
20664
20847
|
"items": {
|
|
20665
20848
|
"$ref": "#/components/schemas/SessionRecord"
|
|
20666
20849
|
},
|
|
@@ -20806,43 +20989,18 @@
|
|
|
20806
20989
|
"title": "SessionSpendItem",
|
|
20807
20990
|
"type": "object"
|
|
20808
20991
|
},
|
|
20809
|
-
"
|
|
20810
|
-
"description": "
|
|
20992
|
+
"SessionStatus": {
|
|
20993
|
+
"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.",
|
|
20811
20994
|
"enum": [
|
|
20812
|
-
"
|
|
20995
|
+
"queued",
|
|
20996
|
+
"preparing",
|
|
20997
|
+
"running",
|
|
20998
|
+
"idle",
|
|
20813
20999
|
"closed"
|
|
20814
21000
|
],
|
|
20815
|
-
"title": "
|
|
21001
|
+
"title": "SessionStatus",
|
|
20816
21002
|
"type": "string"
|
|
20817
21003
|
},
|
|
20818
|
-
"SessionStopped": {
|
|
20819
|
-
"description": "When a stop was requested and the GitHub user who requested it.",
|
|
20820
|
-
"properties": {
|
|
20821
|
-
"at": {
|
|
20822
|
-
"description": "When a stop was requested.",
|
|
20823
|
-
"format": "date-time",
|
|
20824
|
-
"title": "At",
|
|
20825
|
-
"type": "string"
|
|
20826
|
-
},
|
|
20827
|
-
"by": {
|
|
20828
|
-
"anyOf": [
|
|
20829
|
-
{
|
|
20830
|
-
"$ref": "#/components/schemas/GithubAccountSnippet"
|
|
20831
|
-
},
|
|
20832
|
-
{
|
|
20833
|
-
"type": "null"
|
|
20834
|
-
}
|
|
20835
|
-
],
|
|
20836
|
-
"description": "The GitHub user who stopped the session, resolved at read time. Null if the user is unknown or unavailable."
|
|
20837
|
-
}
|
|
20838
|
-
},
|
|
20839
|
-
"required": [
|
|
20840
|
-
"at",
|
|
20841
|
-
"by"
|
|
20842
|
-
],
|
|
20843
|
-
"title": "SessionStopped",
|
|
20844
|
-
"type": "object"
|
|
20845
|
-
},
|
|
20846
21004
|
"SessionSummary": {
|
|
20847
21005
|
"description": "A live one-line summary of what the session is doing, refreshed\nevery few steps while it runs.",
|
|
20848
21006
|
"properties": {
|
|
@@ -20890,155 +21048,6 @@
|
|
|
20890
21048
|
"title": "SessionToolCount",
|
|
20891
21049
|
"type": "object"
|
|
20892
21050
|
},
|
|
20893
|
-
"SessionTurn": {
|
|
20894
|
-
"description": "One message and the agent's answer to it. A turn is `queued` from the\nmoment its message is received, `preparing` while its environment is set\nup, `running` while the agent works, then `completed`, `failed`,\n`stopped`, or `cancelled`.",
|
|
20895
|
-
"properties": {
|
|
20896
|
-
"cost": {
|
|
20897
|
-
"$ref": "#/components/schemas/Cost",
|
|
20898
|
-
"description": "What the turn cost so far, in millicents, broken down by leg."
|
|
20899
|
-
},
|
|
20900
|
-
"created_at": {
|
|
20901
|
-
"description": "When the turn's message was received.",
|
|
20902
|
-
"format": "date-time",
|
|
20903
|
-
"title": "Created At",
|
|
20904
|
-
"type": "string"
|
|
20905
|
-
},
|
|
20906
|
-
"detail": {
|
|
20907
|
-
"anyOf": [
|
|
20908
|
-
{
|
|
20909
|
-
"type": "string"
|
|
20910
|
-
},
|
|
20911
|
-
{
|
|
20912
|
-
"type": "null"
|
|
20913
|
-
}
|
|
20914
|
-
],
|
|
20915
|
-
"description": "A human-readable explanation of a failed, stopped, or cancelled turn, or of why a queued turn waits.",
|
|
20916
|
-
"title": "Detail"
|
|
20917
|
-
},
|
|
20918
|
-
"ended_at": {
|
|
20919
|
-
"anyOf": [
|
|
20920
|
-
{
|
|
20921
|
-
"format": "date-time",
|
|
20922
|
-
"type": "string"
|
|
20923
|
-
},
|
|
20924
|
-
{
|
|
20925
|
-
"type": "null"
|
|
20926
|
-
}
|
|
20927
|
-
],
|
|
20928
|
-
"description": "When the turn reached its final status.",
|
|
20929
|
-
"title": "Ended At"
|
|
20930
|
-
},
|
|
20931
|
-
"id": {
|
|
20932
|
-
"description": "Unique identifier of the turn.",
|
|
20933
|
-
"title": "Id",
|
|
20934
|
-
"type": "string"
|
|
20935
|
-
},
|
|
20936
|
-
"index": {
|
|
20937
|
-
"description": "Position in the session, starting at 0.",
|
|
20938
|
-
"title": "Index",
|
|
20939
|
-
"type": "integer"
|
|
20940
|
-
},
|
|
20941
|
-
"reason": {
|
|
20942
|
-
"anyOf": [
|
|
20943
|
-
{
|
|
20944
|
-
"$ref": "#/components/schemas/TurnReason"
|
|
20945
|
-
},
|
|
20946
|
-
{
|
|
20947
|
-
"type": "null"
|
|
20948
|
-
}
|
|
20949
|
-
],
|
|
20950
|
-
"description": "Why the turn failed or was cancelled; null on every other status."
|
|
20951
|
-
},
|
|
20952
|
-
"started_at": {
|
|
20953
|
-
"anyOf": [
|
|
20954
|
-
{
|
|
20955
|
-
"format": "date-time",
|
|
20956
|
-
"type": "string"
|
|
20957
|
-
},
|
|
20958
|
-
{
|
|
20959
|
-
"type": "null"
|
|
20960
|
-
}
|
|
20961
|
-
],
|
|
20962
|
-
"description": "When the agent started on the message.",
|
|
20963
|
-
"title": "Started At"
|
|
20964
|
-
},
|
|
20965
|
-
"status": {
|
|
20966
|
-
"$ref": "#/components/schemas/TurnStatus",
|
|
20967
|
-
"description": "Where the turn is."
|
|
20968
|
-
},
|
|
20969
|
-
"stopped": {
|
|
20970
|
-
"anyOf": [
|
|
20971
|
-
{
|
|
20972
|
-
"$ref": "#/components/schemas/SessionStopped"
|
|
20973
|
-
},
|
|
20974
|
-
{
|
|
20975
|
-
"type": "null"
|
|
20976
|
-
}
|
|
20977
|
-
],
|
|
20978
|
-
"description": "When and by whom a stop was requested; null when none was."
|
|
20979
|
-
},
|
|
20980
|
-
"tokens": {
|
|
20981
|
-
"$ref": "#/components/schemas/Tokens",
|
|
20982
|
-
"description": "The tokens the turn spent and the model they went to."
|
|
20983
|
-
}
|
|
20984
|
-
},
|
|
20985
|
-
"required": [
|
|
20986
|
-
"cost",
|
|
20987
|
-
"created_at",
|
|
20988
|
-
"detail",
|
|
20989
|
-
"ended_at",
|
|
20990
|
-
"id",
|
|
20991
|
-
"index",
|
|
20992
|
-
"reason",
|
|
20993
|
-
"started_at",
|
|
20994
|
-
"status",
|
|
20995
|
-
"stopped",
|
|
20996
|
-
"tokens"
|
|
20997
|
-
],
|
|
20998
|
-
"title": "SessionTurn",
|
|
20999
|
-
"type": "object"
|
|
21000
|
-
},
|
|
21001
|
-
"SessionTurnResponse": {
|
|
21002
|
-
"description": "One turn.",
|
|
21003
|
-
"properties": {
|
|
21004
|
-
"turn": {
|
|
21005
|
-
"$ref": "#/components/schemas/SessionTurn",
|
|
21006
|
-
"description": "The turn."
|
|
21007
|
-
}
|
|
21008
|
-
},
|
|
21009
|
-
"required": [
|
|
21010
|
-
"turn"
|
|
21011
|
-
],
|
|
21012
|
-
"title": "SessionTurnResponse",
|
|
21013
|
-
"type": "object"
|
|
21014
|
-
},
|
|
21015
|
-
"SessionTurnsListResponse": {
|
|
21016
|
-
"description": "A session's turns and its whole inbox, oldest first.",
|
|
21017
|
-
"properties": {
|
|
21018
|
-
"messages": {
|
|
21019
|
-
"description": "Every message, delivered and pending, oldest first.",
|
|
21020
|
-
"items": {
|
|
21021
|
-
"$ref": "#/components/schemas/SessionMessage"
|
|
21022
|
-
},
|
|
21023
|
-
"title": "Messages",
|
|
21024
|
-
"type": "array"
|
|
21025
|
-
},
|
|
21026
|
-
"turns": {
|
|
21027
|
-
"description": "Every turn, ordered by index.",
|
|
21028
|
-
"items": {
|
|
21029
|
-
"$ref": "#/components/schemas/SessionTurn"
|
|
21030
|
-
},
|
|
21031
|
-
"title": "Turns",
|
|
21032
|
-
"type": "array"
|
|
21033
|
-
}
|
|
21034
|
-
},
|
|
21035
|
-
"required": [
|
|
21036
|
-
"turns",
|
|
21037
|
-
"messages"
|
|
21038
|
-
],
|
|
21039
|
-
"title": "SessionTurnsListResponse",
|
|
21040
|
-
"type": "object"
|
|
21041
|
-
},
|
|
21042
21051
|
"SessionUsageBucket": {
|
|
21043
21052
|
"properties": {
|
|
21044
21053
|
"cache_read_tokens": {
|
|
@@ -21092,6 +21101,14 @@
|
|
|
21092
21101
|
"title": "Has More",
|
|
21093
21102
|
"type": "boolean"
|
|
21094
21103
|
},
|
|
21104
|
+
"message_counts": {
|
|
21105
|
+
"additionalProperties": {
|
|
21106
|
+
"type": "integer"
|
|
21107
|
+
},
|
|
21108
|
+
"description": "How many messages each listed session has received, by session id.",
|
|
21109
|
+
"title": "Message Counts",
|
|
21110
|
+
"type": "object"
|
|
21111
|
+
},
|
|
21095
21112
|
"next_cursor": {
|
|
21096
21113
|
"anyOf": [
|
|
21097
21114
|
{
|
|
@@ -21118,13 +21135,6 @@
|
|
|
21118
21135
|
},
|
|
21119
21136
|
"title": "Sessions",
|
|
21120
21137
|
"type": "array"
|
|
21121
|
-
},
|
|
21122
|
-
"turn_counts": {
|
|
21123
|
-
"additionalProperties": {
|
|
21124
|
-
"type": "integer"
|
|
21125
|
-
},
|
|
21126
|
-
"title": "Turn Counts",
|
|
21127
|
-
"type": "object"
|
|
21128
21138
|
}
|
|
21129
21139
|
},
|
|
21130
21140
|
"required": [
|
|
@@ -21979,7 +21989,7 @@
|
|
|
21979
21989
|
},
|
|
21980
21990
|
"conversation": {
|
|
21981
21991
|
"$ref": "#/components/schemas/SessionConversationConfig-Input",
|
|
21982
|
-
"description": "Conversation settings. Omitted, a raw session is interactive and an agent session keeps the agent's setting.
|
|
21992
|
+
"description": "Conversation settings. Omitted, a raw session is interactive and an agent session keeps the agent's setting. Warmth and prompting are server-owned response fields."
|
|
21983
21993
|
},
|
|
21984
21994
|
"environment": {
|
|
21985
21995
|
"anyOf": [
|
|
@@ -22013,7 +22023,7 @@
|
|
|
22013
22023
|
"description": "Gemini CLI options for this session. Sent fields replace the agent's; naming Gemini CLI on an agent that runs another harness replaces its harness and requires a model. Set at most one of claude_code, codex, or gemini."
|
|
22014
22024
|
},
|
|
22015
22025
|
"images": {
|
|
22016
|
-
"description": "Images attached to the first message, base64 inline. Requires the model's `images` capability, listed by `/v1/account/models`. Each becomes an `[Image #N]` placeholder in the prompt and an image block
|
|
22026
|
+
"description": "Images attached to the first message, base64 inline. Requires the model's `images` capability, listed by `/v1/account/models`. Each becomes an `[Image #N]` placeholder in the prompt and an image block the model sees with it. Up to 10, 5 MiB each; PNG, JPEG, GIF, or WebP.",
|
|
22017
22027
|
"items": {
|
|
22018
22028
|
"$ref": "#/components/schemas/ImageAttachment"
|
|
22019
22029
|
},
|
|
@@ -22230,7 +22240,7 @@
|
|
|
22230
22240
|
},
|
|
22231
22241
|
"conversation": {
|
|
22232
22242
|
"$ref": "#/components/schemas/SessionConversationConfig-Input",
|
|
22233
|
-
"description": "Conversation settings. Omitted, a raw session is interactive and an agent session keeps the agent's setting.
|
|
22243
|
+
"description": "Conversation settings. Omitted, a raw session is interactive and an agent session keeps the agent's setting. Warmth and prompting are server-owned response fields."
|
|
22234
22244
|
},
|
|
22235
22245
|
"environment": {
|
|
22236
22246
|
"anyOf": [
|
|
@@ -22264,7 +22274,7 @@
|
|
|
22264
22274
|
"description": "Gemini CLI input and native options. Set exactly one of claude_code, codex, or gemini."
|
|
22265
22275
|
},
|
|
22266
22276
|
"images": {
|
|
22267
|
-
"description": "Images attached to the first message, base64 inline. Requires the model's `images` capability, listed by `/v1/account/models`. Each becomes an `[Image #N]` placeholder in the prompt and an image block
|
|
22277
|
+
"description": "Images attached to the first message, base64 inline. Requires the model's `images` capability, listed by `/v1/account/models`. Each becomes an `[Image #N]` placeholder in the prompt and an image block the model sees with it. Up to 10, 5 MiB each; PNG, JPEG, GIF, or WebP.",
|
|
22268
22278
|
"items": {
|
|
22269
22279
|
"$ref": "#/components/schemas/ImageAttachment"
|
|
22270
22280
|
},
|
|
@@ -22494,65 +22504,21 @@
|
|
|
22494
22504
|
"title": "TranscriptIngestResult",
|
|
22495
22505
|
"type": "object"
|
|
22496
22506
|
},
|
|
22497
|
-
"
|
|
22498
|
-
"additionalProperties": true,
|
|
22499
|
-
"description": "turn_ended: the turn reached its final status. `status`, `reason`, and\n`detail` match the turn on the session object.",
|
|
22507
|
+
"UninstallGithubAppRequest": {
|
|
22500
22508
|
"properties": {
|
|
22501
|
-
"
|
|
22502
|
-
"
|
|
22503
|
-
{
|
|
22504
|
-
"type": "string"
|
|
22505
|
-
},
|
|
22506
|
-
{
|
|
22507
|
-
"type": "null"
|
|
22508
|
-
}
|
|
22509
|
-
],
|
|
22510
|
-
"title": "Detail"
|
|
22511
|
-
},
|
|
22512
|
-
"duration_ms": {
|
|
22513
|
-
"anyOf": [
|
|
22514
|
-
{
|
|
22515
|
-
"type": "integer"
|
|
22516
|
-
},
|
|
22517
|
-
{
|
|
22518
|
-
"type": "null"
|
|
22519
|
-
}
|
|
22520
|
-
],
|
|
22521
|
-
"title": "Duration Ms"
|
|
22522
|
-
},
|
|
22523
|
-
"reason": {
|
|
22524
|
-
"anyOf": [
|
|
22525
|
-
{
|
|
22526
|
-
"type": "string"
|
|
22527
|
-
},
|
|
22528
|
-
{
|
|
22529
|
-
"type": "null"
|
|
22530
|
-
}
|
|
22531
|
-
],
|
|
22532
|
-
"title": "Reason"
|
|
22533
|
-
},
|
|
22534
|
-
"status": {
|
|
22535
|
-
"title": "Status",
|
|
22536
|
-
"type": "string"
|
|
22537
|
-
},
|
|
22538
|
-
"turn_id": {
|
|
22539
|
-
"title": "Turn Id",
|
|
22509
|
+
"confirm_account_login": {
|
|
22510
|
+
"title": "Confirm Account Login",
|
|
22540
22511
|
"type": "string"
|
|
22541
|
-
},
|
|
22542
|
-
"turn_index": {
|
|
22543
|
-
"title": "Turn Index",
|
|
22544
|
-
"type": "integer"
|
|
22545
22512
|
}
|
|
22546
22513
|
},
|
|
22547
22514
|
"required": [
|
|
22548
|
-
"
|
|
22549
|
-
"turn_index",
|
|
22550
|
-
"status"
|
|
22515
|
+
"confirm_account_login"
|
|
22551
22516
|
],
|
|
22552
|
-
"title": "
|
|
22517
|
+
"title": "UninstallGithubAppRequest",
|
|
22553
22518
|
"type": "object"
|
|
22554
22519
|
},
|
|
22555
|
-
"
|
|
22520
|
+
"UnknownSessionRecord": {
|
|
22521
|
+
"description": "Unrecognized or unparseable payload; the complete original stays readable.",
|
|
22556
22522
|
"properties": {
|
|
22557
22523
|
"cost": {
|
|
22558
22524
|
"anyOf": [
|
|
@@ -22592,459 +22558,12 @@
|
|
|
22592
22558
|
"type": "string"
|
|
22593
22559
|
},
|
|
22594
22560
|
"kind": {
|
|
22595
|
-
"const": "
|
|
22596
|
-
"default": "
|
|
22597
|
-
"title": "Kind",
|
|
22598
|
-
"type": "string"
|
|
22599
|
-
},
|
|
22600
|
-
"model": {
|
|
22601
|
-
"anyOf": [
|
|
22602
|
-
{
|
|
22603
|
-
"type": "string"
|
|
22604
|
-
},
|
|
22605
|
-
{
|
|
22606
|
-
"type": "null"
|
|
22607
|
-
}
|
|
22608
|
-
],
|
|
22609
|
-
"title": "Model"
|
|
22610
|
-
},
|
|
22611
|
-
"payload": {
|
|
22612
|
-
"$ref": "#/components/schemas/TurnEndedPayload"
|
|
22613
|
-
},
|
|
22614
|
-
"record_format": {
|
|
22615
|
-
"const": "ellipsis_lifecycle@1",
|
|
22616
|
-
"default": "ellipsis_lifecycle@1",
|
|
22617
|
-
"title": "Record Format",
|
|
22618
|
-
"type": "string"
|
|
22619
|
-
},
|
|
22620
|
-
"record_type": {
|
|
22621
|
-
"const": "turn_ended",
|
|
22622
|
-
"default": "turn_ended",
|
|
22623
|
-
"title": "Record Type",
|
|
22624
|
-
"type": "string"
|
|
22625
|
-
},
|
|
22626
|
-
"session_id": {
|
|
22627
|
-
"description": "Session containing this record.",
|
|
22628
|
-
"title": "Session Id",
|
|
22629
|
-
"type": "string"
|
|
22630
|
-
},
|
|
22631
|
-
"session_message_id": {
|
|
22632
|
-
"anyOf": [
|
|
22633
|
-
{
|
|
22634
|
-
"type": "string"
|
|
22635
|
-
},
|
|
22636
|
-
{
|
|
22637
|
-
"type": "null"
|
|
22638
|
-
}
|
|
22639
|
-
],
|
|
22640
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
22641
|
-
"title": "Session Message Id"
|
|
22642
|
-
},
|
|
22643
|
-
"source": {
|
|
22644
|
-
"const": "lifecycle",
|
|
22645
|
-
"default": "lifecycle",
|
|
22646
|
-
"title": "Source",
|
|
22647
|
-
"type": "string"
|
|
22648
|
-
},
|
|
22649
|
-
"tokens_info": {
|
|
22650
|
-
"anyOf": [
|
|
22651
|
-
{
|
|
22652
|
-
"$ref": "#/components/schemas/TokensInfo"
|
|
22653
|
-
},
|
|
22654
|
-
{
|
|
22655
|
-
"type": "null"
|
|
22656
|
-
}
|
|
22657
|
-
]
|
|
22658
|
-
},
|
|
22659
|
-
"tools": {
|
|
22660
|
-
"anyOf": [
|
|
22661
|
-
{
|
|
22662
|
-
"items": {
|
|
22663
|
-
"type": "string"
|
|
22664
|
-
},
|
|
22665
|
-
"type": "array"
|
|
22666
|
-
},
|
|
22667
|
-
{
|
|
22668
|
-
"type": "null"
|
|
22669
|
-
}
|
|
22670
|
-
],
|
|
22671
|
-
"title": "Tools"
|
|
22672
|
-
},
|
|
22673
|
-
"turn_id": {
|
|
22674
|
-
"anyOf": [
|
|
22675
|
-
{
|
|
22676
|
-
"type": "string"
|
|
22677
|
-
},
|
|
22678
|
-
{
|
|
22679
|
-
"type": "null"
|
|
22680
|
-
}
|
|
22681
|
-
],
|
|
22682
|
-
"description": "Turn containing this record, when applicable.",
|
|
22683
|
-
"title": "Turn Id"
|
|
22684
|
-
}
|
|
22685
|
-
},
|
|
22686
|
-
"required": [
|
|
22687
|
-
"id",
|
|
22688
|
-
"session_id",
|
|
22689
|
-
"turn_id",
|
|
22690
|
-
"session_message_id",
|
|
22691
|
-
"feed_seq",
|
|
22692
|
-
"source",
|
|
22693
|
-
"record_type",
|
|
22694
|
-
"record_format",
|
|
22695
|
-
"payload",
|
|
22696
|
-
"tools",
|
|
22697
|
-
"tokens_info",
|
|
22698
|
-
"cost",
|
|
22699
|
-
"duration",
|
|
22700
|
-
"model",
|
|
22701
|
-
"created_at",
|
|
22702
|
-
"kind"
|
|
22703
|
-
],
|
|
22704
|
-
"title": "TurnEndedRecord",
|
|
22705
|
-
"type": "object",
|
|
22706
|
-
"x-ellipsis-preserve-payload": true
|
|
22707
|
-
},
|
|
22708
|
-
"TurnQueuedPayload": {
|
|
22709
|
-
"additionalProperties": true,
|
|
22710
|
-
"description": "turn_queued: the turn waits because the account already has\n`sessions_alive` sessions alive, its limit.",
|
|
22711
|
-
"properties": {
|
|
22712
|
-
"limit": {
|
|
22713
|
-
"title": "Limit",
|
|
22714
|
-
"type": "integer"
|
|
22715
|
-
},
|
|
22716
|
-
"sessions_alive": {
|
|
22717
|
-
"title": "Sessions Alive",
|
|
22718
|
-
"type": "integer"
|
|
22719
|
-
},
|
|
22720
|
-
"turn_id": {
|
|
22721
|
-
"title": "Turn Id",
|
|
22722
|
-
"type": "string"
|
|
22723
|
-
}
|
|
22724
|
-
},
|
|
22725
|
-
"required": [
|
|
22726
|
-
"turn_id",
|
|
22727
|
-
"sessions_alive",
|
|
22728
|
-
"limit"
|
|
22729
|
-
],
|
|
22730
|
-
"title": "TurnQueuedPayload",
|
|
22731
|
-
"type": "object"
|
|
22732
|
-
},
|
|
22733
|
-
"TurnQueuedRecord": {
|
|
22734
|
-
"properties": {
|
|
22735
|
-
"cost": {
|
|
22736
|
-
"anyOf": [
|
|
22737
|
-
{
|
|
22738
|
-
"type": "integer"
|
|
22739
|
-
},
|
|
22740
|
-
{
|
|
22741
|
-
"type": "null"
|
|
22742
|
-
}
|
|
22743
|
-
],
|
|
22744
|
-
"title": "Cost"
|
|
22745
|
-
},
|
|
22746
|
-
"created_at": {
|
|
22747
|
-
"format": "date-time",
|
|
22748
|
-
"title": "Created At",
|
|
22749
|
-
"type": "string"
|
|
22750
|
-
},
|
|
22751
|
-
"duration": {
|
|
22752
|
-
"anyOf": [
|
|
22753
|
-
{
|
|
22754
|
-
"type": "integer"
|
|
22755
|
-
},
|
|
22756
|
-
{
|
|
22757
|
-
"type": "null"
|
|
22758
|
-
}
|
|
22759
|
-
],
|
|
22760
|
-
"title": "Duration"
|
|
22761
|
-
},
|
|
22762
|
-
"feed_seq": {
|
|
22763
|
-
"description": "Position in the session feed and the stream's resume cursor.",
|
|
22764
|
-
"title": "Feed Seq",
|
|
22765
|
-
"type": "integer"
|
|
22766
|
-
},
|
|
22767
|
-
"id": {
|
|
22768
|
-
"description": "Unique identifier of the record.",
|
|
22769
|
-
"title": "Id",
|
|
22770
|
-
"type": "string"
|
|
22771
|
-
},
|
|
22772
|
-
"kind": {
|
|
22773
|
-
"const": "platform",
|
|
22774
|
-
"default": "platform",
|
|
22775
|
-
"title": "Kind",
|
|
22776
|
-
"type": "string"
|
|
22777
|
-
},
|
|
22778
|
-
"model": {
|
|
22779
|
-
"anyOf": [
|
|
22780
|
-
{
|
|
22781
|
-
"type": "string"
|
|
22782
|
-
},
|
|
22783
|
-
{
|
|
22784
|
-
"type": "null"
|
|
22785
|
-
}
|
|
22786
|
-
],
|
|
22787
|
-
"title": "Model"
|
|
22788
|
-
},
|
|
22789
|
-
"payload": {
|
|
22790
|
-
"$ref": "#/components/schemas/TurnQueuedPayload"
|
|
22791
|
-
},
|
|
22792
|
-
"record_format": {
|
|
22793
|
-
"const": "ellipsis_lifecycle@1",
|
|
22794
|
-
"default": "ellipsis_lifecycle@1",
|
|
22795
|
-
"title": "Record Format",
|
|
22796
|
-
"type": "string"
|
|
22797
|
-
},
|
|
22798
|
-
"record_type": {
|
|
22799
|
-
"const": "turn_queued",
|
|
22800
|
-
"default": "turn_queued",
|
|
22801
|
-
"title": "Record Type",
|
|
22802
|
-
"type": "string"
|
|
22803
|
-
},
|
|
22804
|
-
"session_id": {
|
|
22805
|
-
"description": "Session containing this record.",
|
|
22806
|
-
"title": "Session Id",
|
|
22807
|
-
"type": "string"
|
|
22808
|
-
},
|
|
22809
|
-
"session_message_id": {
|
|
22810
|
-
"anyOf": [
|
|
22811
|
-
{
|
|
22812
|
-
"type": "string"
|
|
22813
|
-
},
|
|
22814
|
-
{
|
|
22815
|
-
"type": "null"
|
|
22816
|
-
}
|
|
22817
|
-
],
|
|
22818
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
22819
|
-
"title": "Session Message Id"
|
|
22820
|
-
},
|
|
22821
|
-
"source": {
|
|
22822
|
-
"const": "lifecycle",
|
|
22823
|
-
"default": "lifecycle",
|
|
22824
|
-
"title": "Source",
|
|
22825
|
-
"type": "string"
|
|
22826
|
-
},
|
|
22827
|
-
"tokens_info": {
|
|
22828
|
-
"anyOf": [
|
|
22829
|
-
{
|
|
22830
|
-
"$ref": "#/components/schemas/TokensInfo"
|
|
22831
|
-
},
|
|
22832
|
-
{
|
|
22833
|
-
"type": "null"
|
|
22834
|
-
}
|
|
22835
|
-
]
|
|
22836
|
-
},
|
|
22837
|
-
"tools": {
|
|
22838
|
-
"anyOf": [
|
|
22839
|
-
{
|
|
22840
|
-
"items": {
|
|
22841
|
-
"type": "string"
|
|
22842
|
-
},
|
|
22843
|
-
"type": "array"
|
|
22844
|
-
},
|
|
22845
|
-
{
|
|
22846
|
-
"type": "null"
|
|
22847
|
-
}
|
|
22848
|
-
],
|
|
22849
|
-
"title": "Tools"
|
|
22850
|
-
},
|
|
22851
|
-
"turn_id": {
|
|
22852
|
-
"anyOf": [
|
|
22853
|
-
{
|
|
22854
|
-
"type": "string"
|
|
22855
|
-
},
|
|
22856
|
-
{
|
|
22857
|
-
"type": "null"
|
|
22858
|
-
}
|
|
22859
|
-
],
|
|
22860
|
-
"description": "Turn containing this record, when applicable.",
|
|
22861
|
-
"title": "Turn Id"
|
|
22862
|
-
}
|
|
22863
|
-
},
|
|
22864
|
-
"required": [
|
|
22865
|
-
"id",
|
|
22866
|
-
"session_id",
|
|
22867
|
-
"turn_id",
|
|
22868
|
-
"session_message_id",
|
|
22869
|
-
"feed_seq",
|
|
22870
|
-
"source",
|
|
22871
|
-
"record_type",
|
|
22872
|
-
"record_format",
|
|
22873
|
-
"payload",
|
|
22874
|
-
"tools",
|
|
22875
|
-
"tokens_info",
|
|
22876
|
-
"cost",
|
|
22877
|
-
"duration",
|
|
22878
|
-
"model",
|
|
22879
|
-
"created_at",
|
|
22880
|
-
"kind"
|
|
22881
|
-
],
|
|
22882
|
-
"title": "TurnQueuedRecord",
|
|
22883
|
-
"type": "object",
|
|
22884
|
-
"x-ellipsis-preserve-payload": true
|
|
22885
|
-
},
|
|
22886
|
-
"TurnReason": {
|
|
22887
|
-
"description": "Why a turn failed or was cancelled. Null on every other outcome.",
|
|
22888
|
-
"enum": [
|
|
22889
|
-
"error",
|
|
22890
|
-
"tool_call_failed",
|
|
22891
|
-
"budget_hit",
|
|
22892
|
-
"payment_required",
|
|
22893
|
-
"blocked",
|
|
22894
|
-
"contact_email_required",
|
|
22895
|
-
"lifecycle_hook_failed",
|
|
22896
|
-
"missing_repo_access",
|
|
22897
|
-
"missing_token_permissions",
|
|
22898
|
-
"missing_environment_variables",
|
|
22899
|
-
"missing_github_integration",
|
|
22900
|
-
"agent_unavailable",
|
|
22901
|
-
"upstream_unavailable",
|
|
22902
|
-
"unsupported_configuration",
|
|
22903
|
-
"execution_disabled",
|
|
22904
|
-
"interrupted"
|
|
22905
|
-
],
|
|
22906
|
-
"title": "TurnReason",
|
|
22907
|
-
"type": "string"
|
|
22908
|
-
},
|
|
22909
|
-
"TurnStartedPayload": {
|
|
22910
|
-
"additionalProperties": true,
|
|
22911
|
-
"description": "turn_started: the agent started on the turn's message.",
|
|
22912
|
-
"properties": {
|
|
22913
|
-
"turn_id": {
|
|
22914
|
-
"title": "Turn Id",
|
|
22915
|
-
"type": "string"
|
|
22916
|
-
},
|
|
22917
|
-
"turn_index": {
|
|
22918
|
-
"title": "Turn Index",
|
|
22919
|
-
"type": "integer"
|
|
22920
|
-
}
|
|
22921
|
-
},
|
|
22922
|
-
"required": [
|
|
22923
|
-
"turn_id",
|
|
22924
|
-
"turn_index"
|
|
22925
|
-
],
|
|
22926
|
-
"title": "TurnStartedPayload",
|
|
22927
|
-
"type": "object"
|
|
22928
|
-
},
|
|
22929
|
-
"TurnStartedRecord": {
|
|
22930
|
-
"properties": {
|
|
22931
|
-
"cost": {
|
|
22932
|
-
"anyOf": [
|
|
22933
|
-
{
|
|
22934
|
-
"type": "integer"
|
|
22935
|
-
},
|
|
22936
|
-
{
|
|
22937
|
-
"type": "null"
|
|
22938
|
-
}
|
|
22939
|
-
],
|
|
22940
|
-
"title": "Cost"
|
|
22941
|
-
},
|
|
22942
|
-
"created_at": {
|
|
22943
|
-
"format": "date-time",
|
|
22944
|
-
"title": "Created At",
|
|
22945
|
-
"type": "string"
|
|
22946
|
-
},
|
|
22947
|
-
"duration": {
|
|
22948
|
-
"anyOf": [
|
|
22949
|
-
{
|
|
22950
|
-
"type": "integer"
|
|
22951
|
-
},
|
|
22952
|
-
{
|
|
22953
|
-
"type": "null"
|
|
22954
|
-
}
|
|
22955
|
-
],
|
|
22956
|
-
"title": "Duration"
|
|
22957
|
-
},
|
|
22958
|
-
"feed_seq": {
|
|
22959
|
-
"description": "Position in the session feed and the stream's resume cursor.",
|
|
22960
|
-
"title": "Feed Seq",
|
|
22961
|
-
"type": "integer"
|
|
22962
|
-
},
|
|
22963
|
-
"id": {
|
|
22964
|
-
"description": "Unique identifier of the record.",
|
|
22965
|
-
"title": "Id",
|
|
22966
|
-
"type": "string"
|
|
22967
|
-
},
|
|
22968
|
-
"kind": {
|
|
22969
|
-
"const": "platform",
|
|
22970
|
-
"default": "platform",
|
|
22561
|
+
"const": "unknown",
|
|
22562
|
+
"default": "unknown",
|
|
22971
22563
|
"title": "Kind",
|
|
22972
22564
|
"type": "string"
|
|
22973
22565
|
},
|
|
22974
|
-
"
|
|
22975
|
-
"anyOf": [
|
|
22976
|
-
{
|
|
22977
|
-
"type": "string"
|
|
22978
|
-
},
|
|
22979
|
-
{
|
|
22980
|
-
"type": "null"
|
|
22981
|
-
}
|
|
22982
|
-
],
|
|
22983
|
-
"title": "Model"
|
|
22984
|
-
},
|
|
22985
|
-
"payload": {
|
|
22986
|
-
"$ref": "#/components/schemas/TurnStartedPayload"
|
|
22987
|
-
},
|
|
22988
|
-
"record_format": {
|
|
22989
|
-
"const": "ellipsis_lifecycle@1",
|
|
22990
|
-
"default": "ellipsis_lifecycle@1",
|
|
22991
|
-
"title": "Record Format",
|
|
22992
|
-
"type": "string"
|
|
22993
|
-
},
|
|
22994
|
-
"record_type": {
|
|
22995
|
-
"const": "turn_started",
|
|
22996
|
-
"default": "turn_started",
|
|
22997
|
-
"title": "Record Type",
|
|
22998
|
-
"type": "string"
|
|
22999
|
-
},
|
|
23000
|
-
"session_id": {
|
|
23001
|
-
"description": "Session containing this record.",
|
|
23002
|
-
"title": "Session Id",
|
|
23003
|
-
"type": "string"
|
|
23004
|
-
},
|
|
23005
|
-
"session_message_id": {
|
|
23006
|
-
"anyOf": [
|
|
23007
|
-
{
|
|
23008
|
-
"type": "string"
|
|
23009
|
-
},
|
|
23010
|
-
{
|
|
23011
|
-
"type": "null"
|
|
23012
|
-
}
|
|
23013
|
-
],
|
|
23014
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
23015
|
-
"title": "Session Message Id"
|
|
23016
|
-
},
|
|
23017
|
-
"source": {
|
|
23018
|
-
"const": "lifecycle",
|
|
23019
|
-
"default": "lifecycle",
|
|
23020
|
-
"title": "Source",
|
|
23021
|
-
"type": "string"
|
|
23022
|
-
},
|
|
23023
|
-
"tokens_info": {
|
|
23024
|
-
"anyOf": [
|
|
23025
|
-
{
|
|
23026
|
-
"$ref": "#/components/schemas/TokensInfo"
|
|
23027
|
-
},
|
|
23028
|
-
{
|
|
23029
|
-
"type": "null"
|
|
23030
|
-
}
|
|
23031
|
-
]
|
|
23032
|
-
},
|
|
23033
|
-
"tools": {
|
|
23034
|
-
"anyOf": [
|
|
23035
|
-
{
|
|
23036
|
-
"items": {
|
|
23037
|
-
"type": "string"
|
|
23038
|
-
},
|
|
23039
|
-
"type": "array"
|
|
23040
|
-
},
|
|
23041
|
-
{
|
|
23042
|
-
"type": "null"
|
|
23043
|
-
}
|
|
23044
|
-
],
|
|
23045
|
-
"title": "Tools"
|
|
23046
|
-
},
|
|
23047
|
-
"turn_id": {
|
|
22566
|
+
"message_id": {
|
|
23048
22567
|
"anyOf": [
|
|
23049
22568
|
{
|
|
23050
22569
|
"type": "string"
|
|
@@ -23053,104 +22572,8 @@
|
|
|
23053
22572
|
"type": "null"
|
|
23054
22573
|
}
|
|
23055
22574
|
],
|
|
23056
|
-
"description": "
|
|
23057
|
-
"title": "
|
|
23058
|
-
}
|
|
23059
|
-
},
|
|
23060
|
-
"required": [
|
|
23061
|
-
"id",
|
|
23062
|
-
"session_id",
|
|
23063
|
-
"turn_id",
|
|
23064
|
-
"session_message_id",
|
|
23065
|
-
"feed_seq",
|
|
23066
|
-
"source",
|
|
23067
|
-
"record_type",
|
|
23068
|
-
"record_format",
|
|
23069
|
-
"payload",
|
|
23070
|
-
"tools",
|
|
23071
|
-
"tokens_info",
|
|
23072
|
-
"cost",
|
|
23073
|
-
"duration",
|
|
23074
|
-
"model",
|
|
23075
|
-
"created_at",
|
|
23076
|
-
"kind"
|
|
23077
|
-
],
|
|
23078
|
-
"title": "TurnStartedRecord",
|
|
23079
|
-
"type": "object",
|
|
23080
|
-
"x-ellipsis-preserve-payload": true
|
|
23081
|
-
},
|
|
23082
|
-
"TurnStatus": {
|
|
23083
|
-
"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.",
|
|
23084
|
-
"enum": [
|
|
23085
|
-
"queued",
|
|
23086
|
-
"preparing",
|
|
23087
|
-
"running",
|
|
23088
|
-
"completed",
|
|
23089
|
-
"failed",
|
|
23090
|
-
"stopped",
|
|
23091
|
-
"cancelled"
|
|
23092
|
-
],
|
|
23093
|
-
"title": "TurnStatus",
|
|
23094
|
-
"type": "string"
|
|
23095
|
-
},
|
|
23096
|
-
"UninstallGithubAppRequest": {
|
|
23097
|
-
"properties": {
|
|
23098
|
-
"confirm_account_login": {
|
|
23099
|
-
"title": "Confirm Account Login",
|
|
23100
|
-
"type": "string"
|
|
23101
|
-
}
|
|
23102
|
-
},
|
|
23103
|
-
"required": [
|
|
23104
|
-
"confirm_account_login"
|
|
23105
|
-
],
|
|
23106
|
-
"title": "UninstallGithubAppRequest",
|
|
23107
|
-
"type": "object"
|
|
23108
|
-
},
|
|
23109
|
-
"UnknownSessionRecord": {
|
|
23110
|
-
"description": "Unrecognized or unparseable payload; the complete original stays readable.",
|
|
23111
|
-
"properties": {
|
|
23112
|
-
"cost": {
|
|
23113
|
-
"anyOf": [
|
|
23114
|
-
{
|
|
23115
|
-
"type": "integer"
|
|
23116
|
-
},
|
|
23117
|
-
{
|
|
23118
|
-
"type": "null"
|
|
23119
|
-
}
|
|
23120
|
-
],
|
|
23121
|
-
"title": "Cost"
|
|
23122
|
-
},
|
|
23123
|
-
"created_at": {
|
|
23124
|
-
"format": "date-time",
|
|
23125
|
-
"title": "Created At",
|
|
23126
|
-
"type": "string"
|
|
23127
|
-
},
|
|
23128
|
-
"duration": {
|
|
23129
|
-
"anyOf": [
|
|
23130
|
-
{
|
|
23131
|
-
"type": "integer"
|
|
23132
|
-
},
|
|
23133
|
-
{
|
|
23134
|
-
"type": "null"
|
|
23135
|
-
}
|
|
23136
|
-
],
|
|
23137
|
-
"title": "Duration"
|
|
23138
|
-
},
|
|
23139
|
-
"feed_seq": {
|
|
23140
|
-
"description": "Position in the session feed and the stream's resume cursor.",
|
|
23141
|
-
"title": "Feed Seq",
|
|
23142
|
-
"type": "integer"
|
|
23143
|
-
},
|
|
23144
|
-
"id": {
|
|
23145
|
-
"description": "Unique identifier of the record.",
|
|
23146
|
-
"title": "Id",
|
|
23147
|
-
"type": "string"
|
|
23148
|
-
},
|
|
23149
|
-
"kind": {
|
|
23150
|
-
"const": "unknown",
|
|
23151
|
-
"default": "unknown",
|
|
23152
|
-
"title": "Kind",
|
|
23153
|
-
"type": "string"
|
|
22575
|
+
"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.",
|
|
22576
|
+
"title": "Message Id"
|
|
23154
22577
|
},
|
|
23155
22578
|
"model": {
|
|
23156
22579
|
"anyOf": [
|
|
@@ -23183,18 +22606,6 @@
|
|
|
23183
22606
|
"title": "Session Id",
|
|
23184
22607
|
"type": "string"
|
|
23185
22608
|
},
|
|
23186
|
-
"session_message_id": {
|
|
23187
|
-
"anyOf": [
|
|
23188
|
-
{
|
|
23189
|
-
"type": "string"
|
|
23190
|
-
},
|
|
23191
|
-
{
|
|
23192
|
-
"type": "null"
|
|
23193
|
-
}
|
|
23194
|
-
],
|
|
23195
|
-
"description": "Message this record receives, delivers, requeues, or echoes.",
|
|
23196
|
-
"title": "Session Message Id"
|
|
23197
|
-
},
|
|
23198
22609
|
"source": {
|
|
23199
22610
|
"description": "Original producer. Unknown producers remain readable as unknown records.",
|
|
23200
22611
|
"title": "Source",
|
|
@@ -23223,25 +22634,12 @@
|
|
|
23223
22634
|
}
|
|
23224
22635
|
],
|
|
23225
22636
|
"title": "Tools"
|
|
23226
|
-
},
|
|
23227
|
-
"turn_id": {
|
|
23228
|
-
"anyOf": [
|
|
23229
|
-
{
|
|
23230
|
-
"type": "string"
|
|
23231
|
-
},
|
|
23232
|
-
{
|
|
23233
|
-
"type": "null"
|
|
23234
|
-
}
|
|
23235
|
-
],
|
|
23236
|
-
"description": "Turn containing this record, when applicable.",
|
|
23237
|
-
"title": "Turn Id"
|
|
23238
22637
|
}
|
|
23239
22638
|
},
|
|
23240
22639
|
"required": [
|
|
23241
22640
|
"id",
|
|
23242
22641
|
"session_id",
|
|
23243
|
-
"
|
|
23244
|
-
"session_message_id",
|
|
22642
|
+
"message_id",
|
|
23245
22643
|
"feed_seq",
|
|
23246
22644
|
"source",
|
|
23247
22645
|
"record_type",
|
|
@@ -34167,7 +33565,7 @@
|
|
|
34167
33565
|
},
|
|
34168
33566
|
"/v1/sessions": {
|
|
34169
33567
|
"get": {
|
|
34170
|
-
"description": "List cloud agent sessions, newest first.\n\nOptionally filtered by agent (id or name), source, service, handler, time\nwindow, attributed author, repository, and
|
|
33568
|
+
"description": "List cloud agent sessions, newest first.\n\nOptionally filtered by agent (id or name), source, service, handler, time\nwindow, attributed author, repository, and status.",
|
|
34171
33569
|
"operationId": "list_sessions",
|
|
34172
33570
|
"parameters": [
|
|
34173
33571
|
{
|
|
@@ -34358,15 +33756,24 @@
|
|
|
34358
33756
|
}
|
|
34359
33757
|
},
|
|
34360
33758
|
{
|
|
34361
|
-
"description": "Keep only sessions
|
|
33759
|
+
"description": "Keep only sessions in these statuses.",
|
|
34362
33760
|
"in": "query",
|
|
34363
|
-
"name": "
|
|
33761
|
+
"name": "status",
|
|
34364
33762
|
"required": false,
|
|
34365
33763
|
"schema": {
|
|
34366
|
-
"
|
|
34367
|
-
|
|
34368
|
-
|
|
34369
|
-
|
|
33764
|
+
"anyOf": [
|
|
33765
|
+
{
|
|
33766
|
+
"items": {
|
|
33767
|
+
"$ref": "#/components/schemas/SessionStatus"
|
|
33768
|
+
},
|
|
33769
|
+
"type": "array"
|
|
33770
|
+
},
|
|
33771
|
+
{
|
|
33772
|
+
"type": "null"
|
|
33773
|
+
}
|
|
33774
|
+
],
|
|
33775
|
+
"description": "Keep only sessions in these statuses.",
|
|
33776
|
+
"title": "Status"
|
|
34370
33777
|
}
|
|
34371
33778
|
},
|
|
34372
33779
|
{
|
|
@@ -34788,7 +34195,7 @@
|
|
|
34788
34195
|
}
|
|
34789
34196
|
},
|
|
34790
34197
|
{
|
|
34791
|
-
"description": "
|
|
34198
|
+
"description": "Keep only sessions in these statuses.",
|
|
34792
34199
|
"in": "query",
|
|
34793
34200
|
"name": "status",
|
|
34794
34201
|
"required": false,
|
|
@@ -34796,7 +34203,7 @@
|
|
|
34796
34203
|
"anyOf": [
|
|
34797
34204
|
{
|
|
34798
34205
|
"items": {
|
|
34799
|
-
"$ref": "#/components/schemas/
|
|
34206
|
+
"$ref": "#/components/schemas/SessionStatus"
|
|
34800
34207
|
},
|
|
34801
34208
|
"type": "array"
|
|
34802
34209
|
},
|
|
@@ -34804,7 +34211,7 @@
|
|
|
34804
34211
|
"type": "null"
|
|
34805
34212
|
}
|
|
34806
34213
|
],
|
|
34807
|
-
"description": "
|
|
34214
|
+
"description": "Keep only sessions in these statuses.",
|
|
34808
34215
|
"title": "Status"
|
|
34809
34216
|
}
|
|
34810
34217
|
},
|
|
@@ -35898,7 +35305,7 @@
|
|
|
35898
35305
|
},
|
|
35899
35306
|
"/v1/sessions/{id}/messages": {
|
|
35900
35307
|
"post": {
|
|
35901
|
-
"description": "Send a message to a session.\n\n409 for mention, non-interactive, closed, and out-of-budget\nsessions. Returns the created message
|
|
35308
|
+
"description": "Send a message to a session.\n\n409 for mention, non-interactive, closed, and out-of-budget\nsessions. Returns the created message; a retried send with the\nsame idempotency_key returns the original one. The message is\nanswered once the session's status is `idle` or `closed`.",
|
|
35902
35309
|
"operationId": "send_session_message",
|
|
35903
35310
|
"parameters": [
|
|
35904
35311
|
{
|
|
@@ -36240,6 +35647,24 @@
|
|
|
36240
35647
|
"title": "Limit"
|
|
36241
35648
|
}
|
|
36242
35649
|
},
|
|
35650
|
+
{
|
|
35651
|
+
"description": "Keep only the records of this message.",
|
|
35652
|
+
"in": "query",
|
|
35653
|
+
"name": "message_id",
|
|
35654
|
+
"required": false,
|
|
35655
|
+
"schema": {
|
|
35656
|
+
"anyOf": [
|
|
35657
|
+
{
|
|
35658
|
+
"type": "string"
|
|
35659
|
+
},
|
|
35660
|
+
{
|
|
35661
|
+
"type": "null"
|
|
35662
|
+
}
|
|
35663
|
+
],
|
|
35664
|
+
"description": "Keep only the records of this message.",
|
|
35665
|
+
"title": "Message Id"
|
|
35666
|
+
}
|
|
35667
|
+
},
|
|
36243
35668
|
{
|
|
36244
35669
|
"in": "header",
|
|
36245
35670
|
"name": "user-agent",
|
|
@@ -36365,7 +35790,7 @@
|
|
|
36365
35790
|
},
|
|
36366
35791
|
"/v1/sessions/{id}/stop": {
|
|
36367
35792
|
"post": {
|
|
36368
|
-
"description": "Stop the
|
|
35793
|
+
"description": "Stop the session's work and return it.\n\nThe running message ends `stopped` and every queued message is\ncancelled, so the session goes `idle` (or `closed` when it was\nnot interactive). 409 when the session is idle or closed already.",
|
|
36369
35794
|
"operationId": "stop_session",
|
|
36370
35795
|
"parameters": [
|
|
36371
35796
|
{
|
|
@@ -36443,7 +35868,7 @@
|
|
|
36443
35868
|
}
|
|
36444
35869
|
}
|
|
36445
35870
|
},
|
|
36446
|
-
"description": "
|
|
35871
|
+
"description": "The session is idle or closed."
|
|
36447
35872
|
},
|
|
36448
35873
|
"422": {
|
|
36449
35874
|
"content": {
|
|
@@ -36795,289 +36220,6 @@
|
|
|
36795
36220
|
"x-ellipsis-undocumented": true
|
|
36796
36221
|
}
|
|
36797
36222
|
},
|
|
36798
|
-
"/v1/sessions/{id}/turns": {
|
|
36799
|
-
"get": {
|
|
36800
|
-
"description": "Return the session's turns and messages, oldest first.\n\nOne turn per message: pending until the agent starts on it,\nrunning while it works, then completed, failed, stopped, or\ncancelled.",
|
|
36801
|
-
"operationId": "get_session_turns",
|
|
36802
|
-
"parameters": [
|
|
36803
|
-
{
|
|
36804
|
-
"in": "path",
|
|
36805
|
-
"name": "id",
|
|
36806
|
-
"required": true,
|
|
36807
|
-
"schema": {
|
|
36808
|
-
"title": "Id",
|
|
36809
|
-
"type": "string"
|
|
36810
|
-
}
|
|
36811
|
-
},
|
|
36812
|
-
{
|
|
36813
|
-
"in": "header",
|
|
36814
|
-
"name": "user-agent",
|
|
36815
|
-
"required": false,
|
|
36816
|
-
"schema": {
|
|
36817
|
-
"anyOf": [
|
|
36818
|
-
{
|
|
36819
|
-
"type": "string"
|
|
36820
|
-
},
|
|
36821
|
-
{
|
|
36822
|
-
"type": "null"
|
|
36823
|
-
}
|
|
36824
|
-
],
|
|
36825
|
-
"title": "User-Agent"
|
|
36826
|
-
}
|
|
36827
|
-
}
|
|
36828
|
-
],
|
|
36829
|
-
"responses": {
|
|
36830
|
-
"200": {
|
|
36831
|
-
"content": {
|
|
36832
|
-
"application/json": {
|
|
36833
|
-
"schema": {
|
|
36834
|
-
"$ref": "#/components/schemas/SessionTurnsListResponse"
|
|
36835
|
-
}
|
|
36836
|
-
}
|
|
36837
|
-
},
|
|
36838
|
-
"description": "Successful Response"
|
|
36839
|
-
},
|
|
36840
|
-
"401": {
|
|
36841
|
-
"content": {
|
|
36842
|
-
"application/json": {
|
|
36843
|
-
"schema": {
|
|
36844
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
36845
|
-
}
|
|
36846
|
-
}
|
|
36847
|
-
},
|
|
36848
|
-
"description": "The bearer token is missing, invalid, or revoked."
|
|
36849
|
-
},
|
|
36850
|
-
"403": {
|
|
36851
|
-
"content": {
|
|
36852
|
-
"application/json": {
|
|
36853
|
-
"schema": {
|
|
36854
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
36855
|
-
}
|
|
36856
|
-
}
|
|
36857
|
-
},
|
|
36858
|
-
"description": "The credential may not perform this action, or the account is blocked."
|
|
36859
|
-
},
|
|
36860
|
-
"404": {
|
|
36861
|
-
"content": {
|
|
36862
|
-
"application/json": {
|
|
36863
|
-
"schema": {
|
|
36864
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
36865
|
-
}
|
|
36866
|
-
}
|
|
36867
|
-
},
|
|
36868
|
-
"description": "No such session in your account."
|
|
36869
|
-
},
|
|
36870
|
-
"422": {
|
|
36871
|
-
"content": {
|
|
36872
|
-
"application/json": {
|
|
36873
|
-
"schema": {
|
|
36874
|
-
"$ref": "#/components/schemas/HTTPValidationError"
|
|
36875
|
-
}
|
|
36876
|
-
}
|
|
36877
|
-
},
|
|
36878
|
-
"description": "Validation Error"
|
|
36879
|
-
}
|
|
36880
|
-
},
|
|
36881
|
-
"security": [
|
|
36882
|
-
{
|
|
36883
|
-
"HTTPBearer": []
|
|
36884
|
-
}
|
|
36885
|
-
],
|
|
36886
|
-
"summary": "Get Session Turns",
|
|
36887
|
-
"tags": [
|
|
36888
|
-
"v1"
|
|
36889
|
-
],
|
|
36890
|
-
"x-ellipsis-permissions": {
|
|
36891
|
-
"constraints": [
|
|
36892
|
-
{
|
|
36893
|
-
"account_admin_fields": [],
|
|
36894
|
-
"identity": null,
|
|
36895
|
-
"sandbox_scope": null
|
|
36896
|
-
}
|
|
36897
|
-
],
|
|
36898
|
-
"description": "Required permissions: read:sessions.\nAPI key: Supported.\nCLI user token: Supported.\nSession token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.\nHigher permission levels include lower levels: read < write < delete.\nGrant match patterns can further restrict access to individual resources.",
|
|
36899
|
-
"notes": [
|
|
36900
|
-
"Higher permission levels include lower levels: read < write < delete.",
|
|
36901
|
-
"Grant match patterns can further restrict access to individual resources."
|
|
36902
|
-
],
|
|
36903
|
-
"required": [
|
|
36904
|
-
{
|
|
36905
|
-
"level": "read",
|
|
36906
|
-
"resource": "sessions"
|
|
36907
|
-
}
|
|
36908
|
-
],
|
|
36909
|
-
"tokens": [
|
|
36910
|
-
{
|
|
36911
|
-
"available": true,
|
|
36912
|
-
"conditions": [],
|
|
36913
|
-
"kind": "api_key",
|
|
36914
|
-
"label": "API key"
|
|
36915
|
-
},
|
|
36916
|
-
{
|
|
36917
|
-
"available": true,
|
|
36918
|
-
"conditions": [],
|
|
36919
|
-
"kind": "user_token",
|
|
36920
|
-
"label": "CLI user token"
|
|
36921
|
-
},
|
|
36922
|
-
{
|
|
36923
|
-
"available": true,
|
|
36924
|
-
"conditions": [
|
|
36925
|
-
"Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration."
|
|
36926
|
-
],
|
|
36927
|
-
"kind": "sandbox_token",
|
|
36928
|
-
"label": "Session token"
|
|
36929
|
-
}
|
|
36930
|
-
]
|
|
36931
|
-
},
|
|
36932
|
-
"x-ellipsis-sdk-method": "sessions.turns.list"
|
|
36933
|
-
}
|
|
36934
|
-
},
|
|
36935
|
-
"/v1/sessions/{session_id}/turns/{id}": {
|
|
36936
|
-
"get": {
|
|
36937
|
-
"description": "Return one turn.\n\nPoll this after sending a message: the message is answered when\nthe turn's status is completed, failed, stopped, or cancelled.",
|
|
36938
|
-
"operationId": "get_session_turn",
|
|
36939
|
-
"parameters": [
|
|
36940
|
-
{
|
|
36941
|
-
"in": "path",
|
|
36942
|
-
"name": "session_id",
|
|
36943
|
-
"required": true,
|
|
36944
|
-
"schema": {
|
|
36945
|
-
"title": "Session Id",
|
|
36946
|
-
"type": "string"
|
|
36947
|
-
}
|
|
36948
|
-
},
|
|
36949
|
-
{
|
|
36950
|
-
"in": "path",
|
|
36951
|
-
"name": "id",
|
|
36952
|
-
"required": true,
|
|
36953
|
-
"schema": {
|
|
36954
|
-
"title": "Id",
|
|
36955
|
-
"type": "string"
|
|
36956
|
-
}
|
|
36957
|
-
},
|
|
36958
|
-
{
|
|
36959
|
-
"in": "header",
|
|
36960
|
-
"name": "user-agent",
|
|
36961
|
-
"required": false,
|
|
36962
|
-
"schema": {
|
|
36963
|
-
"anyOf": [
|
|
36964
|
-
{
|
|
36965
|
-
"type": "string"
|
|
36966
|
-
},
|
|
36967
|
-
{
|
|
36968
|
-
"type": "null"
|
|
36969
|
-
}
|
|
36970
|
-
],
|
|
36971
|
-
"title": "User-Agent"
|
|
36972
|
-
}
|
|
36973
|
-
}
|
|
36974
|
-
],
|
|
36975
|
-
"responses": {
|
|
36976
|
-
"200": {
|
|
36977
|
-
"content": {
|
|
36978
|
-
"application/json": {
|
|
36979
|
-
"schema": {
|
|
36980
|
-
"$ref": "#/components/schemas/SessionTurnResponse"
|
|
36981
|
-
}
|
|
36982
|
-
}
|
|
36983
|
-
},
|
|
36984
|
-
"description": "Successful Response"
|
|
36985
|
-
},
|
|
36986
|
-
"401": {
|
|
36987
|
-
"content": {
|
|
36988
|
-
"application/json": {
|
|
36989
|
-
"schema": {
|
|
36990
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
36991
|
-
}
|
|
36992
|
-
}
|
|
36993
|
-
},
|
|
36994
|
-
"description": "The bearer token is missing, invalid, or revoked."
|
|
36995
|
-
},
|
|
36996
|
-
"403": {
|
|
36997
|
-
"content": {
|
|
36998
|
-
"application/json": {
|
|
36999
|
-
"schema": {
|
|
37000
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
37001
|
-
}
|
|
37002
|
-
}
|
|
37003
|
-
},
|
|
37004
|
-
"description": "The credential may not perform this action, or the account is blocked."
|
|
37005
|
-
},
|
|
37006
|
-
"404": {
|
|
37007
|
-
"content": {
|
|
37008
|
-
"application/json": {
|
|
37009
|
-
"schema": {
|
|
37010
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
37011
|
-
}
|
|
37012
|
-
}
|
|
37013
|
-
},
|
|
37014
|
-
"description": "No such session or turn in your account."
|
|
37015
|
-
},
|
|
37016
|
-
"422": {
|
|
37017
|
-
"content": {
|
|
37018
|
-
"application/json": {
|
|
37019
|
-
"schema": {
|
|
37020
|
-
"$ref": "#/components/schemas/HTTPValidationError"
|
|
37021
|
-
}
|
|
37022
|
-
}
|
|
37023
|
-
},
|
|
37024
|
-
"description": "Validation Error"
|
|
37025
|
-
}
|
|
37026
|
-
},
|
|
37027
|
-
"security": [
|
|
37028
|
-
{
|
|
37029
|
-
"HTTPBearer": []
|
|
37030
|
-
}
|
|
37031
|
-
],
|
|
37032
|
-
"summary": "Get Session Turn",
|
|
37033
|
-
"tags": [
|
|
37034
|
-
"v1"
|
|
37035
|
-
],
|
|
37036
|
-
"x-ellipsis-permissions": {
|
|
37037
|
-
"constraints": [
|
|
37038
|
-
{
|
|
37039
|
-
"account_admin_fields": [],
|
|
37040
|
-
"identity": null,
|
|
37041
|
-
"sandbox_scope": null
|
|
37042
|
-
}
|
|
37043
|
-
],
|
|
37044
|
-
"description": "Required permissions: read:sessions.\nAPI key: Supported.\nCLI user token: Supported.\nSession token: Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration.\nHigher permission levels include lower levels: read < write < delete.\nGrant match patterns can further restrict access to individual resources.",
|
|
37045
|
-
"notes": [
|
|
37046
|
-
"Higher permission levels include lower levels: read < write < delete.",
|
|
37047
|
-
"Grant match patterns can further restrict access to individual resources."
|
|
37048
|
-
],
|
|
37049
|
-
"required": [
|
|
37050
|
-
{
|
|
37051
|
-
"level": "read",
|
|
37052
|
-
"resource": "sessions"
|
|
37053
|
-
}
|
|
37054
|
-
],
|
|
37055
|
-
"tokens": [
|
|
37056
|
-
{
|
|
37057
|
-
"available": true,
|
|
37058
|
-
"conditions": [],
|
|
37059
|
-
"kind": "api_key",
|
|
37060
|
-
"label": "API key"
|
|
37061
|
-
},
|
|
37062
|
-
{
|
|
37063
|
-
"available": true,
|
|
37064
|
-
"conditions": [],
|
|
37065
|
-
"kind": "user_token",
|
|
37066
|
-
"label": "CLI user token"
|
|
37067
|
-
},
|
|
37068
|
-
{
|
|
37069
|
-
"available": true,
|
|
37070
|
-
"conditions": [
|
|
37071
|
-
"Requires the ellipsis:api scope and the required grants in the token's permissions.ellipsis configuration."
|
|
37072
|
-
],
|
|
37073
|
-
"kind": "sandbox_token",
|
|
37074
|
-
"label": "Session token"
|
|
37075
|
-
}
|
|
37076
|
-
]
|
|
37077
|
-
},
|
|
37078
|
-
"x-ellipsis-sdk-method": "sessions.turns.get"
|
|
37079
|
-
}
|
|
37080
|
-
},
|
|
37081
36223
|
"/v1/support/slack": {
|
|
37082
36224
|
"get": {
|
|
37083
36225
|
"operationId": "get_slack_help",
|