langgraph-api 0.5.4__py3-none-any.whl → 0.7.3__py3-none-any.whl
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.
- langgraph_api/__init__.py +1 -1
- langgraph_api/api/__init__.py +93 -27
- langgraph_api/api/a2a.py +36 -32
- langgraph_api/api/assistants.py +114 -26
- langgraph_api/api/mcp.py +3 -3
- langgraph_api/api/meta.py +15 -2
- langgraph_api/api/openapi.py +27 -17
- langgraph_api/api/profile.py +108 -0
- langgraph_api/api/runs.py +114 -57
- langgraph_api/api/store.py +19 -2
- langgraph_api/api/threads.py +133 -10
- langgraph_api/asgi_transport.py +14 -9
- langgraph_api/auth/custom.py +23 -13
- langgraph_api/cli.py +86 -41
- langgraph_api/command.py +2 -2
- langgraph_api/config/__init__.py +532 -0
- langgraph_api/config/_parse.py +58 -0
- langgraph_api/config/schemas.py +431 -0
- langgraph_api/cron_scheduler.py +17 -1
- langgraph_api/encryption/__init__.py +15 -0
- langgraph_api/encryption/aes_json.py +158 -0
- langgraph_api/encryption/context.py +35 -0
- langgraph_api/encryption/custom.py +280 -0
- langgraph_api/encryption/middleware.py +632 -0
- langgraph_api/encryption/shared.py +63 -0
- langgraph_api/errors.py +12 -1
- langgraph_api/executor_entrypoint.py +11 -6
- langgraph_api/feature_flags.py +19 -0
- langgraph_api/graph.py +163 -64
- langgraph_api/{grpc_ops → grpc}/client.py +142 -12
- langgraph_api/{grpc_ops → grpc}/config_conversion.py +16 -10
- langgraph_api/grpc/generated/__init__.py +29 -0
- langgraph_api/grpc/generated/checkpointer_pb2.py +63 -0
- langgraph_api/grpc/generated/checkpointer_pb2.pyi +99 -0
- langgraph_api/grpc/generated/checkpointer_pb2_grpc.py +329 -0
- langgraph_api/grpc/generated/core_api_pb2.py +216 -0
- langgraph_api/{grpc_ops → grpc}/generated/core_api_pb2.pyi +292 -372
- langgraph_api/{grpc_ops → grpc}/generated/core_api_pb2_grpc.py +252 -31
- langgraph_api/grpc/generated/engine_common_pb2.py +219 -0
- langgraph_api/{grpc_ops → grpc}/generated/engine_common_pb2.pyi +178 -104
- langgraph_api/grpc/generated/enum_cancel_run_action_pb2.py +37 -0
- langgraph_api/grpc/generated/enum_cancel_run_action_pb2.pyi +12 -0
- langgraph_api/grpc/generated/enum_cancel_run_action_pb2_grpc.py +24 -0
- langgraph_api/grpc/generated/enum_control_signal_pb2.py +37 -0
- langgraph_api/grpc/generated/enum_control_signal_pb2.pyi +16 -0
- langgraph_api/grpc/generated/enum_control_signal_pb2_grpc.py +24 -0
- langgraph_api/grpc/generated/enum_durability_pb2.py +37 -0
- langgraph_api/grpc/generated/enum_durability_pb2.pyi +16 -0
- langgraph_api/grpc/generated/enum_durability_pb2_grpc.py +24 -0
- langgraph_api/grpc/generated/enum_multitask_strategy_pb2.py +37 -0
- langgraph_api/grpc/generated/enum_multitask_strategy_pb2.pyi +16 -0
- langgraph_api/grpc/generated/enum_multitask_strategy_pb2_grpc.py +24 -0
- langgraph_api/grpc/generated/enum_run_status_pb2.py +37 -0
- langgraph_api/grpc/generated/enum_run_status_pb2.pyi +22 -0
- langgraph_api/grpc/generated/enum_run_status_pb2_grpc.py +24 -0
- langgraph_api/grpc/generated/enum_stream_mode_pb2.py +37 -0
- langgraph_api/grpc/generated/enum_stream_mode_pb2.pyi +28 -0
- langgraph_api/grpc/generated/enum_stream_mode_pb2_grpc.py +24 -0
- langgraph_api/grpc/generated/enum_thread_status_pb2.py +37 -0
- langgraph_api/grpc/generated/enum_thread_status_pb2.pyi +16 -0
- langgraph_api/grpc/generated/enum_thread_status_pb2_grpc.py +24 -0
- langgraph_api/grpc/generated/enum_thread_stream_mode_pb2.py +37 -0
- langgraph_api/grpc/generated/enum_thread_stream_mode_pb2.pyi +16 -0
- langgraph_api/grpc/generated/enum_thread_stream_mode_pb2_grpc.py +24 -0
- langgraph_api/grpc/generated/errors_pb2.py +39 -0
- langgraph_api/grpc/generated/errors_pb2.pyi +21 -0
- langgraph_api/grpc/generated/errors_pb2_grpc.py +24 -0
- langgraph_api/grpc/ops/__init__.py +370 -0
- langgraph_api/grpc/ops/assistants.py +424 -0
- langgraph_api/grpc/ops/runs.py +792 -0
- langgraph_api/grpc/ops/threads.py +1013 -0
- langgraph_api/http.py +16 -5
- langgraph_api/js/client.mts +1 -4
- langgraph_api/js/package.json +28 -27
- langgraph_api/js/remote.py +39 -17
- langgraph_api/js/sse.py +2 -2
- langgraph_api/js/ui.py +1 -1
- langgraph_api/js/yarn.lock +1139 -869
- langgraph_api/metadata.py +29 -3
- langgraph_api/middleware/http_logger.py +1 -1
- langgraph_api/middleware/private_network.py +7 -7
- langgraph_api/models/run.py +44 -26
- langgraph_api/otel_context.py +205 -0
- langgraph_api/patch.py +2 -2
- langgraph_api/queue_entrypoint.py +34 -35
- langgraph_api/route.py +33 -1
- langgraph_api/schema.py +84 -9
- langgraph_api/self_hosted_logs.py +2 -2
- langgraph_api/self_hosted_metrics.py +73 -3
- langgraph_api/serde.py +16 -4
- langgraph_api/server.py +33 -31
- langgraph_api/state.py +3 -2
- langgraph_api/store.py +25 -16
- langgraph_api/stream.py +20 -16
- langgraph_api/thread_ttl.py +28 -13
- langgraph_api/timing/__init__.py +25 -0
- langgraph_api/timing/profiler.py +200 -0
- langgraph_api/timing/timer.py +318 -0
- langgraph_api/utils/__init__.py +53 -8
- langgraph_api/utils/config.py +2 -1
- langgraph_api/utils/future.py +10 -6
- langgraph_api/utils/uuids.py +29 -62
- langgraph_api/validation.py +6 -0
- langgraph_api/webhook.py +120 -6
- langgraph_api/worker.py +54 -24
- {langgraph_api-0.5.4.dist-info → langgraph_api-0.7.3.dist-info}/METADATA +8 -6
- langgraph_api-0.7.3.dist-info/RECORD +168 -0
- {langgraph_api-0.5.4.dist-info → langgraph_api-0.7.3.dist-info}/WHEEL +1 -1
- langgraph_runtime/__init__.py +1 -0
- langgraph_runtime/routes.py +11 -0
- logging.json +1 -3
- openapi.json +635 -537
- langgraph_api/config.py +0 -523
- langgraph_api/grpc_ops/generated/__init__.py +0 -5
- langgraph_api/grpc_ops/generated/core_api_pb2.py +0 -275
- langgraph_api/grpc_ops/generated/engine_common_pb2.py +0 -194
- langgraph_api/grpc_ops/ops.py +0 -1045
- langgraph_api-0.5.4.dist-info/RECORD +0 -121
- /langgraph_api/{grpc_ops → grpc}/__init__.py +0 -0
- /langgraph_api/{grpc_ops → grpc}/generated/engine_common_pb2_grpc.py +0 -0
- {langgraph_api-0.5.4.dist-info → langgraph_api-0.7.3.dist-info}/entry_points.txt +0 -0
- {langgraph_api-0.5.4.dist-info → langgraph_api-0.7.3.dist-info}/licenses/LICENSE +0 -0
openapi.json
CHANGED
|
@@ -45,9 +45,7 @@
|
|
|
45
45
|
"paths": {
|
|
46
46
|
"/assistants": {
|
|
47
47
|
"post": {
|
|
48
|
-
"tags": [
|
|
49
|
-
"Assistants"
|
|
50
|
-
],
|
|
48
|
+
"tags": ["Assistants"],
|
|
51
49
|
"summary": "Create Assistant",
|
|
52
50
|
"description": "Create an assistant.\n\nAn initial version of the assistant will be created and the assistant is set to that version. To change versions, use the `POST /assistants/{assistant_id}/latest` endpoint.",
|
|
53
51
|
"operationId": "create_assistant_assistants_post",
|
|
@@ -107,9 +105,7 @@
|
|
|
107
105
|
},
|
|
108
106
|
"/assistants/search": {
|
|
109
107
|
"post": {
|
|
110
|
-
"tags": [
|
|
111
|
-
"Assistants"
|
|
112
|
-
],
|
|
108
|
+
"tags": ["Assistants"],
|
|
113
109
|
"summary": "Search Assistants",
|
|
114
110
|
"description": "Search for assistants.\n\nThis endpoint also functions as the endpoint to list all assistants.",
|
|
115
111
|
"operationId": "search_assistants_assistants_search_post",
|
|
@@ -163,9 +159,7 @@
|
|
|
163
159
|
},
|
|
164
160
|
"/assistants/count": {
|
|
165
161
|
"post": {
|
|
166
|
-
"tags": [
|
|
167
|
-
"Assistants"
|
|
168
|
-
],
|
|
162
|
+
"tags": ["Assistants"],
|
|
169
163
|
"summary": "Count Assistants",
|
|
170
164
|
"description": "Get the count of assistants matching the specified criteria.",
|
|
171
165
|
"operationId": "count_assistants_assistants_count_post",
|
|
@@ -216,9 +210,7 @@
|
|
|
216
210
|
},
|
|
217
211
|
"/assistants/{assistant_id}": {
|
|
218
212
|
"get": {
|
|
219
|
-
"tags": [
|
|
220
|
-
"Assistants"
|
|
221
|
-
],
|
|
213
|
+
"tags": ["Assistants"],
|
|
222
214
|
"summary": "Get Assistant",
|
|
223
215
|
"description": "Get an assistant by ID.",
|
|
224
216
|
"operationId": "get_assistant_assistants__assistant_id__get",
|
|
@@ -260,9 +252,7 @@
|
|
|
260
252
|
}
|
|
261
253
|
},
|
|
262
254
|
"delete": {
|
|
263
|
-
"tags": [
|
|
264
|
-
"Assistants"
|
|
265
|
-
],
|
|
255
|
+
"tags": ["Assistants"],
|
|
266
256
|
"summary": "Delete Assistant",
|
|
267
257
|
"description": "Delete an assistant by ID.\n\nAll versions of the assistant will be deleted as well.",
|
|
268
258
|
"operationId": "delete_assistant_assistants__assistant_id__delete",
|
|
@@ -278,6 +268,17 @@
|
|
|
278
268
|
},
|
|
279
269
|
"name": "assistant_id",
|
|
280
270
|
"in": "path"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"description": "If true, delete all threads with metadata.assistant_id matching this assistant, along with runs and checkpoints belonging to those threads. Auth filters are applied, so threads not visible to the user will not be deleted.",
|
|
274
|
+
"required": false,
|
|
275
|
+
"schema": {
|
|
276
|
+
"type": "boolean",
|
|
277
|
+
"default": false,
|
|
278
|
+
"title": "Delete Threads"
|
|
279
|
+
},
|
|
280
|
+
"name": "delete_threads",
|
|
281
|
+
"in": "query"
|
|
281
282
|
}
|
|
282
283
|
],
|
|
283
284
|
"responses": {
|
|
@@ -312,9 +313,7 @@
|
|
|
312
313
|
}
|
|
313
314
|
},
|
|
314
315
|
"patch": {
|
|
315
|
-
"tags": [
|
|
316
|
-
"Assistants"
|
|
317
|
-
],
|
|
316
|
+
"tags": ["Assistants"],
|
|
318
317
|
"summary": "Patch Assistant",
|
|
319
318
|
"description": "Update an assistant.",
|
|
320
319
|
"operationId": "patch_assistant_assistants__assistant_id__patch",
|
|
@@ -378,9 +377,7 @@
|
|
|
378
377
|
},
|
|
379
378
|
"/assistants/{assistant_id}/graph": {
|
|
380
379
|
"get": {
|
|
381
|
-
"tags": [
|
|
382
|
-
"Assistants"
|
|
383
|
-
],
|
|
380
|
+
"tags": ["Assistants"],
|
|
384
381
|
"summary": "Get Assistant Graph",
|
|
385
382
|
"description": "Get an assistant by ID.",
|
|
386
383
|
"operationId": "get_assistant_graph_assistants__assistant_id__graph_get",
|
|
@@ -469,9 +466,7 @@
|
|
|
469
466
|
},
|
|
470
467
|
"/assistants/{assistant_id}/subgraphs": {
|
|
471
468
|
"get": {
|
|
472
|
-
"tags": [
|
|
473
|
-
"Assistants"
|
|
474
|
-
],
|
|
469
|
+
"tags": ["Assistants"],
|
|
475
470
|
"summary": "Get Assistant Subgraphs",
|
|
476
471
|
"description": "Get an assistant's subgraphs.",
|
|
477
472
|
"operationId": "get_assistant_subgraphs_assistants__assistant_id__subgraphs_get",
|
|
@@ -535,9 +530,7 @@
|
|
|
535
530
|
},
|
|
536
531
|
"/assistants/{assistant_id}/subgraphs/{namespace}": {
|
|
537
532
|
"get": {
|
|
538
|
-
"tags": [
|
|
539
|
-
"Assistants"
|
|
540
|
-
],
|
|
533
|
+
"tags": ["Assistants"],
|
|
541
534
|
"summary": "Get Assistant Subgraphs by Namespace",
|
|
542
535
|
"description": "Get an assistant's subgraphs filtered by namespace.",
|
|
543
536
|
"operationId": "get_assistant_subgraphs_assistants__assistant_id__subgraphs__namespace__get",
|
|
@@ -601,9 +594,7 @@
|
|
|
601
594
|
},
|
|
602
595
|
"/assistants/{assistant_id}/schemas": {
|
|
603
596
|
"get": {
|
|
604
|
-
"tags": [
|
|
605
|
-
"Assistants"
|
|
606
|
-
],
|
|
597
|
+
"tags": ["Assistants"],
|
|
607
598
|
"summary": "Get Assistant Schemas",
|
|
608
599
|
"description": "Get an assistant by ID.",
|
|
609
600
|
"operationId": "get_assistant_schemas_assistants__assistant_id__schemas_get",
|
|
@@ -657,9 +648,7 @@
|
|
|
657
648
|
},
|
|
658
649
|
"/assistants/{assistant_id}/versions": {
|
|
659
650
|
"post": {
|
|
660
|
-
"tags": [
|
|
661
|
-
"Assistants"
|
|
662
|
-
],
|
|
651
|
+
"tags": ["Assistants"],
|
|
663
652
|
"summary": "Get Assistant Versions",
|
|
664
653
|
"description": "Get all versions of an assistant.",
|
|
665
654
|
"operationId": "get_assistant_versions_assistants__assistant_id__versions_get",
|
|
@@ -707,9 +696,7 @@
|
|
|
707
696
|
},
|
|
708
697
|
"/assistants/{assistant_id}/latest": {
|
|
709
698
|
"post": {
|
|
710
|
-
"tags": [
|
|
711
|
-
"Assistants"
|
|
712
|
-
],
|
|
699
|
+
"tags": ["Assistants"],
|
|
713
700
|
"summary": "Set Latest Assistant Version",
|
|
714
701
|
"description": "Set the latest version for an assistant.",
|
|
715
702
|
"operationId": "set_latest_assistant_version_assistants__assistant_id__versions_post",
|
|
@@ -774,9 +761,7 @@
|
|
|
774
761
|
},
|
|
775
762
|
"/threads": {
|
|
776
763
|
"post": {
|
|
777
|
-
"tags": [
|
|
778
|
-
"Threads"
|
|
779
|
-
],
|
|
764
|
+
"tags": ["Threads"],
|
|
780
765
|
"summary": "Create Thread",
|
|
781
766
|
"description": "Create a thread.",
|
|
782
767
|
"operationId": "create_thread_threads_post",
|
|
@@ -826,9 +811,7 @@
|
|
|
826
811
|
},
|
|
827
812
|
"/threads/search": {
|
|
828
813
|
"post": {
|
|
829
|
-
"tags": [
|
|
830
|
-
"Threads"
|
|
831
|
-
],
|
|
814
|
+
"tags": ["Threads"],
|
|
832
815
|
"summary": "Search Threads",
|
|
833
816
|
"description": "Search for threads.\n\nThis endpoint also functions as the endpoint to list all threads.",
|
|
834
817
|
"operationId": "search_threads_threads_search_post",
|
|
@@ -872,9 +855,7 @@
|
|
|
872
855
|
},
|
|
873
856
|
"/threads/count": {
|
|
874
857
|
"post": {
|
|
875
|
-
"tags": [
|
|
876
|
-
"Threads"
|
|
877
|
-
],
|
|
858
|
+
"tags": ["Threads"],
|
|
878
859
|
"summary": "Count Threads",
|
|
879
860
|
"description": "Get the count of threads matching the specified criteria.",
|
|
880
861
|
"operationId": "count_threads_threads_count_post",
|
|
@@ -923,11 +904,49 @@
|
|
|
923
904
|
}
|
|
924
905
|
}
|
|
925
906
|
},
|
|
907
|
+
"/threads/prune": {
|
|
908
|
+
"post": {
|
|
909
|
+
"tags": ["Threads"],
|
|
910
|
+
"summary": "Prune Threads",
|
|
911
|
+
"description": "Prune threads by ID. The 'delete' strategy removes threads entirely. The 'keep_latest' strategy prunes old checkpoints but keeps threads and their latest state (requires FF_USE_CORE_API=true).",
|
|
912
|
+
"operationId": "prune_threads_threads_prune_post",
|
|
913
|
+
"requestBody": {
|
|
914
|
+
"content": {
|
|
915
|
+
"application/json": {
|
|
916
|
+
"schema": {
|
|
917
|
+
"$ref": "#/components/schemas/ThreadPruneRequest"
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
"required": true
|
|
922
|
+
},
|
|
923
|
+
"responses": {
|
|
924
|
+
"200": {
|
|
925
|
+
"description": "Success",
|
|
926
|
+
"content": {
|
|
927
|
+
"application/json": {
|
|
928
|
+
"schema": {
|
|
929
|
+
"$ref": "#/components/schemas/ThreadPruneResponse"
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"422": {
|
|
935
|
+
"description": "Validation Error",
|
|
936
|
+
"content": {
|
|
937
|
+
"application/json": {
|
|
938
|
+
"schema": {
|
|
939
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
},
|
|
926
947
|
"/threads/{thread_id}/state": {
|
|
927
948
|
"get": {
|
|
928
|
-
"tags": [
|
|
929
|
-
"Threads"
|
|
930
|
-
],
|
|
949
|
+
"tags": ["Threads"],
|
|
931
950
|
"summary": "Get Thread State",
|
|
932
951
|
"description": "Get state for a thread.\n\nThe latest state of the thread (i.e. latest checkpoint) is returned.",
|
|
933
952
|
"operationId": "get_latest_thread_state_threads__thread_id__state_get",
|
|
@@ -980,9 +999,7 @@
|
|
|
980
999
|
}
|
|
981
1000
|
},
|
|
982
1001
|
"post": {
|
|
983
|
-
"tags": [
|
|
984
|
-
"Threads"
|
|
985
|
-
],
|
|
1002
|
+
"tags": ["Threads"],
|
|
986
1003
|
"summary": "Update Thread State",
|
|
987
1004
|
"description": "Add state to a thread.",
|
|
988
1005
|
"operationId": "update_thread_state_threads__thread_id__state_post",
|
|
@@ -1036,9 +1053,7 @@
|
|
|
1036
1053
|
},
|
|
1037
1054
|
"/threads/{thread_id}/state/{checkpoint_id}": {
|
|
1038
1055
|
"get": {
|
|
1039
|
-
"tags": [
|
|
1040
|
-
"Threads"
|
|
1041
|
-
],
|
|
1056
|
+
"tags": ["Threads"],
|
|
1042
1057
|
"summary": "Get Thread State At Checkpoint",
|
|
1043
1058
|
"description": "Get state for a thread at a specific checkpoint.",
|
|
1044
1059
|
"operationId": "get_thread_state_at_checkpoint_threads__thread_id__state__checkpoint_id__get",
|
|
@@ -1105,9 +1120,7 @@
|
|
|
1105
1120
|
},
|
|
1106
1121
|
"/threads/{thread_id}/state/checkpoint": {
|
|
1107
1122
|
"post": {
|
|
1108
|
-
"tags": [
|
|
1109
|
-
"Threads"
|
|
1110
|
-
],
|
|
1123
|
+
"tags": ["Threads"],
|
|
1111
1124
|
"summary": "Get Thread State At Checkpoint",
|
|
1112
1125
|
"description": "Get state for a thread at a specific checkpoint.",
|
|
1113
1126
|
"operationId": "post_thread_state_at_checkpoint_threads__thread_id__state__checkpoint_id__get",
|
|
@@ -1171,9 +1184,7 @@
|
|
|
1171
1184
|
},
|
|
1172
1185
|
"/threads/{thread_id}/history": {
|
|
1173
1186
|
"get": {
|
|
1174
|
-
"tags": [
|
|
1175
|
-
"Threads"
|
|
1176
|
-
],
|
|
1187
|
+
"tags": ["Threads"],
|
|
1177
1188
|
"summary": "Get Thread History",
|
|
1178
1189
|
"description": "Get all past states for a thread.",
|
|
1179
1190
|
"operationId": "get_thread_history_threads__thread_id__history_get",
|
|
@@ -1238,9 +1249,7 @@
|
|
|
1238
1249
|
}
|
|
1239
1250
|
},
|
|
1240
1251
|
"post": {
|
|
1241
|
-
"tags": [
|
|
1242
|
-
"Threads"
|
|
1243
|
-
],
|
|
1252
|
+
"tags": ["Threads"],
|
|
1244
1253
|
"summary": "Get Thread History Post",
|
|
1245
1254
|
"description": "Get all past states for a thread.",
|
|
1246
1255
|
"operationId": "get_thread_history_post_threads__thread_id__history_post",
|
|
@@ -1298,9 +1307,7 @@
|
|
|
1298
1307
|
},
|
|
1299
1308
|
"/threads/{thread_id}/copy": {
|
|
1300
1309
|
"post": {
|
|
1301
|
-
"tags": [
|
|
1302
|
-
"Threads"
|
|
1303
|
-
],
|
|
1310
|
+
"tags": ["Threads"],
|
|
1304
1311
|
"summary": "Copy Thread",
|
|
1305
1312
|
"description": "Create a new thread with a copy of the state and checkpoints from an existing thread.",
|
|
1306
1313
|
"operationId": "copy_thread_post_threads__thread_id__copy_post",
|
|
@@ -1354,9 +1361,7 @@
|
|
|
1354
1361
|
},
|
|
1355
1362
|
"/threads/{thread_id}": {
|
|
1356
1363
|
"get": {
|
|
1357
|
-
"tags": [
|
|
1358
|
-
"Threads"
|
|
1359
|
-
],
|
|
1364
|
+
"tags": ["Threads"],
|
|
1360
1365
|
"summary": "Get Thread",
|
|
1361
1366
|
"description": "Get a thread by ID.",
|
|
1362
1367
|
"operationId": "get_thread_threads__thread_id__get",
|
|
@@ -1372,6 +1377,17 @@
|
|
|
1372
1377
|
},
|
|
1373
1378
|
"name": "thread_id",
|
|
1374
1379
|
"in": "path"
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"description": "Comma-separated list of additional fields to include. Supported values: ttl",
|
|
1383
|
+
"required": false,
|
|
1384
|
+
"schema": {
|
|
1385
|
+
"type": "string",
|
|
1386
|
+
"title": "Include",
|
|
1387
|
+
"description": "Comma-separated list of additional fields to include."
|
|
1388
|
+
},
|
|
1389
|
+
"name": "include",
|
|
1390
|
+
"in": "query"
|
|
1375
1391
|
}
|
|
1376
1392
|
],
|
|
1377
1393
|
"responses": {
|
|
@@ -1408,9 +1424,7 @@
|
|
|
1408
1424
|
}
|
|
1409
1425
|
},
|
|
1410
1426
|
"delete": {
|
|
1411
|
-
"tags": [
|
|
1412
|
-
"Threads"
|
|
1413
|
-
],
|
|
1427
|
+
"tags": ["Threads"],
|
|
1414
1428
|
"summary": "Delete Thread",
|
|
1415
1429
|
"description": "Delete a thread by ID.",
|
|
1416
1430
|
"operationId": "delete_thread_threads__thread_id__delete",
|
|
@@ -1460,9 +1474,7 @@
|
|
|
1460
1474
|
}
|
|
1461
1475
|
},
|
|
1462
1476
|
"patch": {
|
|
1463
|
-
"tags": [
|
|
1464
|
-
"Threads"
|
|
1465
|
-
],
|
|
1477
|
+
"tags": ["Threads"],
|
|
1466
1478
|
"summary": "Patch Thread",
|
|
1467
1479
|
"description": "Update a thread.",
|
|
1468
1480
|
"operationId": "patch_thread_threads__thread_id__patch",
|
|
@@ -1526,9 +1538,7 @@
|
|
|
1526
1538
|
},
|
|
1527
1539
|
"/threads/{thread_id}/stream": {
|
|
1528
1540
|
"get": {
|
|
1529
|
-
"tags": [
|
|
1530
|
-
"Threads"
|
|
1531
|
-
],
|
|
1541
|
+
"tags": ["Threads"],
|
|
1532
1542
|
"summary": "Join Thread Stream",
|
|
1533
1543
|
"description": "This endpoint streams output in real-time from a thread. The stream will include the output of each run executed sequentially on the thread and will remain open indefinitely. It is the responsibility of the calling client to close the connection.",
|
|
1534
1544
|
"operationId": "join_thread_stream_threads__thread_id__stream_get",
|
|
@@ -1616,9 +1626,7 @@
|
|
|
1616
1626
|
},
|
|
1617
1627
|
"/threads/{thread_id}/runs": {
|
|
1618
1628
|
"get": {
|
|
1619
|
-
"tags": [
|
|
1620
|
-
"Thread Runs"
|
|
1621
|
-
],
|
|
1629
|
+
"tags": ["Thread Runs"],
|
|
1622
1630
|
"summary": "List Runs",
|
|
1623
1631
|
"description": "List runs for a thread.",
|
|
1624
1632
|
"operationId": "list_runs_http_threads__thread_id__runs_get",
|
|
@@ -1659,13 +1667,7 @@
|
|
|
1659
1667
|
"required": false,
|
|
1660
1668
|
"schema": {
|
|
1661
1669
|
"type": "string",
|
|
1662
|
-
"enum": [
|
|
1663
|
-
"pending",
|
|
1664
|
-
"error",
|
|
1665
|
-
"success",
|
|
1666
|
-
"timeout",
|
|
1667
|
-
"interrupted"
|
|
1668
|
-
]
|
|
1670
|
+
"enum": ["pending", "error", "success", "timeout", "interrupted"]
|
|
1669
1671
|
},
|
|
1670
1672
|
"name": "status",
|
|
1671
1673
|
"in": "query"
|
|
@@ -1732,9 +1734,7 @@
|
|
|
1732
1734
|
}
|
|
1733
1735
|
},
|
|
1734
1736
|
"post": {
|
|
1735
|
-
"tags": [
|
|
1736
|
-
"Thread Runs"
|
|
1737
|
-
],
|
|
1737
|
+
"tags": ["Thread Runs"],
|
|
1738
1738
|
"summary": "Create Background Run",
|
|
1739
1739
|
"description": "Create a run in existing thread, return the run ID immediately. Don't wait for the final run output.",
|
|
1740
1740
|
"operationId": "create_run_threads__thread_id__runs_post",
|
|
@@ -1816,9 +1816,7 @@
|
|
|
1816
1816
|
},
|
|
1817
1817
|
"/threads/{thread_id}/runs/crons": {
|
|
1818
1818
|
"post": {
|
|
1819
|
-
"tags": [
|
|
1820
|
-
"Crons (Plus tier)"
|
|
1821
|
-
],
|
|
1819
|
+
"tags": ["Crons (Plus tier)"],
|
|
1822
1820
|
"summary": "Create Thread Cron",
|
|
1823
1821
|
"description": "Create a cron to schedule runs on a thread.",
|
|
1824
1822
|
"operationId": "create_thread_cron_threads__thread_id__runs_crons_post",
|
|
@@ -1840,7 +1838,7 @@
|
|
|
1840
1838
|
"content": {
|
|
1841
1839
|
"application/json": {
|
|
1842
1840
|
"schema": {
|
|
1843
|
-
"$ref": "#/components/schemas/
|
|
1841
|
+
"$ref": "#/components/schemas/ThreadCronCreate"
|
|
1844
1842
|
}
|
|
1845
1843
|
}
|
|
1846
1844
|
},
|
|
@@ -1882,9 +1880,7 @@
|
|
|
1882
1880
|
},
|
|
1883
1881
|
"/threads/{thread_id}/runs/stream": {
|
|
1884
1882
|
"post": {
|
|
1885
|
-
"tags": [
|
|
1886
|
-
"Thread Runs"
|
|
1887
|
-
],
|
|
1883
|
+
"tags": ["Thread Runs"],
|
|
1888
1884
|
"summary": "Create Run, Stream Output",
|
|
1889
1885
|
"description": "Create a run in existing thread. Stream the output.",
|
|
1890
1886
|
"operationId": "stream_run_threads__thread_id__runs_stream_post",
|
|
@@ -1967,9 +1963,7 @@
|
|
|
1967
1963
|
},
|
|
1968
1964
|
"/threads/{thread_id}/runs/wait": {
|
|
1969
1965
|
"post": {
|
|
1970
|
-
"tags": [
|
|
1971
|
-
"Thread Runs"
|
|
1972
|
-
],
|
|
1966
|
+
"tags": ["Thread Runs"],
|
|
1973
1967
|
"summary": "Create Run, Wait for Output",
|
|
1974
1968
|
"description": "Create a run in existing thread. Wait for the final output and then return it.",
|
|
1975
1969
|
"operationId": "wait_run_threads__thread_id__runs_wait_post",
|
|
@@ -2049,9 +2043,7 @@
|
|
|
2049
2043
|
},
|
|
2050
2044
|
"/threads/{thread_id}/runs/{run_id}": {
|
|
2051
2045
|
"get": {
|
|
2052
|
-
"tags": [
|
|
2053
|
-
"Thread Runs"
|
|
2054
|
-
],
|
|
2046
|
+
"tags": ["Thread Runs"],
|
|
2055
2047
|
"summary": "Get Run",
|
|
2056
2048
|
"description": "Get a run by ID.",
|
|
2057
2049
|
"operationId": "get_run_http_threads__thread_id__runs__run_id__get",
|
|
@@ -2115,9 +2107,7 @@
|
|
|
2115
2107
|
}
|
|
2116
2108
|
},
|
|
2117
2109
|
"delete": {
|
|
2118
|
-
"tags": [
|
|
2119
|
-
"Thread Runs"
|
|
2120
|
-
],
|
|
2110
|
+
"tags": ["Thread Runs"],
|
|
2121
2111
|
"summary": "Delete Run",
|
|
2122
2112
|
"description": "Delete a run by ID.",
|
|
2123
2113
|
"operationId": "delete_run_threads__thread_id__runs__run_id__delete",
|
|
@@ -2181,9 +2171,7 @@
|
|
|
2181
2171
|
},
|
|
2182
2172
|
"/threads/{thread_id}/runs/{run_id}/join": {
|
|
2183
2173
|
"get": {
|
|
2184
|
-
"tags": [
|
|
2185
|
-
"Thread Runs"
|
|
2186
|
-
],
|
|
2174
|
+
"tags": ["Thread Runs"],
|
|
2187
2175
|
"summary": "Join Run",
|
|
2188
2176
|
"description": "Wait for a run to finish.",
|
|
2189
2177
|
"operationId": "join_run_http_threads__thread_id__runs__run_id__join_get",
|
|
@@ -2258,9 +2246,7 @@
|
|
|
2258
2246
|
},
|
|
2259
2247
|
"/threads/{thread_id}/runs/{run_id}/stream": {
|
|
2260
2248
|
"get": {
|
|
2261
|
-
"tags": [
|
|
2262
|
-
"Thread Runs"
|
|
2263
|
-
],
|
|
2249
|
+
"tags": ["Thread Runs"],
|
|
2264
2250
|
"summary": "Join Run Stream",
|
|
2265
2251
|
"description": "Join a run stream. This endpoint streams output in real-time from a run similar to the /threads/__THREAD_ID__/runs/stream endpoint. If the run has been created with `stream_resumable=true`, the stream can be resumed from the last seen event ID.",
|
|
2266
2252
|
"operationId": "stream_run_http_threads__thread_id__runs__run_id__join_get",
|
|
@@ -2358,9 +2344,7 @@
|
|
|
2358
2344
|
},
|
|
2359
2345
|
"/threads/{thread_id}/runs/{run_id}/cancel": {
|
|
2360
2346
|
"post": {
|
|
2361
|
-
"tags": [
|
|
2362
|
-
"Thread Runs"
|
|
2363
|
-
],
|
|
2347
|
+
"tags": ["Thread Runs"],
|
|
2364
2348
|
"summary": "Cancel Run",
|
|
2365
2349
|
"operationId": "cancel_run_http_threads__thread_id__runs__run_id__cancel_post",
|
|
2366
2350
|
"parameters": [
|
|
@@ -2403,10 +2387,7 @@
|
|
|
2403
2387
|
"required": false,
|
|
2404
2388
|
"schema": {
|
|
2405
2389
|
"type": "string",
|
|
2406
|
-
"enum": [
|
|
2407
|
-
"interrupt",
|
|
2408
|
-
"rollback"
|
|
2409
|
-
],
|
|
2390
|
+
"enum": ["interrupt", "rollback"],
|
|
2410
2391
|
"title": "Action",
|
|
2411
2392
|
"default": "interrupt"
|
|
2412
2393
|
},
|
|
@@ -2448,9 +2429,7 @@
|
|
|
2448
2429
|
},
|
|
2449
2430
|
"/runs/crons": {
|
|
2450
2431
|
"post": {
|
|
2451
|
-
"tags": [
|
|
2452
|
-
"Crons (Plus tier)"
|
|
2453
|
-
],
|
|
2432
|
+
"tags": ["Crons (Plus tier)"],
|
|
2454
2433
|
"summary": "Create Cron",
|
|
2455
2434
|
"description": "Create a cron to schedule runs on new threads.",
|
|
2456
2435
|
"operationId": "create_cron_runs_crons_post",
|
|
@@ -2500,9 +2479,7 @@
|
|
|
2500
2479
|
},
|
|
2501
2480
|
"/runs/crons/search": {
|
|
2502
2481
|
"post": {
|
|
2503
|
-
"tags": [
|
|
2504
|
-
"Crons (Plus tier)"
|
|
2505
|
-
],
|
|
2482
|
+
"tags": ["Crons (Plus tier)"],
|
|
2506
2483
|
"summary": "Search Crons",
|
|
2507
2484
|
"description": "Search all active crons",
|
|
2508
2485
|
"operationId": "search_crons_runs_crons_post",
|
|
@@ -2546,9 +2523,7 @@
|
|
|
2546
2523
|
},
|
|
2547
2524
|
"/runs/crons/count": {
|
|
2548
2525
|
"post": {
|
|
2549
|
-
"tags": [
|
|
2550
|
-
"Crons (Plus tier)"
|
|
2551
|
-
],
|
|
2526
|
+
"tags": ["Crons (Plus tier)"],
|
|
2552
2527
|
"summary": "Count Crons",
|
|
2553
2528
|
"description": "Get the count of crons matching the specified criteria.",
|
|
2554
2529
|
"operationId": "count_crons_runs_crons_count_post",
|
|
@@ -2599,11 +2574,9 @@
|
|
|
2599
2574
|
},
|
|
2600
2575
|
"/runs/stream": {
|
|
2601
2576
|
"post": {
|
|
2602
|
-
"tags": [
|
|
2603
|
-
"Stateless Runs"
|
|
2604
|
-
],
|
|
2577
|
+
"tags": ["Stateless Runs"],
|
|
2605
2578
|
"summary": "Create Run, Stream Output",
|
|
2606
|
-
"description": "Create a run
|
|
2579
|
+
"description": "Create a run and stream the output.",
|
|
2607
2580
|
"operationId": "stream_run_stateless_runs_stream_post",
|
|
2608
2581
|
"requestBody": {
|
|
2609
2582
|
"content": {
|
|
@@ -2670,9 +2643,7 @@
|
|
|
2670
2643
|
},
|
|
2671
2644
|
"/runs/cancel": {
|
|
2672
2645
|
"post": {
|
|
2673
|
-
"tags": [
|
|
2674
|
-
"Thread Runs"
|
|
2675
|
-
],
|
|
2646
|
+
"tags": ["Thread Runs"],
|
|
2676
2647
|
"summary": "Cancel Runs",
|
|
2677
2648
|
"description": "Cancel one or more runs. Can cancel runs by thread ID and run IDs, or by status filter.",
|
|
2678
2649
|
"operationId": "cancel_runs_post",
|
|
@@ -2682,10 +2653,7 @@
|
|
|
2682
2653
|
"required": false,
|
|
2683
2654
|
"schema": {
|
|
2684
2655
|
"type": "string",
|
|
2685
|
-
"enum": [
|
|
2686
|
-
"interrupt",
|
|
2687
|
-
"rollback"
|
|
2688
|
-
],
|
|
2656
|
+
"enum": ["interrupt", "rollback"],
|
|
2689
2657
|
"title": "Action",
|
|
2690
2658
|
"default": "interrupt"
|
|
2691
2659
|
},
|
|
@@ -2732,11 +2700,9 @@
|
|
|
2732
2700
|
},
|
|
2733
2701
|
"/runs/wait": {
|
|
2734
2702
|
"post": {
|
|
2735
|
-
"tags": [
|
|
2736
|
-
"Stateless Runs"
|
|
2737
|
-
],
|
|
2703
|
+
"tags": ["Stateless Runs"],
|
|
2738
2704
|
"summary": "Create Run, Wait for Output",
|
|
2739
|
-
"description": "Create a run
|
|
2705
|
+
"description": "Create a run, wait for the final output and then return it.",
|
|
2740
2706
|
"operationId": "wait_run_stateless_runs_wait_post",
|
|
2741
2707
|
"requestBody": {
|
|
2742
2708
|
"content": {
|
|
@@ -2800,11 +2766,9 @@
|
|
|
2800
2766
|
},
|
|
2801
2767
|
"/runs": {
|
|
2802
2768
|
"post": {
|
|
2803
|
-
"tags": [
|
|
2804
|
-
"Stateless Runs"
|
|
2805
|
-
],
|
|
2769
|
+
"tags": ["Stateless Runs"],
|
|
2806
2770
|
"summary": "Create Background Run",
|
|
2807
|
-
"description": "Create a run
|
|
2771
|
+
"description": "Create a run and return the run ID immediately. Don't wait for the final run output.",
|
|
2808
2772
|
"operationId": "run_stateless_runs_post",
|
|
2809
2773
|
"requestBody": {
|
|
2810
2774
|
"content": {
|
|
@@ -2868,11 +2832,9 @@
|
|
|
2868
2832
|
},
|
|
2869
2833
|
"/runs/batch": {
|
|
2870
2834
|
"post": {
|
|
2871
|
-
"tags": [
|
|
2872
|
-
"Stateless Runs"
|
|
2873
|
-
],
|
|
2835
|
+
"tags": ["Stateless Runs"],
|
|
2874
2836
|
"summary": "Create Run Batch",
|
|
2875
|
-
"description": "Create a batch of runs
|
|
2837
|
+
"description": "Create a batch of runs and return immediately.",
|
|
2876
2838
|
"operationId": "run_batch_stateless_runs_post",
|
|
2877
2839
|
"requestBody": {
|
|
2878
2840
|
"content": {
|
|
@@ -2928,9 +2890,7 @@
|
|
|
2928
2890
|
},
|
|
2929
2891
|
"/runs/crons/{cron_id}": {
|
|
2930
2892
|
"delete": {
|
|
2931
|
-
"tags": [
|
|
2932
|
-
"Crons (Plus tier)"
|
|
2933
|
-
],
|
|
2893
|
+
"tags": ["Crons (Plus tier)"],
|
|
2934
2894
|
"summary": "Delete Cron",
|
|
2935
2895
|
"description": "Delete a cron by ID.",
|
|
2936
2896
|
"operationId": "delete_cron_runs_crons__cron_id__delete",
|
|
@@ -2980,9 +2940,7 @@
|
|
|
2980
2940
|
},
|
|
2981
2941
|
"/store/items": {
|
|
2982
2942
|
"put": {
|
|
2983
|
-
"tags": [
|
|
2984
|
-
"Store"
|
|
2985
|
-
],
|
|
2943
|
+
"tags": ["Store"],
|
|
2986
2944
|
"summary": "Store or update an item.",
|
|
2987
2945
|
"operationId": "put_item",
|
|
2988
2946
|
"requestBody": {
|
|
@@ -3012,9 +2970,7 @@
|
|
|
3012
2970
|
}
|
|
3013
2971
|
},
|
|
3014
2972
|
"delete": {
|
|
3015
|
-
"tags": [
|
|
3016
|
-
"Store"
|
|
3017
|
-
],
|
|
2973
|
+
"tags": ["Store"],
|
|
3018
2974
|
"summary": "Delete an item.",
|
|
3019
2975
|
"operationId": "delete_item",
|
|
3020
2976
|
"requestBody": {
|
|
@@ -3044,9 +3000,7 @@
|
|
|
3044
3000
|
}
|
|
3045
3001
|
},
|
|
3046
3002
|
"get": {
|
|
3047
|
-
"tags": [
|
|
3048
|
-
"Store"
|
|
3049
|
-
],
|
|
3003
|
+
"tags": ["Store"],
|
|
3050
3004
|
"summary": "Retrieve a single item.",
|
|
3051
3005
|
"operationId": "get_item",
|
|
3052
3006
|
"parameters": [
|
|
@@ -3106,9 +3060,7 @@
|
|
|
3106
3060
|
},
|
|
3107
3061
|
"/store/items/search": {
|
|
3108
3062
|
"post": {
|
|
3109
|
-
"tags": [
|
|
3110
|
-
"Store"
|
|
3111
|
-
],
|
|
3063
|
+
"tags": ["Store"],
|
|
3112
3064
|
"summary": "Search for items within a namespace prefix.",
|
|
3113
3065
|
"operationId": "search_items",
|
|
3114
3066
|
"requestBody": {
|
|
@@ -3147,9 +3099,7 @@
|
|
|
3147
3099
|
},
|
|
3148
3100
|
"/store/namespaces": {
|
|
3149
3101
|
"post": {
|
|
3150
|
-
"tags": [
|
|
3151
|
-
"Store"
|
|
3152
|
-
],
|
|
3102
|
+
"tags": ["Store"],
|
|
3153
3103
|
"summary": "List namespaces with optional match conditions.",
|
|
3154
3104
|
"operationId": "list_namespaces",
|
|
3155
3105
|
"requestBody": {
|
|
@@ -3189,8 +3139,8 @@
|
|
|
3189
3139
|
"/a2a/{assistant_id}": {
|
|
3190
3140
|
"post": {
|
|
3191
3141
|
"operationId": "post_a2a",
|
|
3192
|
-
"summary": "A2A
|
|
3193
|
-
"description": "Communicate with an assistant using the Agent-to-Agent Protocol
|
|
3142
|
+
"summary": "A2A JSON-RPC",
|
|
3143
|
+
"description": "Communicate with an assistant using the Agent-to-Agent (A2A) Protocol over JSON-RPC 2.0.\nThis endpoint accepts a JSON-RPC envelope and dispatches based on `method`.\n\n**Supported Methods:**\n- `message/send`: Send a message and wait for the final Task result.\n- `message/stream`: Send a message and receive Server-Sent Events (SSE) JSON-RPC responses.\n- `tasks/get`: Fetch the current state of a Task by ID.\n- `tasks/cancel`: Request cancellation (currently not supported; returns an error).\n\n**LangGraph Mapping:**\n- `message.contextId` maps to LangGraph `thread_id`.\n\n**Notes:**\n- Only `text` and `data` parts are supported; `file` parts are not.\n- If `message.contextId` is omitted, a new context is created.\n- Text parts require the assistant input schema to include a `messages` field.\n",
|
|
3194
3144
|
"parameters": [
|
|
3195
3145
|
{
|
|
3196
3146
|
"name": "assistant_id",
|
|
@@ -3207,10 +3157,9 @@
|
|
|
3207
3157
|
"in": "header",
|
|
3208
3158
|
"required": true,
|
|
3209
3159
|
"schema": {
|
|
3210
|
-
"type": "string"
|
|
3211
|
-
"enum": ["application/json"]
|
|
3160
|
+
"type": "string"
|
|
3212
3161
|
},
|
|
3213
|
-
"description": "
|
|
3162
|
+
"description": "For `message/stream`, must include `text/event-stream`. For all other methods, use `application/json`."
|
|
3214
3163
|
}
|
|
3215
3164
|
],
|
|
3216
3165
|
"requestBody": {
|
|
@@ -3231,23 +3180,29 @@
|
|
|
3231
3180
|
},
|
|
3232
3181
|
"method": {
|
|
3233
3182
|
"type": "string",
|
|
3234
|
-
"enum": [
|
|
3183
|
+
"enum": [
|
|
3184
|
+
"message/send",
|
|
3185
|
+
"message/stream",
|
|
3186
|
+
"tasks/get",
|
|
3187
|
+
"tasks/cancel"
|
|
3188
|
+
],
|
|
3235
3189
|
"description": "The method to invoke"
|
|
3236
3190
|
},
|
|
3237
3191
|
"params": {
|
|
3238
3192
|
"type": "object",
|
|
3239
|
-
"description": "Method parameters",
|
|
3193
|
+
"description": "Method parameters; shape depends on the method.",
|
|
3240
3194
|
"oneOf": [
|
|
3241
3195
|
{
|
|
3242
|
-
"title": "Message Send Parameters",
|
|
3196
|
+
"title": "Message Send/Stream Parameters",
|
|
3197
|
+
"type": "object",
|
|
3243
3198
|
"properties": {
|
|
3244
3199
|
"message": {
|
|
3245
3200
|
"type": "object",
|
|
3246
3201
|
"properties": {
|
|
3247
3202
|
"role": {
|
|
3248
3203
|
"type": "string",
|
|
3249
|
-
"enum": ["user", "
|
|
3250
|
-
"description": "
|
|
3204
|
+
"enum": ["user", "agent"],
|
|
3205
|
+
"description": "A2A role for the message sender."
|
|
3251
3206
|
},
|
|
3252
3207
|
"parts": {
|
|
3253
3208
|
"type": "array",
|
|
@@ -3262,13 +3217,14 @@
|
|
|
3262
3217
|
"enum": ["text"]
|
|
3263
3218
|
},
|
|
3264
3219
|
"text": {
|
|
3265
|
-
"type": "string"
|
|
3220
|
+
"type": "string",
|
|
3221
|
+
"description": "Text content."
|
|
3266
3222
|
}
|
|
3267
3223
|
},
|
|
3268
3224
|
"required": ["kind", "text"]
|
|
3269
3225
|
},
|
|
3270
3226
|
{
|
|
3271
|
-
"title": "Data Part",
|
|
3227
|
+
"title": "Data Part",
|
|
3272
3228
|
"type": "object",
|
|
3273
3229
|
"properties": {
|
|
3274
3230
|
"kind": {
|
|
@@ -3276,56 +3232,156 @@
|
|
|
3276
3232
|
"enum": ["data"]
|
|
3277
3233
|
},
|
|
3278
3234
|
"data": {
|
|
3279
|
-
"type": "object"
|
|
3235
|
+
"type": "object",
|
|
3236
|
+
"description": "Structured JSON merged into the assistant input."
|
|
3280
3237
|
}
|
|
3281
3238
|
},
|
|
3282
3239
|
"required": ["kind", "data"]
|
|
3283
3240
|
}
|
|
3284
3241
|
]
|
|
3285
3242
|
},
|
|
3286
|
-
"description": "Message parts"
|
|
3243
|
+
"description": "Message parts (text/data only)."
|
|
3287
3244
|
},
|
|
3288
3245
|
"messageId": {
|
|
3289
3246
|
"type": "string",
|
|
3290
|
-
"description": "
|
|
3291
|
-
}
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
"properties": {
|
|
3298
|
-
"threadId": {
|
|
3247
|
+
"description": "Client-generated message identifier."
|
|
3248
|
+
},
|
|
3249
|
+
"contextId": {
|
|
3250
|
+
"type": "string",
|
|
3251
|
+
"description": "Conversation context ID; maps to LangGraph thread_id."
|
|
3252
|
+
},
|
|
3253
|
+
"taskId": {
|
|
3299
3254
|
"type": "string",
|
|
3300
|
-
"description": "
|
|
3255
|
+
"description": "Optional task ID. Currently ignored by this implementation."
|
|
3301
3256
|
}
|
|
3302
3257
|
},
|
|
3303
|
-
"
|
|
3258
|
+
"required": ["role", "parts", "messageId"]
|
|
3304
3259
|
}
|
|
3305
3260
|
},
|
|
3306
3261
|
"required": ["message"]
|
|
3307
3262
|
},
|
|
3308
3263
|
{
|
|
3309
3264
|
"title": "Task Get Parameters",
|
|
3265
|
+
"type": "object",
|
|
3266
|
+
"properties": {
|
|
3267
|
+
"id": {
|
|
3268
|
+
"type": "string",
|
|
3269
|
+
"description": "Task (run) identifier to retrieve."
|
|
3270
|
+
},
|
|
3271
|
+
"contextId": {
|
|
3272
|
+
"type": "string",
|
|
3273
|
+
"description": "Context identifier (thread_id) for the task."
|
|
3274
|
+
},
|
|
3275
|
+
"historyLength": {
|
|
3276
|
+
"type": "integer",
|
|
3277
|
+
"minimum": 0,
|
|
3278
|
+
"maximum": 10,
|
|
3279
|
+
"description": "Maximum number of history messages to include."
|
|
3280
|
+
}
|
|
3281
|
+
},
|
|
3282
|
+
"required": ["id", "contextId"]
|
|
3283
|
+
},
|
|
3284
|
+
{
|
|
3285
|
+
"title": "Task Cancel Parameters",
|
|
3286
|
+
"type": "object",
|
|
3310
3287
|
"properties": {
|
|
3311
|
-
"
|
|
3288
|
+
"id": {
|
|
3289
|
+
"type": "string",
|
|
3290
|
+
"description": "Task (run) identifier to cancel."
|
|
3291
|
+
},
|
|
3292
|
+
"contextId": {
|
|
3312
3293
|
"type": "string",
|
|
3313
|
-
"description": "
|
|
3294
|
+
"description": "Context identifier (thread_id) for the task."
|
|
3314
3295
|
}
|
|
3315
3296
|
},
|
|
3316
|
-
"required": ["
|
|
3297
|
+
"required": ["id", "contextId"]
|
|
3317
3298
|
}
|
|
3318
3299
|
]
|
|
3319
3300
|
}
|
|
3320
3301
|
},
|
|
3321
3302
|
"required": ["jsonrpc", "id", "method"]
|
|
3303
|
+
},
|
|
3304
|
+
"examples": {
|
|
3305
|
+
"message_send": {
|
|
3306
|
+
"summary": "Send a message (synchronous)",
|
|
3307
|
+
"value": {
|
|
3308
|
+
"jsonrpc": "2.0",
|
|
3309
|
+
"id": "1",
|
|
3310
|
+
"method": "message/send",
|
|
3311
|
+
"params": {
|
|
3312
|
+
"message": {
|
|
3313
|
+
"role": "user",
|
|
3314
|
+
"parts": [
|
|
3315
|
+
{
|
|
3316
|
+
"kind": "text",
|
|
3317
|
+
"text": "Hello from A2A"
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"kind": "data",
|
|
3321
|
+
"data": {
|
|
3322
|
+
"locale": "en-US"
|
|
3323
|
+
}
|
|
3324
|
+
}
|
|
3325
|
+
],
|
|
3326
|
+
"messageId": "msg-1",
|
|
3327
|
+
"contextId": "f5bd2a40-74b6-4f7a-b649-ea3f09890003"
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
},
|
|
3332
|
+
"message_stream": {
|
|
3333
|
+
"summary": "Send a message (streaming)",
|
|
3334
|
+
"value": {
|
|
3335
|
+
"jsonrpc": "2.0",
|
|
3336
|
+
"id": "2",
|
|
3337
|
+
"method": "message/stream",
|
|
3338
|
+
"params": {
|
|
3339
|
+
"message": {
|
|
3340
|
+
"role": "user",
|
|
3341
|
+
"parts": [
|
|
3342
|
+
{
|
|
3343
|
+
"kind": "text",
|
|
3344
|
+
"text": "Stream this response"
|
|
3345
|
+
}
|
|
3346
|
+
],
|
|
3347
|
+
"messageId": "msg-2",
|
|
3348
|
+
"contextId": "f5bd2a40-74b6-4f7a-b649-ea3f09890003"
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
},
|
|
3353
|
+
"tasks_get": {
|
|
3354
|
+
"summary": "Get a task",
|
|
3355
|
+
"value": {
|
|
3356
|
+
"jsonrpc": "2.0",
|
|
3357
|
+
"id": "3",
|
|
3358
|
+
"method": "tasks/get",
|
|
3359
|
+
"params": {
|
|
3360
|
+
"id": "run-uuid",
|
|
3361
|
+
"contextId": "f5bd2a40-74b6-4f7a-b649-ea3f09890003",
|
|
3362
|
+
"historyLength": 10
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
},
|
|
3366
|
+
"tasks_cancel": {
|
|
3367
|
+
"summary": "Cancel a task (currently unsupported)",
|
|
3368
|
+
"value": {
|
|
3369
|
+
"jsonrpc": "2.0",
|
|
3370
|
+
"id": "4",
|
|
3371
|
+
"method": "tasks/cancel",
|
|
3372
|
+
"params": {
|
|
3373
|
+
"id": "run-uuid",
|
|
3374
|
+
"contextId": "f5bd2a40-74b6-4f7a-b649-ea3f09890003"
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3322
3378
|
}
|
|
3323
3379
|
}
|
|
3324
3380
|
}
|
|
3325
3381
|
},
|
|
3326
3382
|
"responses": {
|
|
3327
3383
|
"200": {
|
|
3328
|
-
"description": "JSON-RPC response",
|
|
3384
|
+
"description": "JSON-RPC response for non-streaming methods. For `message/stream`, the response is an SSE stream of JSON-RPC envelopes.",
|
|
3329
3385
|
"content": {
|
|
3330
3386
|
"application/json": {
|
|
3331
3387
|
"schema": {
|
|
@@ -3356,12 +3412,64 @@
|
|
|
3356
3412
|
}
|
|
3357
3413
|
},
|
|
3358
3414
|
"required": ["jsonrpc", "id"]
|
|
3415
|
+
},
|
|
3416
|
+
"examples": {
|
|
3417
|
+
"task_result": {
|
|
3418
|
+
"summary": "Task result (message/send)",
|
|
3419
|
+
"value": {
|
|
3420
|
+
"jsonrpc": "2.0",
|
|
3421
|
+
"id": "1",
|
|
3422
|
+
"result": {
|
|
3423
|
+
"kind": "task",
|
|
3424
|
+
"id": "run-uuid",
|
|
3425
|
+
"contextId": "f5bd2a40-74b6-4f7a-b649-ea3f09890003",
|
|
3426
|
+
"status": {
|
|
3427
|
+
"state": "completed"
|
|
3428
|
+
},
|
|
3429
|
+
"artifacts": [
|
|
3430
|
+
{
|
|
3431
|
+
"artifactId": "artifact-uuid",
|
|
3432
|
+
"name": "Assistant Response",
|
|
3433
|
+
"parts": [
|
|
3434
|
+
{
|
|
3435
|
+
"kind": "text",
|
|
3436
|
+
"text": "Hello back"
|
|
3437
|
+
}
|
|
3438
|
+
]
|
|
3439
|
+
}
|
|
3440
|
+
]
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
},
|
|
3444
|
+
"error_result": {
|
|
3445
|
+
"summary": "Error response",
|
|
3446
|
+
"value": {
|
|
3447
|
+
"jsonrpc": "2.0",
|
|
3448
|
+
"id": "1",
|
|
3449
|
+
"error": {
|
|
3450
|
+
"code": -32602,
|
|
3451
|
+
"message": "Invalid request: Missing required parameter: contextId"
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
},
|
|
3457
|
+
"text/event-stream": {
|
|
3458
|
+
"schema": {
|
|
3459
|
+
"type": "string",
|
|
3460
|
+
"description": "SSE stream of JSON-RPC response objects."
|
|
3461
|
+
},
|
|
3462
|
+
"examples": {
|
|
3463
|
+
"stream_event": {
|
|
3464
|
+
"summary": "SSE data chunk (JSON-RPC)",
|
|
3465
|
+
"value": "data: {\"jsonrpc\":\"2.0\",\"id\":\"2\",\"result\":{\"kind\":\"status-update\",\"taskId\":\"run-uuid\",\"contextId\":\"f5bd2a40-74b6-4f7a-b649-ea3f09890003\",\"status\":{\"state\":\"working\"},\"final\":false}}\n\n"
|
|
3466
|
+
}
|
|
3359
3467
|
}
|
|
3360
3468
|
}
|
|
3361
3469
|
}
|
|
3362
3470
|
},
|
|
3363
3471
|
"400": {
|
|
3364
|
-
"description": "Bad
|
|
3472
|
+
"description": "Bad Request (invalid JSON-RPC, invalid params, or missing Accept header)."
|
|
3365
3473
|
},
|
|
3366
3474
|
"404": {
|
|
3367
3475
|
"description": "Assistant not found"
|
|
@@ -3370,9 +3478,7 @@
|
|
|
3370
3478
|
"description": "Internal server error"
|
|
3371
3479
|
}
|
|
3372
3480
|
},
|
|
3373
|
-
"tags": [
|
|
3374
|
-
"A2A"
|
|
3375
|
-
]
|
|
3481
|
+
"tags": ["A2A"]
|
|
3376
3482
|
}
|
|
3377
3483
|
},
|
|
3378
3484
|
"/mcp/": {
|
|
@@ -3387,9 +3493,7 @@
|
|
|
3387
3493
|
"required": true,
|
|
3388
3494
|
"schema": {
|
|
3389
3495
|
"type": "string",
|
|
3390
|
-
"enum": [
|
|
3391
|
-
"application/json, text/event-stream"
|
|
3392
|
-
]
|
|
3496
|
+
"enum": ["application/json, text/event-stream"]
|
|
3393
3497
|
},
|
|
3394
3498
|
"description": "Accept header must include both 'application/json' and 'text/event-stream' media types."
|
|
3395
3499
|
}
|
|
@@ -3399,9 +3503,9 @@
|
|
|
3399
3503
|
"content": {
|
|
3400
3504
|
"application/json": {
|
|
3401
3505
|
"schema": {
|
|
3402
|
-
"type": "object"
|
|
3506
|
+
"type": "object",
|
|
3507
|
+
"description": "A JSON-RPC 2.0 request, notification, or response object."
|
|
3403
3508
|
},
|
|
3404
|
-
"description": "A JSON-RPC 2.0 request, notification, or response object.",
|
|
3405
3509
|
"example": {
|
|
3406
3510
|
"jsonrpc": "2.0",
|
|
3407
3511
|
"id": "1",
|
|
@@ -3442,9 +3546,7 @@
|
|
|
3442
3546
|
"description": "Internal server error or unexpected failure."
|
|
3443
3547
|
}
|
|
3444
3548
|
},
|
|
3445
|
-
"tags": [
|
|
3446
|
-
"MCP"
|
|
3447
|
-
]
|
|
3549
|
+
"tags": ["MCP"]
|
|
3448
3550
|
},
|
|
3449
3551
|
"get": {
|
|
3450
3552
|
"operationId": "get_mcp",
|
|
@@ -3455,27 +3557,23 @@
|
|
|
3455
3557
|
"description": "GET method not allowed; streaming not supported."
|
|
3456
3558
|
}
|
|
3457
3559
|
},
|
|
3458
|
-
"tags": [
|
|
3459
|
-
"MCP"
|
|
3460
|
-
]
|
|
3560
|
+
"tags": ["MCP"]
|
|
3461
3561
|
},
|
|
3462
3562
|
"delete": {
|
|
3463
3563
|
"operationId": "delete_mcp",
|
|
3464
3564
|
"summary": "Terminate Session",
|
|
3465
3565
|
"description": "Implemented according to the Streamable HTTP Transport specification.\nTerminate an MCP session. The server implementation is stateless, so this is a no-op.\n\n",
|
|
3466
3566
|
"responses": {
|
|
3467
|
-
"404": {
|
|
3567
|
+
"404": {
|
|
3568
|
+
"description": "Session not found"
|
|
3569
|
+
}
|
|
3468
3570
|
},
|
|
3469
|
-
"tags": [
|
|
3470
|
-
"MCP"
|
|
3471
|
-
]
|
|
3571
|
+
"tags": ["MCP"]
|
|
3472
3572
|
}
|
|
3473
3573
|
},
|
|
3474
3574
|
"/info": {
|
|
3475
3575
|
"get": {
|
|
3476
|
-
"tags": [
|
|
3477
|
-
"System"
|
|
3478
|
-
],
|
|
3576
|
+
"tags": ["System"],
|
|
3479
3577
|
"summary": "Server Information",
|
|
3480
3578
|
"description": "Get server version information, feature flags, and metadata.",
|
|
3481
3579
|
"operationId": "server_info_info_get",
|
|
@@ -3508,7 +3606,12 @@
|
|
|
3508
3606
|
"description": "Server deployment metadata"
|
|
3509
3607
|
}
|
|
3510
3608
|
},
|
|
3511
|
-
"required": [
|
|
3609
|
+
"required": [
|
|
3610
|
+
"version",
|
|
3611
|
+
"langgraph_py_version",
|
|
3612
|
+
"flags",
|
|
3613
|
+
"metadata"
|
|
3614
|
+
],
|
|
3512
3615
|
"title": "ServerInfo"
|
|
3513
3616
|
}
|
|
3514
3617
|
}
|
|
@@ -3519,9 +3622,7 @@
|
|
|
3519
3622
|
},
|
|
3520
3623
|
"/metrics": {
|
|
3521
3624
|
"get": {
|
|
3522
|
-
"tags": [
|
|
3523
|
-
"System"
|
|
3524
|
-
],
|
|
3625
|
+
"tags": ["System"],
|
|
3525
3626
|
"summary": "System Metrics",
|
|
3526
3627
|
"description": "Get system metrics in Prometheus or JSON format for monitoring and observability.",
|
|
3527
3628
|
"operationId": "system_metrics_metrics_get",
|
|
@@ -3564,9 +3665,7 @@
|
|
|
3564
3665
|
},
|
|
3565
3666
|
"/ok": {
|
|
3566
3667
|
"get": {
|
|
3567
|
-
"tags": [
|
|
3568
|
-
"System"
|
|
3569
|
-
],
|
|
3668
|
+
"tags": ["System"],
|
|
3570
3669
|
"summary": "Health Check",
|
|
3571
3670
|
"description": "Check the health status of the server. Optionally check database connectivity.",
|
|
3572
3671
|
"operationId": "health_check_ok_get",
|
|
@@ -3689,10 +3788,7 @@
|
|
|
3689
3788
|
"description": "The name of the assistant"
|
|
3690
3789
|
},
|
|
3691
3790
|
"description": {
|
|
3692
|
-
"type": [
|
|
3693
|
-
"string",
|
|
3694
|
-
"null"
|
|
3695
|
-
],
|
|
3791
|
+
"type": ["string", "null"],
|
|
3696
3792
|
"title": "Assistant Description",
|
|
3697
3793
|
"description": "The description of the assistant"
|
|
3698
3794
|
}
|
|
@@ -3738,10 +3834,7 @@
|
|
|
3738
3834
|
},
|
|
3739
3835
|
"if_exists": {
|
|
3740
3836
|
"type": "string",
|
|
3741
|
-
"enum": [
|
|
3742
|
-
"raise",
|
|
3743
|
-
"do_nothing"
|
|
3744
|
-
],
|
|
3837
|
+
"enum": ["raise", "do_nothing"],
|
|
3745
3838
|
"title": "If Exists",
|
|
3746
3839
|
"description": "How to handle duplicate creation. Must be either 'raise' (raise error if duplicate), or 'do_nothing' (return existing assistant).",
|
|
3747
3840
|
"default": "raise"
|
|
@@ -3752,18 +3845,13 @@
|
|
|
3752
3845
|
"description": "The name of the assistant. Defaults to 'Untitled'."
|
|
3753
3846
|
},
|
|
3754
3847
|
"description": {
|
|
3755
|
-
"type": [
|
|
3756
|
-
"string",
|
|
3757
|
-
"null"
|
|
3758
|
-
],
|
|
3848
|
+
"type": ["string", "null"],
|
|
3759
3849
|
"title": "Description",
|
|
3760
3850
|
"description": "The description of the assistant. Defaults to null."
|
|
3761
3851
|
}
|
|
3762
3852
|
},
|
|
3763
3853
|
"type": "object",
|
|
3764
|
-
"required": [
|
|
3765
|
-
"graph_id"
|
|
3766
|
-
],
|
|
3854
|
+
"required": ["graph_id"],
|
|
3767
3855
|
"title": "AssistantCreate",
|
|
3768
3856
|
"description": "Payload for creating an assistant."
|
|
3769
3857
|
},
|
|
@@ -4001,9 +4089,7 @@
|
|
|
4001
4089
|
"anyOf": [
|
|
4002
4090
|
{
|
|
4003
4091
|
"type": "string",
|
|
4004
|
-
"enum": [
|
|
4005
|
-
"*"
|
|
4006
|
-
]
|
|
4092
|
+
"enum": ["*"]
|
|
4007
4093
|
},
|
|
4008
4094
|
{
|
|
4009
4095
|
"items": {
|
|
@@ -4019,9 +4105,7 @@
|
|
|
4019
4105
|
"anyOf": [
|
|
4020
4106
|
{
|
|
4021
4107
|
"type": "string",
|
|
4022
|
-
"enum": [
|
|
4023
|
-
"*"
|
|
4024
|
-
]
|
|
4108
|
+
"enum": ["*"]
|
|
4025
4109
|
},
|
|
4026
4110
|
{
|
|
4027
4111
|
"items": {
|
|
@@ -4033,26 +4117,19 @@
|
|
|
4033
4117
|
"title": "Interrupt After",
|
|
4034
4118
|
"description": "Nodes to interrupt immediately after they get executed."
|
|
4035
4119
|
},
|
|
4036
|
-
"
|
|
4120
|
+
"on_run_completed": {
|
|
4037
4121
|
"type": "string",
|
|
4038
|
-
"enum": [
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
"enqueue"
|
|
4043
|
-
],
|
|
4044
|
-
"title": "Multitask Strategy",
|
|
4045
|
-
"description": "Multitask strategy to use. Must be one of 'reject', 'interrupt', 'rollback', or 'enqueue'.",
|
|
4046
|
-
"default": "enqueue"
|
|
4122
|
+
"enum": ["delete", "keep"],
|
|
4123
|
+
"default": "delete",
|
|
4124
|
+
"title": "On Run Completed",
|
|
4125
|
+
"description": "What to do with the thread after the run completes. 'delete' removes the thread after execution. 'keep' creates a new thread for each execution but does not clean them up."
|
|
4047
4126
|
}
|
|
4048
4127
|
},
|
|
4049
4128
|
"type": "object",
|
|
4050
|
-
"required": [
|
|
4051
|
-
|
|
4052
|
-
"schedule"
|
|
4053
|
-
],
|
|
4129
|
+
"required": ["assistant_id", "schedule"],
|
|
4130
|
+
"additionalProperties": true,
|
|
4054
4131
|
"title": "CronCreate",
|
|
4055
|
-
"description": "Payload for creating a cron job."
|
|
4132
|
+
"description": "Payload for creating a stateless cron job (creates a new thread for each execution)."
|
|
4056
4133
|
},
|
|
4057
4134
|
"CronSearch": {
|
|
4058
4135
|
"properties": {
|
|
@@ -4088,7 +4165,15 @@
|
|
|
4088
4165
|
"title": "Sort By",
|
|
4089
4166
|
"description": "The field to sort by.",
|
|
4090
4167
|
"default": "created_at",
|
|
4091
|
-
"enum": [
|
|
4168
|
+
"enum": [
|
|
4169
|
+
"cron_id",
|
|
4170
|
+
"assistant_id",
|
|
4171
|
+
"thread_id",
|
|
4172
|
+
"next_run_date",
|
|
4173
|
+
"end_time",
|
|
4174
|
+
"created_at",
|
|
4175
|
+
"updated_at"
|
|
4176
|
+
]
|
|
4092
4177
|
},
|
|
4093
4178
|
"sort_order": {
|
|
4094
4179
|
"type": "string",
|
|
@@ -4105,6 +4190,7 @@
|
|
|
4105
4190
|
"cron_id",
|
|
4106
4191
|
"assistant_id",
|
|
4107
4192
|
"thread_id",
|
|
4193
|
+
"on_run_completed",
|
|
4108
4194
|
"end_time",
|
|
4109
4195
|
"schedule",
|
|
4110
4196
|
"created_at",
|
|
@@ -4112,8 +4198,7 @@
|
|
|
4112
4198
|
"user_id",
|
|
4113
4199
|
"payload",
|
|
4114
4200
|
"next_run_date",
|
|
4115
|
-
"metadata"
|
|
4116
|
-
"now"
|
|
4201
|
+
"metadata"
|
|
4117
4202
|
]
|
|
4118
4203
|
},
|
|
4119
4204
|
"title": "Select",
|
|
@@ -4178,10 +4263,7 @@
|
|
|
4178
4263
|
}
|
|
4179
4264
|
},
|
|
4180
4265
|
"type": "object",
|
|
4181
|
-
"required": [
|
|
4182
|
-
"graph_id",
|
|
4183
|
-
"state_schema"
|
|
4184
|
-
],
|
|
4266
|
+
"required": ["graph_id", "state_schema"],
|
|
4185
4267
|
"title": "GraphSchema",
|
|
4186
4268
|
"description": "Defines the structure and properties of a graph."
|
|
4187
4269
|
},
|
|
@@ -4214,11 +4296,7 @@
|
|
|
4214
4296
|
}
|
|
4215
4297
|
},
|
|
4216
4298
|
"type": "object",
|
|
4217
|
-
"required": [
|
|
4218
|
-
"input_schema",
|
|
4219
|
-
"output_schema",
|
|
4220
|
-
"state_schema"
|
|
4221
|
-
],
|
|
4299
|
+
"required": ["input_schema", "output_schema", "state_schema"],
|
|
4222
4300
|
"title": "GraphSchemaNoId",
|
|
4223
4301
|
"description": "Defines the structure and properties of a graph without an ID."
|
|
4224
4302
|
},
|
|
@@ -4286,12 +4364,7 @@
|
|
|
4286
4364
|
},
|
|
4287
4365
|
"multitask_strategy": {
|
|
4288
4366
|
"type": "string",
|
|
4289
|
-
"enum": [
|
|
4290
|
-
"reject",
|
|
4291
|
-
"rollback",
|
|
4292
|
-
"interrupt",
|
|
4293
|
-
"enqueue"
|
|
4294
|
-
],
|
|
4367
|
+
"enum": ["reject", "rollback", "interrupt", "enqueue"],
|
|
4295
4368
|
"title": "Multitask Strategy",
|
|
4296
4369
|
"description": "Strategy to handle concurrent runs on the same thread."
|
|
4297
4370
|
}
|
|
@@ -4321,22 +4394,12 @@
|
|
|
4321
4394
|
"description": "The node to send the message to."
|
|
4322
4395
|
},
|
|
4323
4396
|
"input": {
|
|
4324
|
-
"type": [
|
|
4325
|
-
"object",
|
|
4326
|
-
"array",
|
|
4327
|
-
"number",
|
|
4328
|
-
"string",
|
|
4329
|
-
"boolean",
|
|
4330
|
-
"null"
|
|
4331
|
-
],
|
|
4397
|
+
"type": ["object", "array", "number", "string", "boolean", "null"],
|
|
4332
4398
|
"title": "Message",
|
|
4333
4399
|
"description": "The message to send."
|
|
4334
4400
|
}
|
|
4335
4401
|
},
|
|
4336
|
-
"required": [
|
|
4337
|
-
"node",
|
|
4338
|
-
"input"
|
|
4339
|
-
]
|
|
4402
|
+
"required": ["node", "input"]
|
|
4340
4403
|
},
|
|
4341
4404
|
"Command": {
|
|
4342
4405
|
"type": "object",
|
|
@@ -4344,23 +4407,12 @@
|
|
|
4344
4407
|
"description": "The command to run.",
|
|
4345
4408
|
"properties": {
|
|
4346
4409
|
"update": {
|
|
4347
|
-
"type": [
|
|
4348
|
-
"object",
|
|
4349
|
-
"array",
|
|
4350
|
-
"null"
|
|
4351
|
-
],
|
|
4410
|
+
"type": ["object", "array", "null"],
|
|
4352
4411
|
"title": "Update",
|
|
4353
4412
|
"description": "An update to the state."
|
|
4354
4413
|
},
|
|
4355
4414
|
"resume": {
|
|
4356
|
-
"type": [
|
|
4357
|
-
"object",
|
|
4358
|
-
"array",
|
|
4359
|
-
"number",
|
|
4360
|
-
"string",
|
|
4361
|
-
"boolean",
|
|
4362
|
-
"null"
|
|
4363
|
-
],
|
|
4415
|
+
"type": ["object", "array", "number", "string", "boolean", "null"],
|
|
4364
4416
|
"title": "Resume",
|
|
4365
4417
|
"description": "A value to pass to an interrupted node."
|
|
4366
4418
|
},
|
|
@@ -4495,9 +4547,7 @@
|
|
|
4495
4547
|
"anyOf": [
|
|
4496
4548
|
{
|
|
4497
4549
|
"type": "string",
|
|
4498
|
-
"enum": [
|
|
4499
|
-
"*"
|
|
4500
|
-
]
|
|
4550
|
+
"enum": ["*"]
|
|
4501
4551
|
},
|
|
4502
4552
|
{
|
|
4503
4553
|
"items": {
|
|
@@ -4513,9 +4563,7 @@
|
|
|
4513
4563
|
"anyOf": [
|
|
4514
4564
|
{
|
|
4515
4565
|
"type": "string",
|
|
4516
|
-
"enum": [
|
|
4517
|
-
"*"
|
|
4518
|
-
]
|
|
4566
|
+
"enum": ["*"]
|
|
4519
4567
|
},
|
|
4520
4568
|
{
|
|
4521
4569
|
"items": {
|
|
@@ -4563,9 +4611,7 @@
|
|
|
4563
4611
|
],
|
|
4564
4612
|
"title": "Stream Mode",
|
|
4565
4613
|
"description": "The stream mode(s) to use.",
|
|
4566
|
-
"default": [
|
|
4567
|
-
"values"
|
|
4568
|
-
]
|
|
4614
|
+
"default": ["values"]
|
|
4569
4615
|
},
|
|
4570
4616
|
"stream_subgraphs": {
|
|
4571
4617
|
"type": "boolean",
|
|
@@ -4581,13 +4627,10 @@
|
|
|
4581
4627
|
},
|
|
4582
4628
|
"on_disconnect": {
|
|
4583
4629
|
"type": "string",
|
|
4584
|
-
"enum": [
|
|
4585
|
-
"cancel",
|
|
4586
|
-
"continue"
|
|
4587
|
-
],
|
|
4630
|
+
"enum": ["cancel", "continue"],
|
|
4588
4631
|
"title": "On Disconnect",
|
|
4589
4632
|
"description": "The disconnect mode to use. Must be one of 'cancel' or 'continue'.",
|
|
4590
|
-
"default": "
|
|
4633
|
+
"default": "continue"
|
|
4591
4634
|
},
|
|
4592
4635
|
"feedback_keys": {
|
|
4593
4636
|
"items": {
|
|
@@ -4599,22 +4642,14 @@
|
|
|
4599
4642
|
},
|
|
4600
4643
|
"multitask_strategy": {
|
|
4601
4644
|
"type": "string",
|
|
4602
|
-
"enum": [
|
|
4603
|
-
"reject",
|
|
4604
|
-
"rollback",
|
|
4605
|
-
"interrupt",
|
|
4606
|
-
"enqueue"
|
|
4607
|
-
],
|
|
4645
|
+
"enum": ["reject", "rollback", "interrupt", "enqueue"],
|
|
4608
4646
|
"title": "Multitask Strategy",
|
|
4609
4647
|
"description": "Multitask strategy to use. Must be one of 'reject', 'interrupt', 'rollback', or 'enqueue'.",
|
|
4610
4648
|
"default": "enqueue"
|
|
4611
4649
|
},
|
|
4612
4650
|
"if_not_exists": {
|
|
4613
4651
|
"type": "string",
|
|
4614
|
-
"enum": [
|
|
4615
|
-
"create",
|
|
4616
|
-
"reject"
|
|
4617
|
-
],
|
|
4652
|
+
"enum": ["create", "reject"],
|
|
4618
4653
|
"title": "If Not Exists",
|
|
4619
4654
|
"description": "How to handle missing thread. Must be either 'reject' (raise error if missing), or 'create' (create new thread).",
|
|
4620
4655
|
"default": "reject"
|
|
@@ -4632,20 +4667,14 @@
|
|
|
4632
4667
|
},
|
|
4633
4668
|
"durability": {
|
|
4634
4669
|
"type": "string",
|
|
4635
|
-
"enum": [
|
|
4636
|
-
"sync",
|
|
4637
|
-
"async",
|
|
4638
|
-
"exit"
|
|
4639
|
-
],
|
|
4670
|
+
"enum": ["sync", "async", "exit"],
|
|
4640
4671
|
"title": "Durability",
|
|
4641
4672
|
"description": "Durability level for the run. Must be one of 'sync', 'async', or 'exit'.",
|
|
4642
4673
|
"default": "async"
|
|
4643
4674
|
}
|
|
4644
4675
|
},
|
|
4645
4676
|
"type": "object",
|
|
4646
|
-
"required": [
|
|
4647
|
-
"assistant_id"
|
|
4648
|
-
],
|
|
4677
|
+
"required": ["assistant_id"],
|
|
4649
4678
|
"title": "RunCreateStateful",
|
|
4650
4679
|
"description": "Payload for creating a run."
|
|
4651
4680
|
},
|
|
@@ -4750,58 +4779,22 @@
|
|
|
4750
4779
|
"title": "Webhook",
|
|
4751
4780
|
"description": "Webhook to call after LangGraph API call is done."
|
|
4752
4781
|
},
|
|
4753
|
-
"
|
|
4782
|
+
"stream_mode": {
|
|
4754
4783
|
"anyOf": [
|
|
4755
|
-
{
|
|
4756
|
-
"type": "string",
|
|
4757
|
-
"enum": [
|
|
4758
|
-
"*"
|
|
4759
|
-
]
|
|
4760
|
-
},
|
|
4761
4784
|
{
|
|
4762
4785
|
"items": {
|
|
4763
|
-
"type": "string"
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
"enum": [
|
|
4776
|
-
"*"
|
|
4777
|
-
]
|
|
4778
|
-
},
|
|
4779
|
-
{
|
|
4780
|
-
"items": {
|
|
4781
|
-
"type": "string"
|
|
4782
|
-
},
|
|
4783
|
-
"type": "array"
|
|
4784
|
-
}
|
|
4785
|
-
],
|
|
4786
|
-
"title": "Interrupt After",
|
|
4787
|
-
"description": "Nodes to interrupt immediately after they get executed."
|
|
4788
|
-
},
|
|
4789
|
-
"stream_mode": {
|
|
4790
|
-
"anyOf": [
|
|
4791
|
-
{
|
|
4792
|
-
"items": {
|
|
4793
|
-
"type": "string",
|
|
4794
|
-
"enum": [
|
|
4795
|
-
"values",
|
|
4796
|
-
"messages",
|
|
4797
|
-
"messages-tuple",
|
|
4798
|
-
"tasks",
|
|
4799
|
-
"checkpoints",
|
|
4800
|
-
"updates",
|
|
4801
|
-
"events",
|
|
4802
|
-
"debug",
|
|
4803
|
-
"custom"
|
|
4804
|
-
]
|
|
4786
|
+
"type": "string",
|
|
4787
|
+
"enum": [
|
|
4788
|
+
"values",
|
|
4789
|
+
"messages",
|
|
4790
|
+
"messages-tuple",
|
|
4791
|
+
"tasks",
|
|
4792
|
+
"checkpoints",
|
|
4793
|
+
"updates",
|
|
4794
|
+
"events",
|
|
4795
|
+
"debug",
|
|
4796
|
+
"custom"
|
|
4797
|
+
]
|
|
4805
4798
|
},
|
|
4806
4799
|
"type": "array"
|
|
4807
4800
|
},
|
|
@@ -4822,9 +4815,7 @@
|
|
|
4822
4815
|
],
|
|
4823
4816
|
"title": "Stream Mode",
|
|
4824
4817
|
"description": "The stream mode(s) to use.",
|
|
4825
|
-
"default": [
|
|
4826
|
-
"values"
|
|
4827
|
-
]
|
|
4818
|
+
"default": ["values"]
|
|
4828
4819
|
},
|
|
4829
4820
|
"feedback_keys": {
|
|
4830
4821
|
"items": {
|
|
@@ -4848,23 +4839,17 @@
|
|
|
4848
4839
|
},
|
|
4849
4840
|
"on_completion": {
|
|
4850
4841
|
"type": "string",
|
|
4851
|
-
"enum": [
|
|
4852
|
-
"delete",
|
|
4853
|
-
"keep"
|
|
4854
|
-
],
|
|
4842
|
+
"enum": ["delete", "keep"],
|
|
4855
4843
|
"title": "On Completion",
|
|
4856
4844
|
"description": "Whether to delete or keep the thread created for a stateless run. Must be one of 'delete' or 'keep'.",
|
|
4857
4845
|
"default": "delete"
|
|
4858
4846
|
},
|
|
4859
4847
|
"on_disconnect": {
|
|
4860
4848
|
"type": "string",
|
|
4861
|
-
"enum": [
|
|
4862
|
-
"cancel",
|
|
4863
|
-
"continue"
|
|
4864
|
-
],
|
|
4849
|
+
"enum": ["cancel", "continue"],
|
|
4865
4850
|
"title": "On Disconnect",
|
|
4866
4851
|
"description": "The disconnect mode to use. Must be one of 'cancel' or 'continue'.",
|
|
4867
|
-
"default": "
|
|
4852
|
+
"default": "continue"
|
|
4868
4853
|
},
|
|
4869
4854
|
"after_seconds": {
|
|
4870
4855
|
"type": "number",
|
|
@@ -4879,20 +4864,14 @@
|
|
|
4879
4864
|
},
|
|
4880
4865
|
"durability": {
|
|
4881
4866
|
"type": "string",
|
|
4882
|
-
"enum": [
|
|
4883
|
-
"sync",
|
|
4884
|
-
"async",
|
|
4885
|
-
"exit"
|
|
4886
|
-
],
|
|
4867
|
+
"enum": ["sync", "async", "exit"],
|
|
4887
4868
|
"title": "Durability",
|
|
4888
4869
|
"description": "Durability level for the run. Must be one of 'sync', 'async', or 'exit'.",
|
|
4889
4870
|
"default": "async"
|
|
4890
4871
|
}
|
|
4891
4872
|
},
|
|
4892
4873
|
"type": "object",
|
|
4893
|
-
"required": [
|
|
4894
|
-
"assistant_id"
|
|
4895
|
-
],
|
|
4874
|
+
"required": ["assistant_id"],
|
|
4896
4875
|
"title": "RunCreateStateless",
|
|
4897
4876
|
"description": "Payload for creating a run."
|
|
4898
4877
|
},
|
|
@@ -4908,6 +4887,11 @@
|
|
|
4908
4887
|
"title": "Graph Id",
|
|
4909
4888
|
"description": "The ID of the graph to filter by. The graph ID is normally set in your langgraph.json configuration."
|
|
4910
4889
|
},
|
|
4890
|
+
"name": {
|
|
4891
|
+
"type": "string",
|
|
4892
|
+
"title": "Name",
|
|
4893
|
+
"description": "Name of the assistant to filter by. The filtering logic will match (case insensitive) assistants where 'name' is a substring of the assistant name."
|
|
4894
|
+
},
|
|
4911
4895
|
"limit": {
|
|
4912
4896
|
"type": "integer",
|
|
4913
4897
|
"title": "Limit",
|
|
@@ -4937,10 +4921,7 @@
|
|
|
4937
4921
|
},
|
|
4938
4922
|
"sort_order": {
|
|
4939
4923
|
"type": "string",
|
|
4940
|
-
"enum": [
|
|
4941
|
-
"asc",
|
|
4942
|
-
"desc"
|
|
4943
|
-
],
|
|
4924
|
+
"enum": ["asc", "desc"],
|
|
4944
4925
|
"title": "Sort Order",
|
|
4945
4926
|
"description": "The order to sort by."
|
|
4946
4927
|
},
|
|
@@ -4950,7 +4931,7 @@
|
|
|
4950
4931
|
"type": "string",
|
|
4951
4932
|
"enum": [
|
|
4952
4933
|
"assistant_id",
|
|
4953
|
-
"graph_id",
|
|
4934
|
+
"graph_id",
|
|
4954
4935
|
"name",
|
|
4955
4936
|
"description",
|
|
4956
4937
|
"config",
|
|
@@ -4980,6 +4961,11 @@
|
|
|
4980
4961
|
"type": "string",
|
|
4981
4962
|
"title": "Graph Id",
|
|
4982
4963
|
"description": "The ID of the graph to filter by. The graph ID is normally set in your langgraph.json configuration."
|
|
4964
|
+
},
|
|
4965
|
+
"name": {
|
|
4966
|
+
"type": "string",
|
|
4967
|
+
"title": "Name",
|
|
4968
|
+
"description": "Name of the assistant to filter by. The filtering logic will match (case insensitive) assistants where 'name' is a substring of the assistant name."
|
|
4983
4969
|
}
|
|
4984
4970
|
},
|
|
4985
4971
|
"type": "object",
|
|
@@ -5017,7 +5003,10 @@
|
|
|
5017
5003
|
"properties": {
|
|
5018
5004
|
"ids": {
|
|
5019
5005
|
"type": "array",
|
|
5020
|
-
"items": {
|
|
5006
|
+
"items": {
|
|
5007
|
+
"type": "string",
|
|
5008
|
+
"format": "uuid"
|
|
5009
|
+
},
|
|
5021
5010
|
"title": "Ids",
|
|
5022
5011
|
"description": "List of thread IDs to include. Others are excluded."
|
|
5023
5012
|
},
|
|
@@ -5033,12 +5022,7 @@
|
|
|
5033
5022
|
},
|
|
5034
5023
|
"status": {
|
|
5035
5024
|
"type": "string",
|
|
5036
|
-
"enum": [
|
|
5037
|
-
"idle",
|
|
5038
|
-
"busy",
|
|
5039
|
-
"interrupted",
|
|
5040
|
-
"error"
|
|
5041
|
-
],
|
|
5025
|
+
"enum": ["idle", "busy", "interrupted", "error"],
|
|
5042
5026
|
"title": "Status",
|
|
5043
5027
|
"description": "Thread status to filter on."
|
|
5044
5028
|
},
|
|
@@ -5059,21 +5043,13 @@
|
|
|
5059
5043
|
},
|
|
5060
5044
|
"sort_by": {
|
|
5061
5045
|
"type": "string",
|
|
5062
|
-
"enum": [
|
|
5063
|
-
"thread_id",
|
|
5064
|
-
"status",
|
|
5065
|
-
"created_at",
|
|
5066
|
-
"updated_at"
|
|
5067
|
-
],
|
|
5046
|
+
"enum": ["thread_id", "status", "created_at", "updated_at"],
|
|
5068
5047
|
"title": "Sort By",
|
|
5069
5048
|
"description": "Sort by field."
|
|
5070
5049
|
},
|
|
5071
5050
|
"sort_order": {
|
|
5072
5051
|
"type": "string",
|
|
5073
|
-
"enum": [
|
|
5074
|
-
"asc",
|
|
5075
|
-
"desc"
|
|
5076
|
-
],
|
|
5052
|
+
"enum": ["asc", "desc"],
|
|
5077
5053
|
"title": "Sort Order",
|
|
5078
5054
|
"description": "Sort order."
|
|
5079
5055
|
},
|
|
@@ -5087,7 +5063,6 @@
|
|
|
5087
5063
|
"updated_at",
|
|
5088
5064
|
"metadata",
|
|
5089
5065
|
"config",
|
|
5090
|
-
"context",
|
|
5091
5066
|
"status",
|
|
5092
5067
|
"values",
|
|
5093
5068
|
"interrupts"
|
|
@@ -5115,12 +5090,7 @@
|
|
|
5115
5090
|
},
|
|
5116
5091
|
"status": {
|
|
5117
5092
|
"type": "string",
|
|
5118
|
-
"enum": [
|
|
5119
|
-
"idle",
|
|
5120
|
-
"busy",
|
|
5121
|
-
"interrupted",
|
|
5122
|
-
"error"
|
|
5123
|
-
],
|
|
5093
|
+
"enum": ["idle", "busy", "interrupted", "error"],
|
|
5124
5094
|
"title": "Status",
|
|
5125
5095
|
"description": "Thread status to filter on."
|
|
5126
5096
|
}
|
|
@@ -5161,12 +5131,7 @@
|
|
|
5161
5131
|
},
|
|
5162
5132
|
"status": {
|
|
5163
5133
|
"type": "string",
|
|
5164
|
-
"enum": [
|
|
5165
|
-
"idle",
|
|
5166
|
-
"busy",
|
|
5167
|
-
"interrupted",
|
|
5168
|
-
"error"
|
|
5169
|
-
],
|
|
5134
|
+
"enum": ["idle", "busy", "interrupted", "error"],
|
|
5170
5135
|
"title": "Status",
|
|
5171
5136
|
"description": "The status of the thread."
|
|
5172
5137
|
},
|
|
@@ -5179,6 +5144,27 @@
|
|
|
5179
5144
|
"type": "object",
|
|
5180
5145
|
"title": "Interrupts",
|
|
5181
5146
|
"description": "The current interrupts of the thread."
|
|
5147
|
+
},
|
|
5148
|
+
"ttl": {
|
|
5149
|
+
"type": "object",
|
|
5150
|
+
"title": "TTL Info",
|
|
5151
|
+
"description": "TTL information if set for this thread. Only present when ?include=ttl is passed.",
|
|
5152
|
+
"properties": {
|
|
5153
|
+
"strategy": {
|
|
5154
|
+
"type": "string",
|
|
5155
|
+
"enum": ["delete", "keep_latest"],
|
|
5156
|
+
"description": "The TTL strategy."
|
|
5157
|
+
},
|
|
5158
|
+
"ttl_minutes": {
|
|
5159
|
+
"type": "number",
|
|
5160
|
+
"description": "The TTL in minutes."
|
|
5161
|
+
},
|
|
5162
|
+
"expires_at": {
|
|
5163
|
+
"type": "string",
|
|
5164
|
+
"format": "date-time",
|
|
5165
|
+
"description": "When the thread will expire."
|
|
5166
|
+
}
|
|
5167
|
+
}
|
|
5182
5168
|
}
|
|
5183
5169
|
},
|
|
5184
5170
|
"type": "object",
|
|
@@ -5206,10 +5192,7 @@
|
|
|
5206
5192
|
},
|
|
5207
5193
|
"if_exists": {
|
|
5208
5194
|
"type": "string",
|
|
5209
|
-
"enum": [
|
|
5210
|
-
"raise",
|
|
5211
|
-
"do_nothing"
|
|
5212
|
-
],
|
|
5195
|
+
"enum": ["raise", "do_nothing"],
|
|
5213
5196
|
"title": "If Exists",
|
|
5214
5197
|
"description": "How to handle duplicate creation. Must be either 'raise' (raise error if duplicate), or 'do_nothing' (return existing thread).",
|
|
5215
5198
|
"default": "raise"
|
|
@@ -5221,10 +5204,8 @@
|
|
|
5221
5204
|
"properties": {
|
|
5222
5205
|
"strategy": {
|
|
5223
5206
|
"type": "string",
|
|
5224
|
-
"enum": [
|
|
5225
|
-
|
|
5226
|
-
],
|
|
5227
|
-
"description": "The TTL strategy. 'delete' removes the entire thread.",
|
|
5207
|
+
"enum": ["delete", "keep_latest"],
|
|
5208
|
+
"description": "The TTL strategy. 'delete' removes the entire thread. 'keep_latest' prunes old checkpoints but keeps the thread and its latest state (requires FF_USE_CORE_API=true).",
|
|
5228
5209
|
"default": "delete"
|
|
5229
5210
|
},
|
|
5230
5211
|
"ttl": {
|
|
@@ -5245,9 +5226,7 @@
|
|
|
5245
5226
|
}
|
|
5246
5227
|
}
|
|
5247
5228
|
},
|
|
5248
|
-
"required": [
|
|
5249
|
-
"updates"
|
|
5250
|
-
]
|
|
5229
|
+
"required": ["updates"]
|
|
5251
5230
|
}
|
|
5252
5231
|
}
|
|
5253
5232
|
},
|
|
@@ -5269,10 +5248,8 @@
|
|
|
5269
5248
|
"properties": {
|
|
5270
5249
|
"strategy": {
|
|
5271
5250
|
"type": "string",
|
|
5272
|
-
"enum": [
|
|
5273
|
-
|
|
5274
|
-
],
|
|
5275
|
-
"description": "The TTL strategy. 'delete' removes the entire thread.",
|
|
5251
|
+
"enum": ["delete", "keep_latest"],
|
|
5252
|
+
"description": "The TTL strategy. 'delete' removes the entire thread. 'keep_latest' prunes old checkpoints but keeps the thread and its latest state (requires FF_USE_CORE_API=true).",
|
|
5276
5253
|
"default": "delete"
|
|
5277
5254
|
},
|
|
5278
5255
|
"ttl": {
|
|
@@ -5286,6 +5263,43 @@
|
|
|
5286
5263
|
"title": "ThreadPatch",
|
|
5287
5264
|
"description": "Payload for updating a thread."
|
|
5288
5265
|
},
|
|
5266
|
+
"ThreadPruneRequest": {
|
|
5267
|
+
"properties": {
|
|
5268
|
+
"thread_ids": {
|
|
5269
|
+
"type": "array",
|
|
5270
|
+
"items": {
|
|
5271
|
+
"type": "string",
|
|
5272
|
+
"format": "uuid"
|
|
5273
|
+
},
|
|
5274
|
+
"title": "Thread IDs",
|
|
5275
|
+
"description": "List of thread IDs to prune."
|
|
5276
|
+
},
|
|
5277
|
+
"strategy": {
|
|
5278
|
+
"type": "string",
|
|
5279
|
+
"enum": ["delete", "keep_latest"],
|
|
5280
|
+
"title": "Strategy",
|
|
5281
|
+
"description": "The prune strategy. 'delete' removes threads entirely. 'keep_latest' prunes old checkpoints but keeps threads and their latest state (requires FF_USE_CORE_API=true).",
|
|
5282
|
+
"default": "delete"
|
|
5283
|
+
}
|
|
5284
|
+
},
|
|
5285
|
+
"required": ["thread_ids"],
|
|
5286
|
+
"type": "object",
|
|
5287
|
+
"title": "ThreadPruneRequest",
|
|
5288
|
+
"description": "Payload for pruning threads."
|
|
5289
|
+
},
|
|
5290
|
+
"ThreadPruneResponse": {
|
|
5291
|
+
"properties": {
|
|
5292
|
+
"pruned_count": {
|
|
5293
|
+
"type": "integer",
|
|
5294
|
+
"title": "Pruned Count",
|
|
5295
|
+
"description": "Number of threads successfully pruned."
|
|
5296
|
+
}
|
|
5297
|
+
},
|
|
5298
|
+
"required": ["pruned_count"],
|
|
5299
|
+
"type": "object",
|
|
5300
|
+
"title": "ThreadPruneResponse",
|
|
5301
|
+
"description": "Response from pruning threads."
|
|
5302
|
+
},
|
|
5289
5303
|
"ThreadStateCheckpointRequest": {
|
|
5290
5304
|
"properties": {
|
|
5291
5305
|
"checkpoint": {
|
|
@@ -5299,9 +5313,7 @@
|
|
|
5299
5313
|
"description": "Include subgraph states."
|
|
5300
5314
|
}
|
|
5301
5315
|
},
|
|
5302
|
-
"required": [
|
|
5303
|
-
"checkpoint"
|
|
5304
|
-
],
|
|
5316
|
+
"required": ["checkpoint"],
|
|
5305
5317
|
"type": "object",
|
|
5306
5318
|
"title": "ThreadStateCheckpointRequest",
|
|
5307
5319
|
"description": "Payload for getting the state of a thread at a checkpoint."
|
|
@@ -5359,10 +5371,7 @@
|
|
|
5359
5371
|
"$ref": "#/components/schemas/ThreadState"
|
|
5360
5372
|
}
|
|
5361
5373
|
},
|
|
5362
|
-
"required": [
|
|
5363
|
-
"id",
|
|
5364
|
-
"name"
|
|
5365
|
-
]
|
|
5374
|
+
"required": ["id", "name"]
|
|
5366
5375
|
},
|
|
5367
5376
|
"type": "array",
|
|
5368
5377
|
"title": "Tasks"
|
|
@@ -5391,13 +5400,7 @@
|
|
|
5391
5400
|
}
|
|
5392
5401
|
},
|
|
5393
5402
|
"type": "object",
|
|
5394
|
-
"required": [
|
|
5395
|
-
"values",
|
|
5396
|
-
"next",
|
|
5397
|
-
"checkpoint",
|
|
5398
|
-
"metadata",
|
|
5399
|
-
"created_at"
|
|
5400
|
-
],
|
|
5403
|
+
"required": ["values", "next", "checkpoint", "metadata", "created_at"],
|
|
5401
5404
|
"title": "ThreadState"
|
|
5402
5405
|
},
|
|
5403
5406
|
"ThreadStateSearch": {
|
|
@@ -5496,9 +5499,7 @@
|
|
|
5496
5499
|
"description": "Update the state as if this node had just executed."
|
|
5497
5500
|
}
|
|
5498
5501
|
},
|
|
5499
|
-
"required": [
|
|
5500
|
-
"as_node"
|
|
5501
|
-
],
|
|
5502
|
+
"required": ["as_node"],
|
|
5502
5503
|
"type": "object"
|
|
5503
5504
|
},
|
|
5504
5505
|
"ThreadStateUpdateResponse": {
|
|
@@ -5537,11 +5538,7 @@
|
|
|
5537
5538
|
},
|
|
5538
5539
|
"StorePutRequest": {
|
|
5539
5540
|
"type": "object",
|
|
5540
|
-
"required": [
|
|
5541
|
-
"namespace",
|
|
5542
|
-
"key",
|
|
5543
|
-
"value"
|
|
5544
|
-
],
|
|
5541
|
+
"required": ["namespace", "key", "value"],
|
|
5545
5542
|
"properties": {
|
|
5546
5543
|
"namespace": {
|
|
5547
5544
|
"type": "array",
|
|
@@ -5567,9 +5564,7 @@
|
|
|
5567
5564
|
},
|
|
5568
5565
|
"StoreDeleteRequest": {
|
|
5569
5566
|
"type": "object",
|
|
5570
|
-
"required": [
|
|
5571
|
-
"key"
|
|
5572
|
-
],
|
|
5567
|
+
"required": ["key"],
|
|
5573
5568
|
"properties": {
|
|
5574
5569
|
"namespace": {
|
|
5575
5570
|
"type": "array",
|
|
@@ -5592,10 +5587,7 @@
|
|
|
5592
5587
|
"type": "object",
|
|
5593
5588
|
"properties": {
|
|
5594
5589
|
"namespace_prefix": {
|
|
5595
|
-
"type": [
|
|
5596
|
-
"array",
|
|
5597
|
-
"null"
|
|
5598
|
-
],
|
|
5590
|
+
"type": ["array", "null"],
|
|
5599
5591
|
"items": {
|
|
5600
5592
|
"type": "string"
|
|
5601
5593
|
},
|
|
@@ -5603,10 +5595,7 @@
|
|
|
5603
5595
|
"description": "List of strings representing the namespace prefix."
|
|
5604
5596
|
},
|
|
5605
5597
|
"filter": {
|
|
5606
|
-
"type": [
|
|
5607
|
-
"object",
|
|
5608
|
-
"null"
|
|
5609
|
-
],
|
|
5598
|
+
"type": ["object", "null"],
|
|
5610
5599
|
"additionalProperties": true,
|
|
5611
5600
|
"title": "Filter",
|
|
5612
5601
|
"description": "Optional dictionary of key-value pairs to filter results."
|
|
@@ -5624,10 +5613,7 @@
|
|
|
5624
5613
|
"description": "Number of items to skip before returning results (default is 0)."
|
|
5625
5614
|
},
|
|
5626
5615
|
"query": {
|
|
5627
|
-
"type": [
|
|
5628
|
-
"string",
|
|
5629
|
-
"null"
|
|
5630
|
-
],
|
|
5616
|
+
"type": ["string", "null"],
|
|
5631
5617
|
"title": "Query",
|
|
5632
5618
|
"description": "Query string for semantic/vector search."
|
|
5633
5619
|
}
|
|
@@ -5675,13 +5661,7 @@
|
|
|
5675
5661
|
},
|
|
5676
5662
|
"Item": {
|
|
5677
5663
|
"type": "object",
|
|
5678
|
-
"required": [
|
|
5679
|
-
"namespace",
|
|
5680
|
-
"key",
|
|
5681
|
-
"value",
|
|
5682
|
-
"created_at",
|
|
5683
|
-
"updated_at"
|
|
5684
|
-
],
|
|
5664
|
+
"required": ["namespace", "key", "value", "created_at", "updated_at"],
|
|
5685
5665
|
"properties": {
|
|
5686
5666
|
"namespace": {
|
|
5687
5667
|
"type": "array",
|
|
@@ -5718,11 +5698,7 @@
|
|
|
5718
5698
|
"properties": {
|
|
5719
5699
|
"status": {
|
|
5720
5700
|
"type": "string",
|
|
5721
|
-
"enum": [
|
|
5722
|
-
"pending",
|
|
5723
|
-
"running",
|
|
5724
|
-
"all"
|
|
5725
|
-
],
|
|
5701
|
+
"enum": ["pending", "running", "all"],
|
|
5726
5702
|
"title": "Status",
|
|
5727
5703
|
"description": "Filter runs by status to cancel. Must be one of 'pending', 'running', or 'all'."
|
|
5728
5704
|
},
|
|
@@ -5744,23 +5720,16 @@
|
|
|
5744
5720
|
},
|
|
5745
5721
|
"oneOf": [
|
|
5746
5722
|
{
|
|
5747
|
-
"required": [
|
|
5748
|
-
"status"
|
|
5749
|
-
]
|
|
5723
|
+
"required": ["status"]
|
|
5750
5724
|
},
|
|
5751
5725
|
{
|
|
5752
|
-
"required": [
|
|
5753
|
-
"thread_id",
|
|
5754
|
-
"run_ids"
|
|
5755
|
-
]
|
|
5726
|
+
"required": ["thread_id", "run_ids"]
|
|
5756
5727
|
}
|
|
5757
5728
|
]
|
|
5758
5729
|
},
|
|
5759
5730
|
"SearchItemsResponse": {
|
|
5760
5731
|
"type": "object",
|
|
5761
|
-
"required": [
|
|
5762
|
-
"items"
|
|
5763
|
-
],
|
|
5732
|
+
"required": ["items"],
|
|
5764
5733
|
"properties": {
|
|
5765
5734
|
"items": {
|
|
5766
5735
|
"type": "array",
|
|
@@ -5780,9 +5749,156 @@
|
|
|
5780
5749
|
}
|
|
5781
5750
|
},
|
|
5782
5751
|
"ErrorResponse": {
|
|
5783
|
-
"type": "
|
|
5752
|
+
"type": "object",
|
|
5753
|
+
"required": ["detail"],
|
|
5754
|
+
"properties": {
|
|
5755
|
+
"detail": {
|
|
5756
|
+
"type": "string",
|
|
5757
|
+
"description": "Human-readable error message"
|
|
5758
|
+
}
|
|
5759
|
+
},
|
|
5784
5760
|
"title": "ErrorResponse",
|
|
5785
|
-
"description": "Error
|
|
5761
|
+
"description": "Error response returned from the server"
|
|
5762
|
+
},
|
|
5763
|
+
"ThreadCronCreate": {
|
|
5764
|
+
"properties": {
|
|
5765
|
+
"schedule": {
|
|
5766
|
+
"type": "string",
|
|
5767
|
+
"title": "Schedule",
|
|
5768
|
+
"description": "The cron schedule to execute this job on."
|
|
5769
|
+
},
|
|
5770
|
+
"end_time": {
|
|
5771
|
+
"type": "string",
|
|
5772
|
+
"format": "date-time",
|
|
5773
|
+
"title": "End Time",
|
|
5774
|
+
"description": "The end date to stop running the cron."
|
|
5775
|
+
},
|
|
5776
|
+
"assistant_id": {
|
|
5777
|
+
"anyOf": [
|
|
5778
|
+
{
|
|
5779
|
+
"type": "string",
|
|
5780
|
+
"format": "uuid",
|
|
5781
|
+
"title": "Assistant Id"
|
|
5782
|
+
},
|
|
5783
|
+
{
|
|
5784
|
+
"type": "string",
|
|
5785
|
+
"title": "Graph Id"
|
|
5786
|
+
}
|
|
5787
|
+
],
|
|
5788
|
+
"description": "The assistant ID or graph name to run. If using graph name, will default to the assistant automatically created from that graph by the server."
|
|
5789
|
+
},
|
|
5790
|
+
"input": {
|
|
5791
|
+
"anyOf": [
|
|
5792
|
+
{
|
|
5793
|
+
"items": {
|
|
5794
|
+
"type": "object"
|
|
5795
|
+
},
|
|
5796
|
+
"type": "array"
|
|
5797
|
+
},
|
|
5798
|
+
{
|
|
5799
|
+
"type": "object"
|
|
5800
|
+
}
|
|
5801
|
+
],
|
|
5802
|
+
"title": "Input",
|
|
5803
|
+
"description": "The input to the graph."
|
|
5804
|
+
},
|
|
5805
|
+
"metadata": {
|
|
5806
|
+
"type": "object",
|
|
5807
|
+
"title": "Metadata",
|
|
5808
|
+
"description": "Metadata to assign to the cron job runs."
|
|
5809
|
+
},
|
|
5810
|
+
"config": {
|
|
5811
|
+
"properties": {
|
|
5812
|
+
"tags": {
|
|
5813
|
+
"items": {
|
|
5814
|
+
"type": "string"
|
|
5815
|
+
},
|
|
5816
|
+
"type": "array",
|
|
5817
|
+
"title": "Tags"
|
|
5818
|
+
},
|
|
5819
|
+
"recursion_limit": {
|
|
5820
|
+
"type": "integer",
|
|
5821
|
+
"title": "Recursion Limit"
|
|
5822
|
+
},
|
|
5823
|
+
"configurable": {
|
|
5824
|
+
"type": "object",
|
|
5825
|
+
"title": "Configurable"
|
|
5826
|
+
}
|
|
5827
|
+
},
|
|
5828
|
+
"type": "object",
|
|
5829
|
+
"title": "Config",
|
|
5830
|
+
"description": "The configuration for the assistant."
|
|
5831
|
+
},
|
|
5832
|
+
"context": {
|
|
5833
|
+
"type": "object",
|
|
5834
|
+
"title": "Context",
|
|
5835
|
+
"description": "Static context added to the assistant."
|
|
5836
|
+
},
|
|
5837
|
+
"webhook": {
|
|
5838
|
+
"type": "string",
|
|
5839
|
+
"maxLength": 65536,
|
|
5840
|
+
"minLength": 1,
|
|
5841
|
+
"format": "uri-reference",
|
|
5842
|
+
"title": "Webhook",
|
|
5843
|
+
"description": "Webhook to call after LangGraph API call is done."
|
|
5844
|
+
},
|
|
5845
|
+
"interrupt_before": {
|
|
5846
|
+
"anyOf": [
|
|
5847
|
+
{
|
|
5848
|
+
"type": "string",
|
|
5849
|
+
"enum": ["*"]
|
|
5850
|
+
},
|
|
5851
|
+
{
|
|
5852
|
+
"items": {
|
|
5853
|
+
"type": "string"
|
|
5854
|
+
},
|
|
5855
|
+
"type": "array"
|
|
5856
|
+
}
|
|
5857
|
+
],
|
|
5858
|
+
"title": "Interrupt Before",
|
|
5859
|
+
"description": "Nodes to interrupt immediately before they get executed."
|
|
5860
|
+
},
|
|
5861
|
+
"interrupt_after": {
|
|
5862
|
+
"anyOf": [
|
|
5863
|
+
{
|
|
5864
|
+
"type": "string",
|
|
5865
|
+
"enum": ["*"]
|
|
5866
|
+
},
|
|
5867
|
+
{
|
|
5868
|
+
"items": {
|
|
5869
|
+
"type": "string"
|
|
5870
|
+
},
|
|
5871
|
+
"type": "array"
|
|
5872
|
+
}
|
|
5873
|
+
],
|
|
5874
|
+
"title": "Interrupt After",
|
|
5875
|
+
"description": "Nodes to interrupt immediately after they get executed."
|
|
5876
|
+
},
|
|
5877
|
+
"multitask_strategy": {
|
|
5878
|
+
"type": "string",
|
|
5879
|
+
"enum": ["reject", "rollback", "interrupt", "enqueue"],
|
|
5880
|
+
"title": "Multitask Strategy",
|
|
5881
|
+
"description": "Multitask strategy to use. Must be one of 'reject', 'interrupt', 'rollback', or 'enqueue'.",
|
|
5882
|
+
"default": "enqueue"
|
|
5883
|
+
}
|
|
5884
|
+
},
|
|
5885
|
+
"type": "object",
|
|
5886
|
+
"required": ["assistant_id", "schedule"],
|
|
5887
|
+
"title": "ThreadCronCreate",
|
|
5888
|
+
"description": "Payload for creating a thread-specific cron job (runs on the same thread)."
|
|
5889
|
+
},
|
|
5890
|
+
"Interrupt": {
|
|
5891
|
+
"type": "object",
|
|
5892
|
+
"properties": {
|
|
5893
|
+
"id": {
|
|
5894
|
+
"type": ["string", "null"]
|
|
5895
|
+
},
|
|
5896
|
+
"value": {
|
|
5897
|
+
"type": "object"
|
|
5898
|
+
}
|
|
5899
|
+
},
|
|
5900
|
+
"title": "Interrupt",
|
|
5901
|
+
"required": ["value"]
|
|
5786
5902
|
}
|
|
5787
5903
|
},
|
|
5788
5904
|
"responses": {
|
|
@@ -5833,24 +5949,6 @@
|
|
|
5833
5949
|
}
|
|
5834
5950
|
}
|
|
5835
5951
|
}
|
|
5836
|
-
},
|
|
5837
|
-
"Interrupt": {
|
|
5838
|
-
"type": "object",
|
|
5839
|
-
"properties": {
|
|
5840
|
-
"id": {
|
|
5841
|
-
"type": [
|
|
5842
|
-
"string",
|
|
5843
|
-
"null"
|
|
5844
|
-
]
|
|
5845
|
-
},
|
|
5846
|
-
"value": {
|
|
5847
|
-
"type": "object"
|
|
5848
|
-
}
|
|
5849
|
-
},
|
|
5850
|
-
"title": "Interrupt",
|
|
5851
|
-
"required": [
|
|
5852
|
-
"value"
|
|
5853
|
-
]
|
|
5854
5952
|
}
|
|
5855
5953
|
}
|
|
5856
5954
|
}
|