|
49 | 49 | }, |
50 | 50 | { |
51 | 51 | "name": "createQueuedRun", |
52 | | - "signature": "createQueuedRun(assistantId: string, threadId: string, payload: unknown, signal: AbortSignal)", |
| 52 | + "signature": "createQueuedRun(assistantId: string, threadId: string, payload: unknown, signal: AbortSignal, options: LangGraphSubmitOptions)", |
53 | 53 | "description": "Create a pending server-side run using LangGraph's enqueue strategy.", |
54 | 54 | "params": [ |
55 | 55 | { |
|
75 | 75 | "type": "AbortSignal", |
76 | 76 | "description": "", |
77 | 77 | "optional": false |
| 78 | + }, |
| 79 | + { |
| 80 | + "name": "options", |
| 81 | + "type": "LangGraphSubmitOptions", |
| 82 | + "description": "", |
| 83 | + "optional": true |
78 | 84 | } |
79 | 85 | ] |
80 | 86 | }, |
|
130 | 136 | }, |
131 | 137 | { |
132 | 138 | "name": "stream", |
133 | | - "signature": "stream(assistantId: string, threadId: string | null, payload: unknown, signal: AbortSignal)", |
| 139 | + "signature": "stream(assistantId: string, threadId: string | null, payload: unknown, signal: AbortSignal, options: LangGraphSubmitOptions)", |
134 | 140 | "description": "Open a streaming connection, creating a thread if needed.", |
135 | 141 | "params": [ |
136 | 142 | { |
|
156 | 162 | "type": "AbortSignal", |
157 | 163 | "description": "", |
158 | 164 | "optional": false |
| 165 | + }, |
| 166 | + { |
| 167 | + "name": "options", |
| 168 | + "type": "LangGraphSubmitOptions", |
| 169 | + "description": "", |
| 170 | + "optional": true |
159 | 171 | } |
160 | 172 | ] |
161 | 173 | } |
|
206 | 218 | "type": "object[]", |
207 | 219 | "description": "", |
208 | 220 | "optional": false |
| 221 | + }, |
| 222 | + { |
| 223 | + "name": "streams", |
| 224 | + "type": "object[]", |
| 225 | + "description": "", |
| 226 | + "optional": false |
209 | 227 | } |
210 | 228 | ], |
211 | 229 | "methods": [ |
|
242 | 260 | }, |
243 | 261 | { |
244 | 262 | "name": "createQueuedRun", |
245 | | - "signature": "createQueuedRun(_assistantId: string, threadId: string, payload: unknown, signal: AbortSignal)", |
| 263 | + "signature": "createQueuedRun(_assistantId: string, threadId: string, payload: unknown, signal: AbortSignal, options: LangGraphSubmitOptions)", |
246 | 264 | "description": "Optional: create a server-side queued run without joining it immediately.", |
247 | 265 | "params": [ |
248 | 266 | { |
|
268 | 286 | "type": "AbortSignal", |
269 | 287 | "description": "", |
270 | 288 | "optional": false |
| 289 | + }, |
| 290 | + { |
| 291 | + "name": "options", |
| 292 | + "type": "LangGraphSubmitOptions", |
| 293 | + "description": "", |
| 294 | + "optional": true |
271 | 295 | } |
272 | 296 | ] |
273 | 297 | }, |
|
361 | 385 | }, |
362 | 386 | { |
363 | 387 | "name": "stream", |
364 | | - "signature": "stream(_assistantId: string, _threadId: string | null, _payload: unknown, signal: AbortSignal)", |
| 388 | + "signature": "stream(_assistantId: string, _threadId: string | null, _payload: unknown, signal: AbortSignal, options: LangGraphSubmitOptions)", |
365 | 389 | "description": "Open a streaming connection to an agent and yield events.", |
366 | 390 | "params": [ |
367 | 391 | { |
|
387 | 411 | "type": "AbortSignal", |
388 | 412 | "description": "", |
389 | 413 | "optional": false |
| 414 | + }, |
| 415 | + { |
| 416 | + "name": "options", |
| 417 | + "type": "LangGraphSubmitOptions", |
| 418 | + "description": "", |
| 419 | + "optional": true |
390 | 420 | } |
391 | 421 | ] |
392 | 422 | } |
|
918 | 948 | { |
919 | 949 | "name": "submit", |
920 | 950 | "type": "object", |
921 | | - "description": "", |
| 951 | + "description": "Submit input, resume commands, checkpoint forks, or other LangGraph run options.", |
922 | 952 | "optional": false |
923 | 953 | }, |
924 | 954 | { |
|
953 | 983 | "kind": "interface", |
954 | 984 | "description": "Options accepted by LangGraph-backed submit calls.", |
955 | 985 | "properties": [ |
| 986 | + { |
| 987 | + "name": "afterSeconds", |
| 988 | + "type": "number", |
| 989 | + "description": "", |
| 990 | + "optional": true |
| 991 | + }, |
| 992 | + { |
| 993 | + "name": "checkpoint", |
| 994 | + "type": "Omit<Checkpoint, \"thread_id\"> | null", |
| 995 | + "description": "", |
| 996 | + "optional": true |
| 997 | + }, |
| 998 | + { |
| 999 | + "name": "checkpointDuring", |
| 1000 | + "type": "boolean", |
| 1001 | + "description": "", |
| 1002 | + "optional": true |
| 1003 | + }, |
| 1004 | + { |
| 1005 | + "name": "checkpointId", |
| 1006 | + "type": "string", |
| 1007 | + "description": "", |
| 1008 | + "optional": true |
| 1009 | + }, |
| 1010 | + { |
| 1011 | + "name": "command", |
| 1012 | + "type": "Command", |
| 1013 | + "description": "", |
| 1014 | + "optional": true |
| 1015 | + }, |
| 1016 | + { |
| 1017 | + "name": "config", |
| 1018 | + "type": "Config", |
| 1019 | + "description": "", |
| 1020 | + "optional": true |
| 1021 | + }, |
| 1022 | + { |
| 1023 | + "name": "context", |
| 1024 | + "type": "unknown", |
| 1025 | + "description": "", |
| 1026 | + "optional": true |
| 1027 | + }, |
| 1028 | + { |
| 1029 | + "name": "durability", |
| 1030 | + "type": "LangGraphDurability", |
| 1031 | + "description": "", |
| 1032 | + "optional": true |
| 1033 | + }, |
| 1034 | + { |
| 1035 | + "name": "feedbackKeys", |
| 1036 | + "type": "string[]", |
| 1037 | + "description": "", |
| 1038 | + "optional": true |
| 1039 | + }, |
| 1040 | + { |
| 1041 | + "name": "ifNotExists", |
| 1042 | + "type": "\"create\" | \"reject\"", |
| 1043 | + "description": "", |
| 1044 | + "optional": true |
| 1045 | + }, |
| 1046 | + { |
| 1047 | + "name": "interruptAfter", |
| 1048 | + "type": "string[] | \"*\"", |
| 1049 | + "description": "", |
| 1050 | + "optional": true |
| 1051 | + }, |
| 1052 | + { |
| 1053 | + "name": "interruptBefore", |
| 1054 | + "type": "string[] | \"*\"", |
| 1055 | + "description": "", |
| 1056 | + "optional": true |
| 1057 | + }, |
| 1058 | + { |
| 1059 | + "name": "metadata", |
| 1060 | + "type": "Metadata", |
| 1061 | + "description": "", |
| 1062 | + "optional": true |
| 1063 | + }, |
956 | 1064 | { |
957 | 1065 | "name": "multitaskStrategy", |
958 | 1066 | "type": "LangGraphMultitaskStrategy", |
959 | 1067 | "description": "Strategy for handling concurrent runs on the same thread.", |
960 | 1068 | "optional": true |
961 | 1069 | }, |
| 1070 | + { |
| 1071 | + "name": "onCompletion", |
| 1072 | + "type": "LangGraphOnCompletion", |
| 1073 | + "description": "", |
| 1074 | + "optional": true |
| 1075 | + }, |
| 1076 | + { |
| 1077 | + "name": "onDisconnect", |
| 1078 | + "type": "LangGraphOnDisconnect", |
| 1079 | + "description": "", |
| 1080 | + "optional": true |
| 1081 | + }, |
| 1082 | + { |
| 1083 | + "name": "onRunCreated", |
| 1084 | + "type": "object", |
| 1085 | + "description": "", |
| 1086 | + "optional": true |
| 1087 | + }, |
| 1088 | + { |
| 1089 | + "name": "resume", |
| 1090 | + "type": "unknown", |
| 1091 | + "description": "Convenience alias normalized to `command.resume` before invoking LangGraph.", |
| 1092 | + "optional": true |
| 1093 | + }, |
962 | 1094 | { |
963 | 1095 | "name": "signal", |
964 | 1096 | "type": "AbortSignal", |
965 | 1097 | "description": "", |
966 | 1098 | "optional": true |
| 1099 | + }, |
| 1100 | + { |
| 1101 | + "name": "streamMode", |
| 1102 | + "type": "StreamMode[]", |
| 1103 | + "description": "", |
| 1104 | + "optional": true |
| 1105 | + }, |
| 1106 | + { |
| 1107 | + "name": "streamResumable", |
| 1108 | + "type": "boolean", |
| 1109 | + "description": "", |
| 1110 | + "optional": true |
| 1111 | + }, |
| 1112 | + { |
| 1113 | + "name": "streamSubgraphs", |
| 1114 | + "type": "boolean", |
| 1115 | + "description": "", |
| 1116 | + "optional": true |
| 1117 | + }, |
| 1118 | + { |
| 1119 | + "name": "webhook", |
| 1120 | + "type": "string", |
| 1121 | + "description": "", |
| 1122 | + "optional": true |
967 | 1123 | } |
968 | 1124 | ], |
969 | 1125 | "examples": [] |
|
1150 | 1306 | { |
1151 | 1307 | "name": "submit", |
1152 | 1308 | "type": "object", |
1153 | | - "description": "", |
| 1309 | + "description": "Submit input, resume commands, checkpoint forks, or other LangGraph run options.", |
1154 | 1310 | "optional": false |
1155 | 1311 | }, |
1156 | 1312 | { |
|
1205 | 1361 | }, |
1206 | 1362 | { |
1207 | 1363 | "name": "type", |
1208 | | - "type": "\"error\" | \"interrupt\" | \"values\" | `values|${string}` | \"messages\" | `messages|${string}` | `messages/${string}` | `messages/${string}|${string}` | \"updates\" | `updates|${string}` | \"tools\" | `tools|${string}` | \"custom\" | `custom|${string}` | `error|${string}` | \"metadata\" | \"checkpoints\" | `checkpoints|${string}` | \"tasks\" | `tasks|${string}` | \"debug\" | `debug|${string}` | \"events\" | `events|${string}` | \"interrupts\"", |
| 1364 | + "type": "\"error\" | \"values\" | \"messages\" | \"updates\" | \"events\" | \"debug\" | \"tasks\" | \"checkpoints\" | \"custom\" | \"tools\" | \"interrupt\" | `values|${string}` | `messages|${string}` | `messages/${string}` | `messages/${string}|${string}` | `updates|${string}` | `tools|${string}` | `custom|${string}` | `error|${string}` | \"metadata\" | `checkpoints|${string}` | `tasks|${string}` | `debug|${string}` | `events|${string}` | \"interrupts\"", |
1209 | 1365 | "description": "Event type identifier (e.g., 'values', 'messages', 'error', 'interrupt').", |
1210 | 1366 | "optional": false |
1211 | 1367 | } |
|
1231 | 1387 | }, |
1232 | 1388 | { |
1233 | 1389 | "name": "status", |
1234 | | - "type": "Signal<\"running\" | \"error\" | \"pending\" | \"complete\">", |
| 1390 | + "type": "Signal<\"running\" | \"error\" | \"complete\" | \"pending\">", |
1235 | 1391 | "description": "Current execution status of the subagent.", |
1236 | 1392 | "optional": false |
1237 | 1393 | }, |
|
0 commit comments