-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkflow.json
More file actions
51 lines (51 loc) · 1.41 KB
/
workflow.json
File metadata and controls
51 lines (51 loc) · 1.41 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
47
48
49
50
51
{
"name": "iterative-refinement",
"description": "Refine a draft through agent feedback. Agent reviews and either approves or provides feedback.",
"category": "content",
"features": ["reasoning", "crypto", "workflow.log"],
"input_schema": {
"type": "object",
"required": ["draft_content"],
"properties": {
"draft_content": {
"type": "string",
"description": "Initial draft content to refine"
}
}
},
"definition": {
"timeout": "10m",
"on_timeout": "suspend",
"steps": [
{
"id": "gen-draft-id",
"type": "action",
"action": "crypto.uuid"
},
{
"id": "review",
"type": "reasoning",
"depends_on": ["gen-draft-id"],
"config": {
"prompt_context": "Review the current draft and provide feedback. If the draft is ready, choose 'approve'. Otherwise, provide free-form feedback describing what needs to change.",
"options": [],
"data_inject": {
"draft_id": "steps['gen-draft-id'].uuid",
"draft_content": "inputs.draft_content"
},
"timeout": "1h",
"fallback": "approve"
}
},
{
"id": "log-review-complete",
"type": "action",
"action": "workflow.log",
"depends_on": ["review"],
"params": {
"message": "Draft review completed"
}
}
]
}
}