@agen-ai/agent-protocol 0.1.0 → 0.2.1
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/README.md +20 -11
- package/dist/capabilities/types.d.ts +32 -3
- package/dist/events/types.d.ts +5 -4
- package/dist/events/types.js +1 -0
- package/dist/foundation/parsers.d.ts +3 -1
- package/dist/foundation/parsers.js +8 -0
- package/dist/foundation/types.d.ts +2 -1
- package/dist/foundation/types.js +1 -1
- package/dist/jsonSchema/generated.d.ts +1116 -216
- package/dist/jsonSchema/generated.js +729 -129
- package/dist/requests/parsers.d.ts +5 -1
- package/dist/requests/parsers.js +26 -0
- package/dist/requests/types.d.ts +30 -7
- package/dist/requests/types.js +23 -0
- package/dist/turns/types.d.ts +38 -0
- package/dist/turns/types.js +33 -0
- package/dist/zod/capabilities.d.ts +74 -2
- package/dist/zod/capabilities.js +96 -1
- package/dist/zod/events.d.ts +107 -17
- package/dist/zod/events.js +57 -0
- package/dist/zod/foundation.d.ts +2 -1
- package/dist/zod/foundation.js +2 -0
- package/dist/zod/index.d.ts +5 -5
- package/dist/zod/index.js +15 -2
- package/dist/zod/requests.d.ts +76 -11
- package/dist/zod/requests.js +56 -11
- package/dist/zod/turns.d.ts +2 -1
- package/dist/zod/turns.js +34 -1
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const AGENT_PROTOCOL_JSON_SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
2
2
|
const AGENT_SESSION_BINDING_JSON_SCHEMA = {
|
|
3
3
|
"contractId": "agenai.agent-protocol.session-binding",
|
|
4
|
-
"protocolVersion":
|
|
4
|
+
"protocolVersion": 7,
|
|
5
5
|
"direction": "output",
|
|
6
6
|
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
|
7
7
|
"parserInvariants": [],
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "640723b204a4b0d6417c92bf9fb08367969cc68193da5ba028fa6348aad24ff6",
|
|
9
9
|
"schema": {
|
|
10
10
|
"$defs": {
|
|
11
11
|
"__schema0": {
|
|
@@ -15,7 +15,7 @@ const AGENT_SESSION_BINDING_JSON_SCHEMA = {
|
|
|
15
15
|
"type": "string"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"$id": "urn:agenai.agent-protocol.session-binding:
|
|
18
|
+
"$id": "urn:agenai.agent-protocol.session-binding:v7:output",
|
|
19
19
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
20
|
"additionalProperties": false,
|
|
21
21
|
"properties": {
|
|
@@ -35,14 +35,14 @@ const AGENT_SESSION_BINDING_JSON_SCHEMA = {
|
|
|
35
35
|
};
|
|
36
36
|
const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA = {
|
|
37
37
|
"contractId": "agenai.agent-protocol.session-configuration",
|
|
38
|
-
"protocolVersion":
|
|
38
|
+
"protocolVersion": 7,
|
|
39
39
|
"direction": "input",
|
|
40
40
|
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
|
41
41
|
"parserInvariants": [
|
|
42
42
|
"configuration_entry_count",
|
|
43
43
|
"serialized_bytes"
|
|
44
44
|
],
|
|
45
|
-
"sha256": "
|
|
45
|
+
"sha256": "f5979adaa59830e2e95c0755697ecdad8bcea0ac9cbbccd8adc82039ba536664",
|
|
46
46
|
"schema": {
|
|
47
47
|
"$defs": {
|
|
48
48
|
"__schema0": {
|
|
@@ -87,7 +87,7 @@ const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA = {
|
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
|
-
"$id": "urn:agenai.agent-protocol.session-configuration:
|
|
90
|
+
"$id": "urn:agenai.agent-protocol.session-configuration:v7:input",
|
|
91
91
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
92
92
|
"additionalProperties": false,
|
|
93
93
|
"properties": {
|
|
@@ -118,7 +118,7 @@ const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA = {
|
|
|
118
118
|
};
|
|
119
119
|
const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA = {
|
|
120
120
|
"contractId": "agenai.agent-protocol.session-open-input",
|
|
121
|
-
"protocolVersion":
|
|
121
|
+
"protocolVersion": 7,
|
|
122
122
|
"direction": "input",
|
|
123
123
|
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
|
124
124
|
"parserInvariants": [
|
|
@@ -126,7 +126,7 @@ const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA = {
|
|
|
126
126
|
"distinct_branch_session_ids",
|
|
127
127
|
"serialized_bytes"
|
|
128
128
|
],
|
|
129
|
-
"sha256": "
|
|
129
|
+
"sha256": "d21be9ed78d06ba421f349b45e48d4aff338c45047335d369102757f860f01ad",
|
|
130
130
|
"schema": {
|
|
131
131
|
"$defs": {
|
|
132
132
|
"__schema0": {
|
|
@@ -223,7 +223,7 @@ const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA = {
|
|
|
223
223
|
"type": "string"
|
|
224
224
|
}
|
|
225
225
|
},
|
|
226
|
-
"$id": "urn:agenai.agent-protocol.session-open-input:
|
|
226
|
+
"$id": "urn:agenai.agent-protocol.session-open-input:v7:input",
|
|
227
227
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
228
228
|
"oneOf": [
|
|
229
229
|
{
|
|
@@ -337,14 +337,14 @@ const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA = {
|
|
|
337
337
|
};
|
|
338
338
|
const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA = {
|
|
339
339
|
"contractId": "agenai.agent-protocol.turn-input-content",
|
|
340
|
-
"protocolVersion":
|
|
340
|
+
"protocolVersion": 7,
|
|
341
341
|
"direction": "input",
|
|
342
342
|
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
|
343
343
|
"parserInvariants": [
|
|
344
344
|
"inline_image_decoded_byte_size",
|
|
345
345
|
"serialized_bytes"
|
|
346
346
|
],
|
|
347
|
-
"sha256": "
|
|
347
|
+
"sha256": "bf447b3f55eee50d25028fb0531029476779d421048ae2bda0cade39ccc831e8",
|
|
348
348
|
"schema": {
|
|
349
349
|
"$defs": {
|
|
350
350
|
"__schema0": {
|
|
@@ -545,7 +545,7 @@ const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA = {
|
|
|
545
545
|
"type": "string"
|
|
546
546
|
}
|
|
547
547
|
},
|
|
548
|
-
"$id": "urn:agenai.agent-protocol.turn-input-content:
|
|
548
|
+
"$id": "urn:agenai.agent-protocol.turn-input-content:v7:input",
|
|
549
549
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
550
550
|
"additionalProperties": false,
|
|
551
551
|
"properties": {
|
|
@@ -564,14 +564,14 @@ const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA = {
|
|
|
564
564
|
};
|
|
565
565
|
const AGENT_TURN_RUN_INPUT_JSON_SCHEMA = {
|
|
566
566
|
"contractId": "agenai.agent-protocol.turn-run-input",
|
|
567
|
-
"protocolVersion":
|
|
567
|
+
"protocolVersion": 7,
|
|
568
568
|
"direction": "input",
|
|
569
569
|
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
|
570
570
|
"parserInvariants": [
|
|
571
571
|
"inline_image_decoded_byte_size",
|
|
572
572
|
"serialized_bytes"
|
|
573
573
|
],
|
|
574
|
-
"sha256": "
|
|
574
|
+
"sha256": "863a8b3c0c58ed3276c79d93a05f9a8c7d8b909a79e4c58370ab3a723afbd98a",
|
|
575
575
|
"schema": {
|
|
576
576
|
"$defs": {
|
|
577
577
|
"__schema0": {
|
|
@@ -759,7 +759,7 @@ const AGENT_TURN_RUN_INPUT_JSON_SCHEMA = {
|
|
|
759
759
|
"type": "string"
|
|
760
760
|
}
|
|
761
761
|
},
|
|
762
|
-
"$id": "urn:agenai.agent-protocol.turn-run-input:
|
|
762
|
+
"$id": "urn:agenai.agent-protocol.turn-run-input:v7:input",
|
|
763
763
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
764
764
|
"additionalProperties": false,
|
|
765
765
|
"properties": {
|
|
@@ -806,14 +806,15 @@ const AGENT_TURN_RUN_INPUT_JSON_SCHEMA = {
|
|
|
806
806
|
};
|
|
807
807
|
const AGENT_REQUEST_JSON_SCHEMA = {
|
|
808
808
|
"contractId": "agenai.agent-protocol.request",
|
|
809
|
-
"protocolVersion":
|
|
809
|
+
"protocolVersion": 7,
|
|
810
810
|
"direction": "output",
|
|
811
811
|
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
|
812
812
|
"parserInvariants": [
|
|
813
|
+
"unique_approval_option_ids",
|
|
813
814
|
"unique_field_ids",
|
|
814
815
|
"unique_choice_values"
|
|
815
816
|
],
|
|
816
|
-
"sha256": "
|
|
817
|
+
"sha256": "f451cb5d1fe75b7b1821c66a71fa550780f1cae7e4c15dd252104c57521097a4",
|
|
817
818
|
"schema": {
|
|
818
819
|
"$defs": {
|
|
819
820
|
"__schema0": {
|
|
@@ -823,11 +824,82 @@ const AGENT_REQUEST_JSON_SCHEMA = {
|
|
|
823
824
|
"type": "string"
|
|
824
825
|
},
|
|
825
826
|
"__schema1": {
|
|
827
|
+
"maxLength": 1e3,
|
|
828
|
+
"minLength": 1,
|
|
829
|
+
"pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
|
|
830
|
+
"type": "string"
|
|
831
|
+
},
|
|
832
|
+
"__schema2": {
|
|
833
|
+
"maxLength": 120,
|
|
834
|
+
"minLength": 1,
|
|
835
|
+
"pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
|
|
836
|
+
"type": "string"
|
|
837
|
+
},
|
|
838
|
+
"__schema3": {
|
|
839
|
+
"additionalProperties": false,
|
|
840
|
+
"properties": {
|
|
841
|
+
"decision": {
|
|
842
|
+
"enum": [
|
|
843
|
+
"approved",
|
|
844
|
+
"denied"
|
|
845
|
+
],
|
|
846
|
+
"type": "string"
|
|
847
|
+
},
|
|
848
|
+
"description": {
|
|
849
|
+
"$ref": "#/$defs/__schema1"
|
|
850
|
+
},
|
|
851
|
+
"label": {
|
|
852
|
+
"$ref": "#/$defs/__schema2"
|
|
853
|
+
},
|
|
854
|
+
"optionId": {
|
|
855
|
+
"$ref": "#/$defs/__schema0"
|
|
856
|
+
},
|
|
857
|
+
"persistence": {
|
|
858
|
+
"enum": [
|
|
859
|
+
"once",
|
|
860
|
+
"session",
|
|
861
|
+
"workspace"
|
|
862
|
+
],
|
|
863
|
+
"type": "string"
|
|
864
|
+
},
|
|
865
|
+
"scope": {
|
|
866
|
+
"additionalProperties": false,
|
|
867
|
+
"properties": {
|
|
868
|
+
"kind": {
|
|
869
|
+
"enum": [
|
|
870
|
+
"exact_action",
|
|
871
|
+
"command_pattern",
|
|
872
|
+
"domain",
|
|
873
|
+
"tool",
|
|
874
|
+
"server",
|
|
875
|
+
"all_edits"
|
|
876
|
+
],
|
|
877
|
+
"type": "string"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
"readOnly": true,
|
|
881
|
+
"required": [
|
|
882
|
+
"kind"
|
|
883
|
+
],
|
|
884
|
+
"type": "object"
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"readOnly": true,
|
|
888
|
+
"required": [
|
|
889
|
+
"optionId",
|
|
890
|
+
"label",
|
|
891
|
+
"decision",
|
|
892
|
+
"persistence",
|
|
893
|
+
"scope"
|
|
894
|
+
],
|
|
895
|
+
"type": "object"
|
|
896
|
+
},
|
|
897
|
+
"__schema4": {
|
|
826
898
|
"format": "date-time",
|
|
827
899
|
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
|
|
828
900
|
"type": "string"
|
|
829
901
|
},
|
|
830
|
-
"
|
|
902
|
+
"__schema5": {
|
|
831
903
|
"oneOf": [
|
|
832
904
|
{
|
|
833
905
|
"additionalProperties": false,
|
|
@@ -891,7 +963,7 @@ const AGENT_REQUEST_JSON_SCHEMA = {
|
|
|
891
963
|
},
|
|
892
964
|
"options": {
|
|
893
965
|
"items": {
|
|
894
|
-
"$ref": "#/$defs/
|
|
966
|
+
"$ref": "#/$defs/__schema6"
|
|
895
967
|
},
|
|
896
968
|
"maxItems": 100,
|
|
897
969
|
"minItems": 1,
|
|
@@ -948,7 +1020,7 @@ const AGENT_REQUEST_JSON_SCHEMA = {
|
|
|
948
1020
|
}
|
|
949
1021
|
]
|
|
950
1022
|
},
|
|
951
|
-
"
|
|
1023
|
+
"__schema6": {
|
|
952
1024
|
"additionalProperties": false,
|
|
953
1025
|
"properties": {
|
|
954
1026
|
"description": {
|
|
@@ -980,19 +1052,26 @@ const AGENT_REQUEST_JSON_SCHEMA = {
|
|
|
980
1052
|
"type": "object"
|
|
981
1053
|
}
|
|
982
1054
|
},
|
|
983
|
-
"$id": "urn:agenai.agent-protocol.request:
|
|
1055
|
+
"$id": "urn:agenai.agent-protocol.request:v7:output",
|
|
984
1056
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
985
1057
|
"oneOf": [
|
|
986
1058
|
{
|
|
987
1059
|
"additionalProperties": false,
|
|
988
1060
|
"properties": {
|
|
989
1061
|
"expiresAt": {
|
|
990
|
-
"$ref": "#/$defs/
|
|
1062
|
+
"$ref": "#/$defs/__schema4"
|
|
1063
|
+
},
|
|
1064
|
+
"options": {
|
|
1065
|
+
"items": {
|
|
1066
|
+
"$ref": "#/$defs/__schema3"
|
|
1067
|
+
},
|
|
1068
|
+
"maxItems": 16,
|
|
1069
|
+
"minItems": 1,
|
|
1070
|
+
"readOnly": true,
|
|
1071
|
+
"type": "array"
|
|
991
1072
|
},
|
|
992
1073
|
"prompt": {
|
|
993
|
-
"
|
|
994
|
-
"minLength": 1,
|
|
995
|
-
"type": "string"
|
|
1074
|
+
"$ref": "#/$defs/__schema1"
|
|
996
1075
|
},
|
|
997
1076
|
"requestId": {
|
|
998
1077
|
"$ref": "#/$defs/__schema0"
|
|
@@ -1010,17 +1089,14 @@ const AGENT_REQUEST_JSON_SCHEMA = {
|
|
|
1010
1089
|
"$ref": "#/$defs/__schema0"
|
|
1011
1090
|
},
|
|
1012
1091
|
"description": {
|
|
1013
|
-
"
|
|
1014
|
-
"type": "string"
|
|
1092
|
+
"$ref": "#/$defs/__schema1"
|
|
1015
1093
|
},
|
|
1016
1094
|
"kind": {
|
|
1017
1095
|
"const": "plan",
|
|
1018
1096
|
"type": "string"
|
|
1019
1097
|
},
|
|
1020
1098
|
"title": {
|
|
1021
|
-
"
|
|
1022
|
-
"minLength": 1,
|
|
1023
|
-
"type": "string"
|
|
1099
|
+
"$ref": "#/$defs/__schema2"
|
|
1024
1100
|
}
|
|
1025
1101
|
},
|
|
1026
1102
|
"readOnly": true,
|
|
@@ -1035,8 +1111,10 @@ const AGENT_REQUEST_JSON_SCHEMA = {
|
|
|
1035
1111
|
"additionalProperties": false,
|
|
1036
1112
|
"properties": {
|
|
1037
1113
|
"description": {
|
|
1038
|
-
"
|
|
1039
|
-
|
|
1114
|
+
"$ref": "#/$defs/__schema1"
|
|
1115
|
+
},
|
|
1116
|
+
"itemId": {
|
|
1117
|
+
"$ref": "#/$defs/__schema0"
|
|
1040
1118
|
},
|
|
1041
1119
|
"kind": {
|
|
1042
1120
|
"enum": [
|
|
@@ -1048,15 +1126,14 @@ const AGENT_REQUEST_JSON_SCHEMA = {
|
|
|
1048
1126
|
"type": "string"
|
|
1049
1127
|
},
|
|
1050
1128
|
"title": {
|
|
1051
|
-
"
|
|
1052
|
-
"minLength": 1,
|
|
1053
|
-
"type": "string"
|
|
1129
|
+
"$ref": "#/$defs/__schema2"
|
|
1054
1130
|
}
|
|
1055
1131
|
},
|
|
1056
1132
|
"readOnly": true,
|
|
1057
1133
|
"required": [
|
|
1058
1134
|
"kind",
|
|
1059
|
-
"title"
|
|
1135
|
+
"title",
|
|
1136
|
+
"itemId"
|
|
1060
1137
|
],
|
|
1061
1138
|
"type": "object"
|
|
1062
1139
|
}
|
|
@@ -1068,7 +1145,8 @@ const AGENT_REQUEST_JSON_SCHEMA = {
|
|
|
1068
1145
|
"requestKind",
|
|
1069
1146
|
"requestId",
|
|
1070
1147
|
"prompt",
|
|
1071
|
-
"subject"
|
|
1148
|
+
"subject",
|
|
1149
|
+
"options"
|
|
1072
1150
|
],
|
|
1073
1151
|
"type": "object"
|
|
1074
1152
|
},
|
|
@@ -1076,11 +1154,11 @@ const AGENT_REQUEST_JSON_SCHEMA = {
|
|
|
1076
1154
|
"additionalProperties": false,
|
|
1077
1155
|
"properties": {
|
|
1078
1156
|
"expiresAt": {
|
|
1079
|
-
"$ref": "#/$defs/
|
|
1157
|
+
"$ref": "#/$defs/__schema4"
|
|
1080
1158
|
},
|
|
1081
1159
|
"fields": {
|
|
1082
1160
|
"items": {
|
|
1083
|
-
"$ref": "#/$defs/
|
|
1161
|
+
"$ref": "#/$defs/__schema5"
|
|
1084
1162
|
},
|
|
1085
1163
|
"maxItems": 100,
|
|
1086
1164
|
"minItems": 1,
|
|
@@ -1114,14 +1192,14 @@ const AGENT_REQUEST_JSON_SCHEMA = {
|
|
|
1114
1192
|
};
|
|
1115
1193
|
const AGENT_REQUEST_RESOLUTION_JSON_SCHEMA = {
|
|
1116
1194
|
"contractId": "agenai.agent-protocol.request-resolution",
|
|
1117
|
-
"protocolVersion":
|
|
1195
|
+
"protocolVersion": 7,
|
|
1118
1196
|
"direction": "input",
|
|
1119
1197
|
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
|
1120
1198
|
"parserInvariants": [
|
|
1121
1199
|
"request_resolution_correlation",
|
|
1122
1200
|
"unique_choice_selections"
|
|
1123
1201
|
],
|
|
1124
|
-
"sha256": "
|
|
1202
|
+
"sha256": "fc6981d292f1fa573090221a2297552865e2c0deb2075bb503730009d0b1f93d",
|
|
1125
1203
|
"schema": {
|
|
1126
1204
|
"$defs": {
|
|
1127
1205
|
"__schema0": {
|
|
@@ -1225,35 +1303,62 @@ const AGENT_REQUEST_RESOLUTION_JSON_SCHEMA = {
|
|
|
1225
1303
|
]
|
|
1226
1304
|
}
|
|
1227
1305
|
},
|
|
1228
|
-
"$id": "urn:agenai.agent-protocol.request-resolution:
|
|
1306
|
+
"$id": "urn:agenai.agent-protocol.request-resolution:v7:input",
|
|
1229
1307
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1230
1308
|
"anyOf": [
|
|
1231
1309
|
{
|
|
1232
|
-
"
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
"
|
|
1236
|
-
"
|
|
1237
|
-
|
|
1238
|
-
|
|
1310
|
+
"oneOf": [
|
|
1311
|
+
{
|
|
1312
|
+
"additionalProperties": false,
|
|
1313
|
+
"properties": {
|
|
1314
|
+
"disposition": {
|
|
1315
|
+
"const": "selected",
|
|
1316
|
+
"type": "string"
|
|
1317
|
+
},
|
|
1318
|
+
"optionId": {
|
|
1319
|
+
"$ref": "#/$defs/__schema0"
|
|
1320
|
+
},
|
|
1321
|
+
"requestId": {
|
|
1322
|
+
"$ref": "#/$defs/__schema0"
|
|
1323
|
+
},
|
|
1324
|
+
"requestKind": {
|
|
1325
|
+
"const": "approval",
|
|
1326
|
+
"type": "string"
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
"readOnly": true,
|
|
1330
|
+
"required": [
|
|
1331
|
+
"requestKind",
|
|
1332
|
+
"requestId",
|
|
1333
|
+
"disposition",
|
|
1334
|
+
"optionId"
|
|
1239
1335
|
],
|
|
1240
|
-
"type": "
|
|
1241
|
-
},
|
|
1242
|
-
"requestId": {
|
|
1243
|
-
"$ref": "#/$defs/__schema0"
|
|
1336
|
+
"type": "object"
|
|
1244
1337
|
},
|
|
1245
|
-
|
|
1246
|
-
"
|
|
1247
|
-
"
|
|
1338
|
+
{
|
|
1339
|
+
"additionalProperties": false,
|
|
1340
|
+
"properties": {
|
|
1341
|
+
"disposition": {
|
|
1342
|
+
"const": "canceled",
|
|
1343
|
+
"type": "string"
|
|
1344
|
+
},
|
|
1345
|
+
"requestId": {
|
|
1346
|
+
"$ref": "#/$defs/__schema0"
|
|
1347
|
+
},
|
|
1348
|
+
"requestKind": {
|
|
1349
|
+
"const": "approval",
|
|
1350
|
+
"type": "string"
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
"readOnly": true,
|
|
1354
|
+
"required": [
|
|
1355
|
+
"requestKind",
|
|
1356
|
+
"requestId",
|
|
1357
|
+
"disposition"
|
|
1358
|
+
],
|
|
1359
|
+
"type": "object"
|
|
1248
1360
|
}
|
|
1249
|
-
|
|
1250
|
-
"readOnly": true,
|
|
1251
|
-
"required": [
|
|
1252
|
-
"requestKind",
|
|
1253
|
-
"requestId",
|
|
1254
|
-
"decision"
|
|
1255
|
-
],
|
|
1256
|
-
"type": "object"
|
|
1361
|
+
]
|
|
1257
1362
|
},
|
|
1258
1363
|
{
|
|
1259
1364
|
"additionalProperties": false,
|
|
@@ -1315,21 +1420,26 @@ const AGENT_REQUEST_RESOLUTION_JSON_SCHEMA = {
|
|
|
1315
1420
|
};
|
|
1316
1421
|
const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
1317
1422
|
"contractId": "agenai.agent-protocol.capabilities",
|
|
1318
|
-
"protocolVersion":
|
|
1423
|
+
"protocolVersion": 7,
|
|
1319
1424
|
"direction": "output",
|
|
1320
1425
|
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
|
1321
1426
|
"parserInvariants": [
|
|
1322
1427
|
"canonical_artifact_kinds",
|
|
1428
|
+
"canonical_approval_modes",
|
|
1429
|
+
"canonical_approval_scope_kinds",
|
|
1323
1430
|
"canonical_authentication_flows",
|
|
1324
1431
|
"canonical_configuration_field_keys",
|
|
1325
1432
|
"canonical_configuration_option_ids",
|
|
1326
1433
|
"canonical_image_input_media_types",
|
|
1327
1434
|
"canonical_image_input_source_kinds",
|
|
1435
|
+
"canonical_context_compaction_triggers",
|
|
1436
|
+
"canonical_context_cumulative_usage_fields",
|
|
1437
|
+
"canonical_context_measurement_scopes",
|
|
1328
1438
|
"image_input_pixels_bounded_by_dimensions",
|
|
1329
1439
|
"image_input_total_bytes_admits_max_image",
|
|
1330
1440
|
"image_input_total_bytes_bounded_by_count"
|
|
1331
1441
|
],
|
|
1332
|
-
"sha256": "
|
|
1442
|
+
"sha256": "8fd14032d8bff073bba01be29fdb81495d114af9922c627918c19a7bb4bf4f4f",
|
|
1333
1443
|
"schema": {
|
|
1334
1444
|
"$defs": {
|
|
1335
1445
|
"__schema0": {
|
|
@@ -1422,14 +1532,66 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
|
1422
1532
|
"type": "object"
|
|
1423
1533
|
},
|
|
1424
1534
|
"__schema10": {
|
|
1535
|
+
"enum": [
|
|
1536
|
+
"exact_action",
|
|
1537
|
+
"command_pattern",
|
|
1538
|
+
"domain",
|
|
1539
|
+
"tool",
|
|
1540
|
+
"server",
|
|
1541
|
+
"all_edits"
|
|
1542
|
+
],
|
|
1543
|
+
"type": "string"
|
|
1544
|
+
},
|
|
1545
|
+
"__schema11": {
|
|
1546
|
+
"enum": [
|
|
1547
|
+
"session",
|
|
1548
|
+
"materialization"
|
|
1549
|
+
],
|
|
1550
|
+
"type": "string"
|
|
1551
|
+
},
|
|
1552
|
+
"__schema12": {
|
|
1553
|
+
"enum": [
|
|
1554
|
+
"inputTokens",
|
|
1555
|
+
"outputTokens",
|
|
1556
|
+
"cachedReadTokens",
|
|
1557
|
+
"cacheCreationTokens",
|
|
1558
|
+
"reasoningTokens",
|
|
1559
|
+
"modelCalls",
|
|
1560
|
+
"turns"
|
|
1561
|
+
],
|
|
1562
|
+
"type": "string"
|
|
1563
|
+
},
|
|
1564
|
+
"__schema13": {
|
|
1565
|
+
"enum": [
|
|
1566
|
+
"automatic",
|
|
1567
|
+
"manual",
|
|
1568
|
+
"context_limit",
|
|
1569
|
+
"recovery",
|
|
1570
|
+
"unknown"
|
|
1571
|
+
],
|
|
1572
|
+
"type": "string"
|
|
1573
|
+
},
|
|
1574
|
+
"__schema14": {
|
|
1575
|
+
"enum": [
|
|
1576
|
+
"plan",
|
|
1577
|
+
"diff",
|
|
1578
|
+
"file",
|
|
1579
|
+
"log",
|
|
1580
|
+
"image",
|
|
1581
|
+
"report",
|
|
1582
|
+
"other"
|
|
1583
|
+
],
|
|
1584
|
+
"type": "string"
|
|
1585
|
+
},
|
|
1586
|
+
"__schema15": {
|
|
1425
1587
|
"additionalProperties": false,
|
|
1426
1588
|
"properties": {
|
|
1427
1589
|
"key": {
|
|
1428
|
-
"$ref": "#/$defs/
|
|
1590
|
+
"$ref": "#/$defs/__schema16"
|
|
1429
1591
|
},
|
|
1430
1592
|
"optionIds": {
|
|
1431
1593
|
"items": {
|
|
1432
|
-
"$ref": "#/$defs/
|
|
1594
|
+
"$ref": "#/$defs/__schema16"
|
|
1433
1595
|
},
|
|
1434
1596
|
"maxItems": 100,
|
|
1435
1597
|
"minItems": 1,
|
|
@@ -1445,13 +1607,13 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
|
1445
1607
|
],
|
|
1446
1608
|
"type": "object"
|
|
1447
1609
|
},
|
|
1448
|
-
"
|
|
1610
|
+
"__schema16": {
|
|
1449
1611
|
"maxLength": 100,
|
|
1450
1612
|
"minLength": 1,
|
|
1451
1613
|
"pattern": "^[a-z][a-z0-9._:-]*$",
|
|
1452
1614
|
"type": "string"
|
|
1453
1615
|
},
|
|
1454
|
-
"
|
|
1616
|
+
"__schema17": {
|
|
1455
1617
|
"enum": [
|
|
1456
1618
|
"device_code",
|
|
1457
1619
|
"browser",
|
|
@@ -1508,19 +1670,36 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
|
1508
1670
|
"type": "boolean"
|
|
1509
1671
|
},
|
|
1510
1672
|
"__schema9": {
|
|
1511
|
-
"
|
|
1512
|
-
|
|
1513
|
-
"
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1673
|
+
"additionalProperties": false,
|
|
1674
|
+
"properties": {
|
|
1675
|
+
"persistence": {
|
|
1676
|
+
"enum": [
|
|
1677
|
+
"once",
|
|
1678
|
+
"session",
|
|
1679
|
+
"workspace"
|
|
1680
|
+
],
|
|
1681
|
+
"type": "string"
|
|
1682
|
+
},
|
|
1683
|
+
"scopeKinds": {
|
|
1684
|
+
"items": {
|
|
1685
|
+
"$ref": "#/$defs/__schema10"
|
|
1686
|
+
},
|
|
1687
|
+
"maxItems": 6,
|
|
1688
|
+
"minItems": 1,
|
|
1689
|
+
"readOnly": true,
|
|
1690
|
+
"type": "array",
|
|
1691
|
+
"uniqueItems": true
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
"readOnly": true,
|
|
1695
|
+
"required": [
|
|
1696
|
+
"persistence",
|
|
1697
|
+
"scopeKinds"
|
|
1519
1698
|
],
|
|
1520
|
-
"type": "
|
|
1699
|
+
"type": "object"
|
|
1521
1700
|
}
|
|
1522
1701
|
},
|
|
1523
|
-
"$id": "urn:agenai.agent-protocol.capabilities:
|
|
1702
|
+
"$id": "urn:agenai.agent-protocol.capabilities:v7:output",
|
|
1524
1703
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1525
1704
|
"additionalProperties": false,
|
|
1526
1705
|
"properties": {
|
|
@@ -1545,7 +1724,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
|
1545
1724
|
"properties": {
|
|
1546
1725
|
"flows": {
|
|
1547
1726
|
"items": {
|
|
1548
|
-
"$ref": "#/$defs/
|
|
1727
|
+
"$ref": "#/$defs/__schema17"
|
|
1549
1728
|
},
|
|
1550
1729
|
"maxItems": 3,
|
|
1551
1730
|
"minItems": 1,
|
|
@@ -1588,26 +1767,137 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
|
1588
1767
|
"properties": {
|
|
1589
1768
|
"fields": {
|
|
1590
1769
|
"items": {
|
|
1591
|
-
"$ref": "#/$defs/
|
|
1770
|
+
"$ref": "#/$defs/__schema15"
|
|
1592
1771
|
},
|
|
1593
1772
|
"maxItems": 100,
|
|
1594
1773
|
"minItems": 1,
|
|
1595
1774
|
"readOnly": true,
|
|
1596
|
-
"type": "array"
|
|
1597
|
-
},
|
|
1598
|
-
"kind": {
|
|
1599
|
-
"const": "selectable",
|
|
1600
|
-
"type": "string"
|
|
1775
|
+
"type": "array"
|
|
1776
|
+
},
|
|
1777
|
+
"kind": {
|
|
1778
|
+
"const": "selectable",
|
|
1779
|
+
"type": "string"
|
|
1780
|
+
}
|
|
1781
|
+
},
|
|
1782
|
+
"readOnly": true,
|
|
1783
|
+
"required": [
|
|
1784
|
+
"kind",
|
|
1785
|
+
"fields"
|
|
1786
|
+
],
|
|
1787
|
+
"type": "object"
|
|
1788
|
+
}
|
|
1789
|
+
]
|
|
1790
|
+
},
|
|
1791
|
+
"context": {
|
|
1792
|
+
"additionalProperties": false,
|
|
1793
|
+
"properties": {
|
|
1794
|
+
"compaction": {
|
|
1795
|
+
"oneOf": [
|
|
1796
|
+
{
|
|
1797
|
+
"additionalProperties": false,
|
|
1798
|
+
"properties": {
|
|
1799
|
+
"kind": {
|
|
1800
|
+
"const": "unsupported",
|
|
1801
|
+
"type": "string"
|
|
1802
|
+
}
|
|
1803
|
+
},
|
|
1804
|
+
"readOnly": true,
|
|
1805
|
+
"required": [
|
|
1806
|
+
"kind"
|
|
1807
|
+
],
|
|
1808
|
+
"type": "object"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"additionalProperties": false,
|
|
1812
|
+
"properties": {
|
|
1813
|
+
"kind": {
|
|
1814
|
+
"const": "supported",
|
|
1815
|
+
"type": "string"
|
|
1816
|
+
},
|
|
1817
|
+
"sameSessionContinuation": {
|
|
1818
|
+
"type": "boolean"
|
|
1819
|
+
},
|
|
1820
|
+
"triggers": {
|
|
1821
|
+
"items": {
|
|
1822
|
+
"$ref": "#/$defs/__schema13"
|
|
1823
|
+
},
|
|
1824
|
+
"maxItems": 5,
|
|
1825
|
+
"minItems": 1,
|
|
1826
|
+
"readOnly": true,
|
|
1827
|
+
"type": "array",
|
|
1828
|
+
"uniqueItems": true
|
|
1829
|
+
}
|
|
1830
|
+
},
|
|
1831
|
+
"readOnly": true,
|
|
1832
|
+
"required": [
|
|
1833
|
+
"kind",
|
|
1834
|
+
"triggers",
|
|
1835
|
+
"sameSessionContinuation"
|
|
1836
|
+
],
|
|
1837
|
+
"type": "object"
|
|
1838
|
+
}
|
|
1839
|
+
]
|
|
1840
|
+
},
|
|
1841
|
+
"usage": {
|
|
1842
|
+
"oneOf": [
|
|
1843
|
+
{
|
|
1844
|
+
"additionalProperties": false,
|
|
1845
|
+
"properties": {
|
|
1846
|
+
"kind": {
|
|
1847
|
+
"const": "unsupported",
|
|
1848
|
+
"type": "string"
|
|
1849
|
+
}
|
|
1850
|
+
},
|
|
1851
|
+
"readOnly": true,
|
|
1852
|
+
"required": [
|
|
1853
|
+
"kind"
|
|
1854
|
+
],
|
|
1855
|
+
"type": "object"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"additionalProperties": false,
|
|
1859
|
+
"properties": {
|
|
1860
|
+
"cumulativeFields": {
|
|
1861
|
+
"items": {
|
|
1862
|
+
"$ref": "#/$defs/__schema12"
|
|
1863
|
+
},
|
|
1864
|
+
"maxItems": 7,
|
|
1865
|
+
"readOnly": true,
|
|
1866
|
+
"type": "array",
|
|
1867
|
+
"uniqueItems": true
|
|
1868
|
+
},
|
|
1869
|
+
"kind": {
|
|
1870
|
+
"const": "supported",
|
|
1871
|
+
"type": "string"
|
|
1872
|
+
},
|
|
1873
|
+
"measurementScopes": {
|
|
1874
|
+
"items": {
|
|
1875
|
+
"$ref": "#/$defs/__schema11"
|
|
1876
|
+
},
|
|
1877
|
+
"maxItems": 2,
|
|
1878
|
+
"minItems": 1,
|
|
1879
|
+
"readOnly": true,
|
|
1880
|
+
"type": "array",
|
|
1881
|
+
"uniqueItems": true
|
|
1882
|
+
}
|
|
1883
|
+
},
|
|
1884
|
+
"readOnly": true,
|
|
1885
|
+
"required": [
|
|
1886
|
+
"kind",
|
|
1887
|
+
"measurementScopes",
|
|
1888
|
+
"cumulativeFields"
|
|
1889
|
+
],
|
|
1890
|
+
"type": "object"
|
|
1601
1891
|
}
|
|
1602
|
-
|
|
1603
|
-
"readOnly": true,
|
|
1604
|
-
"required": [
|
|
1605
|
-
"kind",
|
|
1606
|
-
"fields"
|
|
1607
|
-
],
|
|
1608
|
-
"type": "object"
|
|
1892
|
+
]
|
|
1609
1893
|
}
|
|
1610
|
-
|
|
1894
|
+
},
|
|
1895
|
+
"readOnly": true,
|
|
1896
|
+
"required": [
|
|
1897
|
+
"usage",
|
|
1898
|
+
"compaction"
|
|
1899
|
+
],
|
|
1900
|
+
"type": "object"
|
|
1611
1901
|
},
|
|
1612
1902
|
"input": {
|
|
1613
1903
|
"$ref": "#/$defs/__schema1"
|
|
@@ -1642,7 +1932,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
|
1642
1932
|
"properties": {
|
|
1643
1933
|
"artifactKinds": {
|
|
1644
1934
|
"items": {
|
|
1645
|
-
"$ref": "#/$defs/
|
|
1935
|
+
"$ref": "#/$defs/__schema14"
|
|
1646
1936
|
},
|
|
1647
1937
|
"maxItems": 7,
|
|
1648
1938
|
"readOnly": true,
|
|
@@ -1674,7 +1964,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
|
1674
1964
|
"type": "object"
|
|
1675
1965
|
},
|
|
1676
1966
|
"protocolVersion": {
|
|
1677
|
-
"const":
|
|
1967
|
+
"const": 7,
|
|
1678
1968
|
"type": "number"
|
|
1679
1969
|
},
|
|
1680
1970
|
"providerKey": {
|
|
@@ -1687,7 +1977,46 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
|
1687
1977
|
"additionalProperties": false,
|
|
1688
1978
|
"properties": {
|
|
1689
1979
|
"approval": {
|
|
1690
|
-
"
|
|
1980
|
+
"oneOf": [
|
|
1981
|
+
{
|
|
1982
|
+
"additionalProperties": false,
|
|
1983
|
+
"properties": {
|
|
1984
|
+
"kind": {
|
|
1985
|
+
"const": "unsupported",
|
|
1986
|
+
"type": "string"
|
|
1987
|
+
}
|
|
1988
|
+
},
|
|
1989
|
+
"readOnly": true,
|
|
1990
|
+
"required": [
|
|
1991
|
+
"kind"
|
|
1992
|
+
],
|
|
1993
|
+
"type": "object"
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
"additionalProperties": false,
|
|
1997
|
+
"properties": {
|
|
1998
|
+
"kind": {
|
|
1999
|
+
"const": "supported",
|
|
2000
|
+
"type": "string"
|
|
2001
|
+
},
|
|
2002
|
+
"modes": {
|
|
2003
|
+
"items": {
|
|
2004
|
+
"$ref": "#/$defs/__schema9"
|
|
2005
|
+
},
|
|
2006
|
+
"maxItems": 3,
|
|
2007
|
+
"minItems": 1,
|
|
2008
|
+
"readOnly": true,
|
|
2009
|
+
"type": "array"
|
|
2010
|
+
}
|
|
2011
|
+
},
|
|
2012
|
+
"readOnly": true,
|
|
2013
|
+
"required": [
|
|
2014
|
+
"kind",
|
|
2015
|
+
"modes"
|
|
2016
|
+
],
|
|
2017
|
+
"type": "object"
|
|
2018
|
+
}
|
|
2019
|
+
]
|
|
1691
2020
|
},
|
|
1692
2021
|
"elicitation": {
|
|
1693
2022
|
"oneOf": [
|
|
@@ -1866,6 +2195,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
|
1866
2195
|
"sessions",
|
|
1867
2196
|
"turns",
|
|
1868
2197
|
"requests",
|
|
2198
|
+
"context",
|
|
1869
2199
|
"input",
|
|
1870
2200
|
"output",
|
|
1871
2201
|
"configuration",
|
|
@@ -1878,13 +2208,13 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
|
|
|
1878
2208
|
};
|
|
1879
2209
|
const AGENT_ARTIFACT_DESCRIPTOR_JSON_SCHEMA = {
|
|
1880
2210
|
"contractId": "agenai.agent-protocol.artifact-descriptor",
|
|
1881
|
-
"protocolVersion":
|
|
2211
|
+
"protocolVersion": 7,
|
|
1882
2212
|
"direction": "output",
|
|
1883
2213
|
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
|
1884
2214
|
"parserInvariants": [],
|
|
1885
|
-
"sha256": "
|
|
2215
|
+
"sha256": "1851ea52b6f69482ffa571773cf3211ca9bd9a9a5dbeee2ad7293dd4dfa89c0b",
|
|
1886
2216
|
"schema": {
|
|
1887
|
-
"$id": "urn:agenai.agent-protocol.artifact-descriptor:
|
|
2217
|
+
"$id": "urn:agenai.agent-protocol.artifact-descriptor:v7:output",
|
|
1888
2218
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1889
2219
|
"additionalProperties": false,
|
|
1890
2220
|
"properties": {
|
|
@@ -1958,11 +2288,12 @@ const AGENT_ARTIFACT_DESCRIPTOR_JSON_SCHEMA = {
|
|
|
1958
2288
|
};
|
|
1959
2289
|
const AGENT_EVENT_JSON_SCHEMA = {
|
|
1960
2290
|
"contractId": "agenai.agent-protocol.event",
|
|
1961
|
-
"protocolVersion":
|
|
2291
|
+
"protocolVersion": 7,
|
|
1962
2292
|
"direction": "output",
|
|
1963
2293
|
"dialect": "https://json-schema.org/draft/2020-12/schema",
|
|
1964
2294
|
"parserInvariants": [
|
|
1965
2295
|
"event_state_correlation",
|
|
2296
|
+
"context_usage_bounds",
|
|
1966
2297
|
"file_change_path_ordering_and_uniqueness",
|
|
1967
2298
|
"item_detail_identification",
|
|
1968
2299
|
"non_empty_provider_refs",
|
|
@@ -1970,11 +2301,11 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
1970
2301
|
"serialized_bytes",
|
|
1971
2302
|
"terminal_error_consistency"
|
|
1972
2303
|
],
|
|
1973
|
-
"sha256": "
|
|
2304
|
+
"sha256": "4f4aafd983446decc2782f9c7534c038ceb2d0dc247920639bb5afc659fe35c3",
|
|
1974
2305
|
"schema": {
|
|
1975
2306
|
"$defs": {
|
|
1976
2307
|
"__schema0": {
|
|
1977
|
-
"const":
|
|
2308
|
+
"const": 7,
|
|
1978
2309
|
"type": "number"
|
|
1979
2310
|
},
|
|
1980
2311
|
"__schema1": {
|
|
@@ -2153,6 +2484,38 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
2153
2484
|
"type": "string"
|
|
2154
2485
|
},
|
|
2155
2486
|
"__schema39": {
|
|
2487
|
+
"enum": [
|
|
2488
|
+
"automatic",
|
|
2489
|
+
"manual",
|
|
2490
|
+
"context_limit",
|
|
2491
|
+
"recovery",
|
|
2492
|
+
"unknown"
|
|
2493
|
+
],
|
|
2494
|
+
"type": "string"
|
|
2495
|
+
},
|
|
2496
|
+
"__schema4": {
|
|
2497
|
+
"format": "date-time",
|
|
2498
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
|
|
2499
|
+
"type": "string"
|
|
2500
|
+
},
|
|
2501
|
+
"__schema40": {
|
|
2502
|
+
"$ref": "#/$defs/__schema19"
|
|
2503
|
+
},
|
|
2504
|
+
"__schema41": {
|
|
2505
|
+
"$ref": "#/$defs/__schema19"
|
|
2506
|
+
},
|
|
2507
|
+
"__schema42": {
|
|
2508
|
+
"maximum": 36e5,
|
|
2509
|
+
"minimum": 0,
|
|
2510
|
+
"type": "integer"
|
|
2511
|
+
},
|
|
2512
|
+
"__schema43": {
|
|
2513
|
+
"maxLength": 500,
|
|
2514
|
+
"minLength": 1,
|
|
2515
|
+
"pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
|
|
2516
|
+
"type": "string"
|
|
2517
|
+
},
|
|
2518
|
+
"__schema44": {
|
|
2156
2519
|
"additionalProperties": false,
|
|
2157
2520
|
"properties": {
|
|
2158
2521
|
"priority": {
|
|
@@ -2188,12 +2551,78 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
2188
2551
|
],
|
|
2189
2552
|
"type": "object"
|
|
2190
2553
|
},
|
|
2191
|
-
"
|
|
2192
|
-
"
|
|
2193
|
-
"
|
|
2554
|
+
"__schema45": {
|
|
2555
|
+
"maxLength": 1e3,
|
|
2556
|
+
"minLength": 1,
|
|
2557
|
+
"pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
|
|
2194
2558
|
"type": "string"
|
|
2195
2559
|
},
|
|
2196
|
-
"
|
|
2560
|
+
"__schema46": {
|
|
2561
|
+
"maxLength": 120,
|
|
2562
|
+
"minLength": 1,
|
|
2563
|
+
"pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
|
|
2564
|
+
"type": "string"
|
|
2565
|
+
},
|
|
2566
|
+
"__schema47": {
|
|
2567
|
+
"additionalProperties": false,
|
|
2568
|
+
"properties": {
|
|
2569
|
+
"decision": {
|
|
2570
|
+
"enum": [
|
|
2571
|
+
"approved",
|
|
2572
|
+
"denied"
|
|
2573
|
+
],
|
|
2574
|
+
"type": "string"
|
|
2575
|
+
},
|
|
2576
|
+
"description": {
|
|
2577
|
+
"$ref": "#/$defs/__schema45"
|
|
2578
|
+
},
|
|
2579
|
+
"label": {
|
|
2580
|
+
"$ref": "#/$defs/__schema46"
|
|
2581
|
+
},
|
|
2582
|
+
"optionId": {
|
|
2583
|
+
"$ref": "#/$defs/__schema1"
|
|
2584
|
+
},
|
|
2585
|
+
"persistence": {
|
|
2586
|
+
"enum": [
|
|
2587
|
+
"once",
|
|
2588
|
+
"session",
|
|
2589
|
+
"workspace"
|
|
2590
|
+
],
|
|
2591
|
+
"type": "string"
|
|
2592
|
+
},
|
|
2593
|
+
"scope": {
|
|
2594
|
+
"additionalProperties": false,
|
|
2595
|
+
"properties": {
|
|
2596
|
+
"kind": {
|
|
2597
|
+
"enum": [
|
|
2598
|
+
"exact_action",
|
|
2599
|
+
"command_pattern",
|
|
2600
|
+
"domain",
|
|
2601
|
+
"tool",
|
|
2602
|
+
"server",
|
|
2603
|
+
"all_edits"
|
|
2604
|
+
],
|
|
2605
|
+
"type": "string"
|
|
2606
|
+
}
|
|
2607
|
+
},
|
|
2608
|
+
"readOnly": true,
|
|
2609
|
+
"required": [
|
|
2610
|
+
"kind"
|
|
2611
|
+
],
|
|
2612
|
+
"type": "object"
|
|
2613
|
+
}
|
|
2614
|
+
},
|
|
2615
|
+
"readOnly": true,
|
|
2616
|
+
"required": [
|
|
2617
|
+
"optionId",
|
|
2618
|
+
"label",
|
|
2619
|
+
"decision",
|
|
2620
|
+
"persistence",
|
|
2621
|
+
"scope"
|
|
2622
|
+
],
|
|
2623
|
+
"type": "object"
|
|
2624
|
+
},
|
|
2625
|
+
"__schema48": {
|
|
2197
2626
|
"oneOf": [
|
|
2198
2627
|
{
|
|
2199
2628
|
"additionalProperties": false,
|
|
@@ -2257,7 +2686,7 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
2257
2686
|
},
|
|
2258
2687
|
"options": {
|
|
2259
2688
|
"items": {
|
|
2260
|
-
"$ref": "#/$defs/
|
|
2689
|
+
"$ref": "#/$defs/__schema49"
|
|
2261
2690
|
},
|
|
2262
2691
|
"maxItems": 100,
|
|
2263
2692
|
"minItems": 1,
|
|
@@ -2314,7 +2743,7 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
2314
2743
|
}
|
|
2315
2744
|
]
|
|
2316
2745
|
},
|
|
2317
|
-
"
|
|
2746
|
+
"__schema49": {
|
|
2318
2747
|
"additionalProperties": false,
|
|
2319
2748
|
"properties": {
|
|
2320
2749
|
"description": {
|
|
@@ -2369,6 +2798,37 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
2369
2798
|
],
|
|
2370
2799
|
"type": "object"
|
|
2371
2800
|
},
|
|
2801
|
+
"__schema50": {
|
|
2802
|
+
"maximum": 9007199254740991,
|
|
2803
|
+
"minimum": 0,
|
|
2804
|
+
"type": "integer"
|
|
2805
|
+
},
|
|
2806
|
+
"__schema51": {
|
|
2807
|
+
"exclusiveMinimum": 0,
|
|
2808
|
+
"maximum": 9007199254740991,
|
|
2809
|
+
"type": "integer"
|
|
2810
|
+
},
|
|
2811
|
+
"__schema52": {
|
|
2812
|
+
"$ref": "#/$defs/__schema50"
|
|
2813
|
+
},
|
|
2814
|
+
"__schema53": {
|
|
2815
|
+
"$ref": "#/$defs/__schema50"
|
|
2816
|
+
},
|
|
2817
|
+
"__schema54": {
|
|
2818
|
+
"$ref": "#/$defs/__schema50"
|
|
2819
|
+
},
|
|
2820
|
+
"__schema55": {
|
|
2821
|
+
"$ref": "#/$defs/__schema50"
|
|
2822
|
+
},
|
|
2823
|
+
"__schema56": {
|
|
2824
|
+
"$ref": "#/$defs/__schema50"
|
|
2825
|
+
},
|
|
2826
|
+
"__schema57": {
|
|
2827
|
+
"$ref": "#/$defs/__schema50"
|
|
2828
|
+
},
|
|
2829
|
+
"__schema58": {
|
|
2830
|
+
"$ref": "#/$defs/__schema50"
|
|
2831
|
+
},
|
|
2372
2832
|
"__schema6": {
|
|
2373
2833
|
"maxLength": 120,
|
|
2374
2834
|
"minLength": 1,
|
|
@@ -3012,6 +3472,31 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3012
3472
|
{
|
|
3013
3473
|
"additionalProperties": false,
|
|
3014
3474
|
"properties": {
|
|
3475
|
+
"details": {
|
|
3476
|
+
"additionalProperties": false,
|
|
3477
|
+
"properties": {
|
|
3478
|
+
"afterTokens": {
|
|
3479
|
+
"$ref": "#/$defs/__schema41"
|
|
3480
|
+
},
|
|
3481
|
+
"beforeTokens": {
|
|
3482
|
+
"$ref": "#/$defs/__schema40"
|
|
3483
|
+
},
|
|
3484
|
+
"durationMs": {
|
|
3485
|
+
"$ref": "#/$defs/__schema42"
|
|
3486
|
+
},
|
|
3487
|
+
"summaryPreview": {
|
|
3488
|
+
"$ref": "#/$defs/__schema43"
|
|
3489
|
+
},
|
|
3490
|
+
"trigger": {
|
|
3491
|
+
"$ref": "#/$defs/__schema39"
|
|
3492
|
+
}
|
|
3493
|
+
},
|
|
3494
|
+
"readOnly": true,
|
|
3495
|
+
"required": [
|
|
3496
|
+
"trigger"
|
|
3497
|
+
],
|
|
3498
|
+
"type": "object"
|
|
3499
|
+
},
|
|
3015
3500
|
"itemId": {
|
|
3016
3501
|
"$ref": "#/$defs/__schema1"
|
|
3017
3502
|
},
|
|
@@ -3033,7 +3518,8 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3033
3518
|
"required": [
|
|
3034
3519
|
"itemId",
|
|
3035
3520
|
"status",
|
|
3036
|
-
"itemKind"
|
|
3521
|
+
"itemKind",
|
|
3522
|
+
"details"
|
|
3037
3523
|
],
|
|
3038
3524
|
"type": "object"
|
|
3039
3525
|
},
|
|
@@ -3068,7 +3554,7 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3068
3554
|
]
|
|
3069
3555
|
}
|
|
3070
3556
|
},
|
|
3071
|
-
"$id": "urn:agenai.agent-protocol.event:
|
|
3557
|
+
"$id": "urn:agenai.agent-protocol.event:v7:output",
|
|
3072
3558
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3073
3559
|
"oneOf": [
|
|
3074
3560
|
{
|
|
@@ -3425,7 +3911,7 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3425
3911
|
},
|
|
3426
3912
|
"steps": {
|
|
3427
3913
|
"items": {
|
|
3428
|
-
"$ref": "#/$defs/
|
|
3914
|
+
"$ref": "#/$defs/__schema44"
|
|
3429
3915
|
},
|
|
3430
3916
|
"maxItems": 100,
|
|
3431
3917
|
"readOnly": true,
|
|
@@ -3613,10 +4099,17 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3613
4099
|
"expiresAt": {
|
|
3614
4100
|
"$ref": "#/$defs/__schema4"
|
|
3615
4101
|
},
|
|
4102
|
+
"options": {
|
|
4103
|
+
"items": {
|
|
4104
|
+
"$ref": "#/$defs/__schema47"
|
|
4105
|
+
},
|
|
4106
|
+
"maxItems": 16,
|
|
4107
|
+
"minItems": 1,
|
|
4108
|
+
"readOnly": true,
|
|
4109
|
+
"type": "array"
|
|
4110
|
+
},
|
|
3616
4111
|
"prompt": {
|
|
3617
|
-
"
|
|
3618
|
-
"minLength": 1,
|
|
3619
|
-
"type": "string"
|
|
4112
|
+
"$ref": "#/$defs/__schema45"
|
|
3620
4113
|
},
|
|
3621
4114
|
"requestId": {
|
|
3622
4115
|
"$ref": "#/$defs/__schema1"
|
|
@@ -3634,17 +4127,14 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3634
4127
|
"$ref": "#/$defs/__schema1"
|
|
3635
4128
|
},
|
|
3636
4129
|
"description": {
|
|
3637
|
-
"
|
|
3638
|
-
"type": "string"
|
|
4130
|
+
"$ref": "#/$defs/__schema45"
|
|
3639
4131
|
},
|
|
3640
4132
|
"kind": {
|
|
3641
4133
|
"const": "plan",
|
|
3642
4134
|
"type": "string"
|
|
3643
4135
|
},
|
|
3644
4136
|
"title": {
|
|
3645
|
-
"
|
|
3646
|
-
"minLength": 1,
|
|
3647
|
-
"type": "string"
|
|
4137
|
+
"$ref": "#/$defs/__schema46"
|
|
3648
4138
|
}
|
|
3649
4139
|
},
|
|
3650
4140
|
"readOnly": true,
|
|
@@ -3659,8 +4149,10 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3659
4149
|
"additionalProperties": false,
|
|
3660
4150
|
"properties": {
|
|
3661
4151
|
"description": {
|
|
3662
|
-
"
|
|
3663
|
-
|
|
4152
|
+
"$ref": "#/$defs/__schema45"
|
|
4153
|
+
},
|
|
4154
|
+
"itemId": {
|
|
4155
|
+
"$ref": "#/$defs/__schema1"
|
|
3664
4156
|
},
|
|
3665
4157
|
"kind": {
|
|
3666
4158
|
"enum": [
|
|
@@ -3672,15 +4164,14 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3672
4164
|
"type": "string"
|
|
3673
4165
|
},
|
|
3674
4166
|
"title": {
|
|
3675
|
-
"
|
|
3676
|
-
"minLength": 1,
|
|
3677
|
-
"type": "string"
|
|
4167
|
+
"$ref": "#/$defs/__schema46"
|
|
3678
4168
|
}
|
|
3679
4169
|
},
|
|
3680
4170
|
"readOnly": true,
|
|
3681
4171
|
"required": [
|
|
3682
4172
|
"kind",
|
|
3683
|
-
"title"
|
|
4173
|
+
"title",
|
|
4174
|
+
"itemId"
|
|
3684
4175
|
],
|
|
3685
4176
|
"type": "object"
|
|
3686
4177
|
}
|
|
@@ -3692,7 +4183,8 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3692
4183
|
"requestKind",
|
|
3693
4184
|
"requestId",
|
|
3694
4185
|
"prompt",
|
|
3695
|
-
"subject"
|
|
4186
|
+
"subject",
|
|
4187
|
+
"options"
|
|
3696
4188
|
],
|
|
3697
4189
|
"type": "object"
|
|
3698
4190
|
},
|
|
@@ -3704,7 +4196,7 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3704
4196
|
},
|
|
3705
4197
|
"fields": {
|
|
3706
4198
|
"items": {
|
|
3707
|
-
"$ref": "#/$defs/
|
|
4199
|
+
"$ref": "#/$defs/__schema48"
|
|
3708
4200
|
},
|
|
3709
4201
|
"maxItems": 100,
|
|
3710
4202
|
"minItems": 1,
|
|
@@ -3854,6 +4346,114 @@ const AGENT_EVENT_JSON_SCHEMA = {
|
|
|
3854
4346
|
],
|
|
3855
4347
|
"type": "object"
|
|
3856
4348
|
},
|
|
4349
|
+
{
|
|
4350
|
+
"additionalProperties": false,
|
|
4351
|
+
"properties": {
|
|
4352
|
+
"occurredAt": {
|
|
4353
|
+
"$ref": "#/$defs/__schema4"
|
|
4354
|
+
},
|
|
4355
|
+
"payload": {
|
|
4356
|
+
"additionalProperties": false,
|
|
4357
|
+
"properties": {
|
|
4358
|
+
"compaction": {
|
|
4359
|
+
"additionalProperties": false,
|
|
4360
|
+
"properties": {
|
|
4361
|
+
"state": {
|
|
4362
|
+
"enum": [
|
|
4363
|
+
"idle",
|
|
4364
|
+
"approaching",
|
|
4365
|
+
"in_progress"
|
|
4366
|
+
],
|
|
4367
|
+
"type": "string"
|
|
4368
|
+
},
|
|
4369
|
+
"thresholdTokens": {
|
|
4370
|
+
"$ref": "#/$defs/__schema51"
|
|
4371
|
+
}
|
|
4372
|
+
},
|
|
4373
|
+
"readOnly": true,
|
|
4374
|
+
"required": [
|
|
4375
|
+
"state"
|
|
4376
|
+
],
|
|
4377
|
+
"type": "object"
|
|
4378
|
+
},
|
|
4379
|
+
"cumulative": {
|
|
4380
|
+
"additionalProperties": false,
|
|
4381
|
+
"properties": {
|
|
4382
|
+
"cacheCreationTokens": {
|
|
4383
|
+
"$ref": "#/$defs/__schema55"
|
|
4384
|
+
},
|
|
4385
|
+
"cachedReadTokens": {
|
|
4386
|
+
"$ref": "#/$defs/__schema54"
|
|
4387
|
+
},
|
|
4388
|
+
"inputTokens": {
|
|
4389
|
+
"$ref": "#/$defs/__schema52"
|
|
4390
|
+
},
|
|
4391
|
+
"modelCalls": {
|
|
4392
|
+
"$ref": "#/$defs/__schema57"
|
|
4393
|
+
},
|
|
4394
|
+
"outputTokens": {
|
|
4395
|
+
"$ref": "#/$defs/__schema53"
|
|
4396
|
+
},
|
|
4397
|
+
"reasoningTokens": {
|
|
4398
|
+
"$ref": "#/$defs/__schema56"
|
|
4399
|
+
},
|
|
4400
|
+
"turns": {
|
|
4401
|
+
"$ref": "#/$defs/__schema58"
|
|
4402
|
+
}
|
|
4403
|
+
},
|
|
4404
|
+
"readOnly": true,
|
|
4405
|
+
"type": "object"
|
|
4406
|
+
},
|
|
4407
|
+
"maxTokens": {
|
|
4408
|
+
"$ref": "#/$defs/__schema51"
|
|
4409
|
+
},
|
|
4410
|
+
"measurementScope": {
|
|
4411
|
+
"enum": [
|
|
4412
|
+
"session",
|
|
4413
|
+
"materialization"
|
|
4414
|
+
],
|
|
4415
|
+
"type": "string"
|
|
4416
|
+
},
|
|
4417
|
+
"usedTokens": {
|
|
4418
|
+
"$ref": "#/$defs/__schema50"
|
|
4419
|
+
}
|
|
4420
|
+
},
|
|
4421
|
+
"readOnly": true,
|
|
4422
|
+
"required": [
|
|
4423
|
+
"measurementScope",
|
|
4424
|
+
"usedTokens",
|
|
4425
|
+
"maxTokens"
|
|
4426
|
+
],
|
|
4427
|
+
"type": "object"
|
|
4428
|
+
},
|
|
4429
|
+
"protocolVersion": {
|
|
4430
|
+
"$ref": "#/$defs/__schema0"
|
|
4431
|
+
},
|
|
4432
|
+
"providerRefs": {
|
|
4433
|
+
"$ref": "#/$defs/__schema2"
|
|
4434
|
+
},
|
|
4435
|
+
"sessionId": {
|
|
4436
|
+
"$ref": "#/$defs/__schema1"
|
|
4437
|
+
},
|
|
4438
|
+
"turnId": {
|
|
4439
|
+
"$ref": "#/$defs/__schema1"
|
|
4440
|
+
},
|
|
4441
|
+
"type": {
|
|
4442
|
+
"const": "context.usage.updated",
|
|
4443
|
+
"type": "string"
|
|
4444
|
+
}
|
|
4445
|
+
},
|
|
4446
|
+
"readOnly": true,
|
|
4447
|
+
"required": [
|
|
4448
|
+
"protocolVersion",
|
|
4449
|
+
"sessionId",
|
|
4450
|
+
"occurredAt",
|
|
4451
|
+
"type",
|
|
4452
|
+
"turnId",
|
|
4453
|
+
"payload"
|
|
4454
|
+
],
|
|
4455
|
+
"type": "object"
|
|
4456
|
+
},
|
|
3857
4457
|
{
|
|
3858
4458
|
"additionalProperties": false,
|
|
3859
4459
|
"properties": {
|