Repository navigation
Expand file tree
/
Copy pathworkflow.json
More file actions
46 lines (46 loc) · 1.58 KB
/
Copy pathworkflow.json
File metadata and controls
46 lines (46 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"package_format": "tin-workflow-package-v1",
"definition": {
"key": "example.csv_summary",
"title": "Summarize a CSV",
"description": "Validate an amount_cents column, count the rows and total their values. No model calls.",
"version": "1.0.0",
"executor": "workflow.code",
"schedule_modes": ["on_demand"],
"input_schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"project_id": {"type": "string", "format": "uuid"},
"csv_text": {"type": "string", "minLength": 1, "maxLength": 16000, "title": "CSV with an amount_cents column"}
},
"required": ["project_id", "csv_text"]
},
"code": {
"runtime": "python3.12.8-stdlib-v1",
"entrypoint": "main.py",
"files": ["main.py"],
"timeout_seconds": 10,
"output": {
"kind": "project.artifact",
"path": "reports/CSV_SUMMARY.md",
"media_type": "text/markdown",
"max_bytes": 2000
}
},
"presentation": {
"flow": {
"direction": "TD",
"nodes": [
{"id": "read", "kind": "step", "label": "Read the CSV", "fact": "unique columns, including amount_cents"},
{"id": "check", "kind": "step", "label": "Check every row", "fact": "whole cents, at most 10 digits"},
{"id": "report", "kind": "receipt", "label": "Summary in Files", "fact": "reports/CSV_SUMMARY.md, rows and total"}
],
"edges": [
{"from": "read", "to": "check", "kind": "call"},
{"from": "check", "to": "report", "kind": "call"}
]
}
}
}
}