workflow-displays.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. [
  2. {
  3. "kind": "create_workflow",
  4. "ok": true,
  5. "errorCount": 0,
  6. "diagnostics": [
  7. {
  8. "line": 0,
  9. "column": 0,
  10. "code": 1,
  11. "message": "诊断"
  12. }
  13. ],
  14. "truncated": false,
  15. "causalityGraph": {
  16. "steps": [
  17. {
  18. "id": "s",
  19. "kind": "ask",
  20. "label": "研究",
  21. "labelPattern": {
  22. "head": "研究",
  23. "tail": "员"
  24. },
  25. "line": 1,
  26. "column": 1,
  27. "lane": "l",
  28. "lanes": ["l"],
  29. "source": "s",
  30. "phase": "p",
  31. "repeat": "serial"
  32. }
  33. ],
  34. "lanes": [
  35. {
  36. "id": "l",
  37. "name": "研究员",
  38. "namePattern": {
  39. "head": "研究"
  40. },
  41. "line": 1,
  42. "column": 1
  43. }
  44. ],
  45. "participants": [
  46. {
  47. "id": "a",
  48. "phase": "p",
  49. "lane": "l",
  50. "steps": ["s"],
  51. "member": {
  52. "index": 0,
  53. "of": 1
  54. },
  55. "many": true
  56. }
  57. ],
  58. "handoffs": [
  59. {
  60. "from": "a",
  61. "to": "a",
  62. "back": true,
  63. "types": ["report"]
  64. }
  65. ],
  66. "phases": [
  67. {
  68. "id": "p",
  69. "name": "研究",
  70. "line": 1,
  71. "column": 1,
  72. "alongside": ["p"]
  73. }
  74. ],
  75. "phaseEdges": [
  76. {
  77. "from": "p",
  78. "to": "p",
  79. "back": true
  80. }
  81. ],
  82. "exits": ["p"],
  83. "sink": ["s"],
  84. "truncated": false
  85. }
  86. },
  87. {
  88. "kind": "get_workflow_run",
  89. "runId": "run-1",
  90. "label": "研究",
  91. "status": "running",
  92. "stopReason": "interrupted",
  93. "possiblyInterrupted": true,
  94. "summary": "处理中",
  95. "generatedAt": 123,
  96. "usage": {
  97. "spentTokens": 1,
  98. "nodesObserved": 1,
  99. "nodesRunning": 1,
  100. "nodesCompleted": 0,
  101. "nodesFailed": 0
  102. },
  103. "phases": [
  104. {
  105. "name": "研究",
  106. "state": "current",
  107. "rounds": 1,
  108. "nodesSettled": 0,
  109. "nodesRunning": 1,
  110. "enteredAt": 1,
  111. "exitedAt": 2
  112. }
  113. ],
  114. "subagents": [
  115. {
  116. "siteId": "s",
  117. "ordinal": 0,
  118. "name": "研究员",
  119. "state": "waiting",
  120. "phaseName": "研究",
  121. "instructionsHead": "研究需求",
  122. "startedAt": 1,
  123. "turn": 1,
  124. "toolCalls": 2,
  125. "lastTool": {
  126. "name": "read",
  127. "target": "README",
  128. "at": 2
  129. },
  130. "waitCause": "slot",
  131. "retryAfterMs": 1,
  132. "waitSince": 1,
  133. "parkedOn": "s",
  134. "stepsSettled": 0,
  135. "stepsFailed": 0,
  136. "tokens": 1,
  137. "lastProgressAt": 2
  138. }
  139. ],
  140. "health": {
  141. "lastProgressAt": 2,
  142. "stalledSince": 1,
  143. "concurrency": {
  144. "effective": 1,
  145. "cap": 2,
  146. "reason": "quota",
  147. "since": 1
  148. },
  149. "consecutiveFailures": 0,
  150. "cachedSteps": 0,
  151. "leftoverRunning": 1,
  152. "pendingQuestionsKnown": false
  153. },
  154. "actors": [
  155. {
  156. "siteId": "s",
  157. "ordinal": 0,
  158. "name": "研究员"
  159. }
  160. ],
  161. "logTail": [
  162. {
  163. "sequence": 1,
  164. "message": "started",
  165. "at": 1
  166. }
  167. ],
  168. "result": "结果",
  169. "error": {
  170. "code": "example",
  171. "message": "示例"
  172. },
  173. "truncated": false
  174. },
  175. {
  176. "kind": "list_workflow_runs",
  177. "runs": [
  178. {
  179. "runId": "run-1",
  180. "label": "研究",
  181. "labelSource": "name",
  182. "status": "stopped",
  183. "stopReason": "user",
  184. "ownedByThisSession": true,
  185. "possiblyInterrupted": false,
  186. "createdAt": 1,
  187. "updatedAt": 2,
  188. "spentTokens": 1
  189. }
  190. ],
  191. "truncated": false
  192. },
  193. {
  194. "kind": "eval_workflow_snippet",
  195. "ok": true,
  196. "diagnostics": [
  197. {
  198. "line": 0,
  199. "column": 0,
  200. "code": 1,
  201. "message": "诊断"
  202. }
  203. ],
  204. "logs": ["hello"],
  205. "response": "结果",
  206. "durationMs": 1,
  207. "truncated": false
  208. },
  209. {
  210. "kind": "saved_workflow_list",
  211. "workflows": [
  212. {
  213. "name": "研究",
  214. "description": "研究任务",
  215. "whenToUse": "研究时",
  216. "scope": "project",
  217. "path": ".zcode/workflows/research.ts",
  218. "argNames": ["topic"]
  219. }
  220. ],
  221. "invalid": [
  222. {
  223. "path": "broken.ts",
  224. "reason": "syntax"
  225. }
  226. ],
  227. "truncated": false
  228. },
  229. {
  230. "kind": "list_models",
  231. "current": "model-1",
  232. "models": [
  233. {
  234. "id": "model-1",
  235. "providerId": "provider",
  236. "modelId": "model",
  237. "providerLabel": "提供方",
  238. "reasoningLevels": ["high"],
  239. "defaultReasoningLevel": "high",
  240. "contextWindow": 1000,
  241. "disabledReason": "示例"
  242. }
  243. ],
  244. "truncated": false
  245. },
  246. {
  247. "kind": "resume_workflow_run",
  248. "runId": "run-1"
  249. }
  250. ]