| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- [
- {
- "kind": "create_workflow",
- "ok": true,
- "errorCount": 0,
- "diagnostics": [
- {
- "line": 0,
- "column": 0,
- "code": 1,
- "message": "诊断"
- }
- ],
- "truncated": false,
- "causalityGraph": {
- "steps": [
- {
- "id": "s",
- "kind": "ask",
- "label": "研究",
- "labelPattern": {
- "head": "研究",
- "tail": "员"
- },
- "line": 1,
- "column": 1,
- "lane": "l",
- "lanes": ["l"],
- "source": "s",
- "phase": "p",
- "repeat": "serial"
- }
- ],
- "lanes": [
- {
- "id": "l",
- "name": "研究员",
- "namePattern": {
- "head": "研究"
- },
- "line": 1,
- "column": 1
- }
- ],
- "participants": [
- {
- "id": "a",
- "phase": "p",
- "lane": "l",
- "steps": ["s"],
- "member": {
- "index": 0,
- "of": 1
- },
- "many": true
- }
- ],
- "handoffs": [
- {
- "from": "a",
- "to": "a",
- "back": true,
- "types": ["report"]
- }
- ],
- "phases": [
- {
- "id": "p",
- "name": "研究",
- "line": 1,
- "column": 1,
- "alongside": ["p"]
- }
- ],
- "phaseEdges": [
- {
- "from": "p",
- "to": "p",
- "back": true
- }
- ],
- "exits": ["p"],
- "sink": ["s"],
- "truncated": false
- }
- },
- {
- "kind": "get_workflow_run",
- "runId": "run-1",
- "label": "研究",
- "status": "running",
- "stopReason": "interrupted",
- "possiblyInterrupted": true,
- "summary": "处理中",
- "generatedAt": 123,
- "usage": {
- "spentTokens": 1,
- "nodesObserved": 1,
- "nodesRunning": 1,
- "nodesCompleted": 0,
- "nodesFailed": 0
- },
- "phases": [
- {
- "name": "研究",
- "state": "current",
- "rounds": 1,
- "nodesSettled": 0,
- "nodesRunning": 1,
- "enteredAt": 1,
- "exitedAt": 2
- }
- ],
- "subagents": [
- {
- "siteId": "s",
- "ordinal": 0,
- "name": "研究员",
- "state": "waiting",
- "phaseName": "研究",
- "instructionsHead": "研究需求",
- "startedAt": 1,
- "turn": 1,
- "toolCalls": 2,
- "lastTool": {
- "name": "read",
- "target": "README",
- "at": 2
- },
- "waitCause": "slot",
- "retryAfterMs": 1,
- "waitSince": 1,
- "parkedOn": "s",
- "stepsSettled": 0,
- "stepsFailed": 0,
- "tokens": 1,
- "lastProgressAt": 2
- }
- ],
- "health": {
- "lastProgressAt": 2,
- "stalledSince": 1,
- "concurrency": {
- "effective": 1,
- "cap": 2,
- "reason": "quota",
- "since": 1
- },
- "consecutiveFailures": 0,
- "cachedSteps": 0,
- "leftoverRunning": 1,
- "pendingQuestionsKnown": false
- },
- "actors": [
- {
- "siteId": "s",
- "ordinal": 0,
- "name": "研究员"
- }
- ],
- "logTail": [
- {
- "sequence": 1,
- "message": "started",
- "at": 1
- }
- ],
- "result": "结果",
- "error": {
- "code": "example",
- "message": "示例"
- },
- "truncated": false
- },
- {
- "kind": "list_workflow_runs",
- "runs": [
- {
- "runId": "run-1",
- "label": "研究",
- "labelSource": "name",
- "status": "stopped",
- "stopReason": "user",
- "ownedByThisSession": true,
- "possiblyInterrupted": false,
- "createdAt": 1,
- "updatedAt": 2,
- "spentTokens": 1
- }
- ],
- "truncated": false
- },
- {
- "kind": "eval_workflow_snippet",
- "ok": true,
- "diagnostics": [
- {
- "line": 0,
- "column": 0,
- "code": 1,
- "message": "诊断"
- }
- ],
- "logs": ["hello"],
- "response": "结果",
- "durationMs": 1,
- "truncated": false
- },
- {
- "kind": "saved_workflow_list",
- "workflows": [
- {
- "name": "研究",
- "description": "研究任务",
- "whenToUse": "研究时",
- "scope": "project",
- "path": ".zcode/workflows/research.ts",
- "argNames": ["topic"]
- }
- ],
- "invalid": [
- {
- "path": "broken.ts",
- "reason": "syntax"
- }
- ],
- "truncated": false
- },
- {
- "kind": "list_models",
- "current": "model-1",
- "models": [
- {
- "id": "model-1",
- "providerId": "provider",
- "modelId": "model",
- "providerLabel": "提供方",
- "reasoningLevels": ["high"],
- "defaultReasoningLevel": "high",
- "contextWindow": 1000,
- "disabledReason": "示例"
- }
- ],
- "truncated": false
- },
- {
- "kind": "resume_workflow_run",
- "runId": "run-1"
- }
- ]
|