|
| 1 | +{ |
| 2 | + "app_id": "doc-approval", |
| 3 | + "version": "1.0.0", |
| 4 | + "schema_version": "1.0.0", |
| 5 | + "workspace_defaults": { |
| 6 | + "workspace_id": "local-default", |
| 7 | + "registry_scope": "private" |
| 8 | + }, |
| 9 | + "components": [ |
| 10 | + { |
| 11 | + "component_id": "doc-approval.analyze-component", |
| 12 | + "version": "1.0.0", |
| 13 | + "digest": "sha256:5647c39a1d25d8728350f9619025292a62e78a602068a2ad9b6f075751c93d99", |
| 14 | + "manifest_path": "components/analyze/component.manifest.json" |
| 15 | + }, |
| 16 | + { |
| 17 | + "component_id": "doc-approval.recommend-component", |
| 18 | + "version": "1.0.0", |
| 19 | + "digest": "sha256:5647c39a1d25d8728350f9619025292a62e78a602068a2ad9b6f075751c93d99", |
| 20 | + "manifest_path": "components/recommend/component.manifest.json" |
| 21 | + } |
| 22 | + ], |
| 23 | + "workflows": [ |
| 24 | + { |
| 25 | + "workflow_id": "doc-approval.pipeline", |
| 26 | + "workflow_version": "1.0.0", |
| 27 | + "path": "_traverse/workflows/examples/doc-approval/pipeline/workflow.json" |
| 28 | + } |
| 29 | + ], |
| 30 | + "model_dependencies": [], |
| 31 | + "config_schema": { |
| 32 | + "type": "object", |
| 33 | + "required": ["workspace_id"], |
| 34 | + "properties": { |
| 35 | + "workspace_id": { "type": "string" }, |
| 36 | + "analysis_mode": { |
| 37 | + "type": "string", |
| 38 | + "enum": ["deterministic"] |
| 39 | + } |
| 40 | + }, |
| 41 | + "additionalProperties": false |
| 42 | + }, |
| 43 | + "default_config": { |
| 44 | + "workspace_id": "local-default", |
| 45 | + "analysis_mode": "deterministic" |
| 46 | + }, |
| 47 | + "placement_policy": { |
| 48 | + "preferred_targets": ["local"], |
| 49 | + "allow_fallback": false |
| 50 | + }, |
| 51 | + "public_surfaces": ["cli", "http_json"], |
| 52 | + "state_machine": { |
| 53 | + "initial_state": "idle", |
| 54 | + "list_context_fields": [ |
| 55 | + "output.analysis.docType", |
| 56 | + "output.analysis.parties", |
| 57 | + "output.analysis.amounts", |
| 58 | + "output.analysis.confidence", |
| 59 | + "output.analysis.recommendation", |
| 60 | + "output.recommendation.recommendation", |
| 61 | + "output.recommendation.rationale", |
| 62 | + "output.recommendation.confidence" |
| 63 | + ], |
| 64 | + "states": [ |
| 65 | + { |
| 66 | + "id": "idle", |
| 67 | + "transitions": [{ "on": "submit", "to": "processing" }] |
| 68 | + }, |
| 69 | + { |
| 70 | + "id": "processing", |
| 71 | + "invoke": { |
| 72 | + "capability_id": "doc-approval.analyze", |
| 73 | + "input_from": "command.payload" |
| 74 | + }, |
| 75 | + "transitions": [ |
| 76 | + { "on": "capability_succeeded", "to": "results" }, |
| 77 | + { "on": "capability_failed", "to": "error" } |
| 78 | + ] |
| 79 | + }, |
| 80 | + { |
| 81 | + "id": "results", |
| 82 | + "transitions": [{ "on": "reset", "to": "idle" }] |
| 83 | + }, |
| 84 | + { |
| 85 | + "id": "error", |
| 86 | + "transitions": [ |
| 87 | + { "on": "retry", "to": "processing", "with_last_payload": true }, |
| 88 | + { "on": "reset", "to": "idle" } |
| 89 | + ] |
| 90 | + } |
| 91 | + ] |
| 92 | + } |
| 93 | +} |
0 commit comments