Spaces:
Sleeping
Sleeping
Update workflow.json
Browse files- workflow.json +63 -1
workflow.json
CHANGED
|
@@ -1 +1,63 @@
|
|
| 1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "2",
|
| 3 |
+
"name": "Article Drafter",
|
| 4 |
+
"references": [
|
| 5 |
+
{
|
| 6 |
+
"id": "ref-topic",
|
| 7 |
+
"label": "Topic or Idea",
|
| 8 |
+
"role": "reference",
|
| 9 |
+
"asset_type": "text",
|
| 10 |
+
"inputs": [{ "id": "in", "type": "text" }],
|
| 11 |
+
"outputs": [{ "id": "out", "type": "text" }],
|
| 12 |
+
"x": 60, "y": 150, "width": 220, "height": 120, "data": {}
|
| 13 |
+
}
|
| 14 |
+
],
|
| 15 |
+
"operators": [
|
| 16 |
+
{
|
| 17 |
+
"id": "op-outline",
|
| 18 |
+
"label": "Outline",
|
| 19 |
+
"role": "operator",
|
| 20 |
+
"kind": "model",
|
| 21 |
+
"model_id": "meta-llama/Llama-3.1-8B-Instruct",
|
| 22 |
+
"inputs": [
|
| 23 |
+
{
|
| 24 |
+
"id": "in_0", "label": "inputs", "type": "text",
|
| 25 |
+
"template": "Write a concise outline for a dev.to article about: {value}"
|
| 26 |
+
}
|
| 27 |
+
],
|
| 28 |
+
"outputs": [{ "id": "out_0", "label": "outline", "type": "text" }],
|
| 29 |
+
"x": 340, "y": 150, "width": 220, "height": 120, "data": {}
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"id": "op-draft",
|
| 33 |
+
"label": "Draft",
|
| 34 |
+
"role": "operator",
|
| 35 |
+
"kind": "model",
|
| 36 |
+
"model_id": "meta-llama/Llama-3.1-8B-Instruct",
|
| 37 |
+
"inputs": [
|
| 38 |
+
{
|
| 39 |
+
"id": "in_0", "label": "inputs", "type": "text",
|
| 40 |
+
"template": "Write a full dev.to article from this outline. Use markdown, be concise, add code examples where relevant.\n\n{value}"
|
| 41 |
+
}
|
| 42 |
+
],
|
| 43 |
+
"outputs": [{ "id": "out_0", "label": "draft", "type": "text" }],
|
| 44 |
+
"x": 620, "y": 150, "width": 220, "height": 120, "data": {}
|
| 45 |
+
}
|
| 46 |
+
],
|
| 47 |
+
"subjects": [
|
| 48 |
+
{
|
| 49 |
+
"id": "subj-article",
|
| 50 |
+
"label": "Article Draft",
|
| 51 |
+
"role": "subject",
|
| 52 |
+
"asset_type": "text",
|
| 53 |
+
"inputs": [{ "id": "in", "type": "text" }],
|
| 54 |
+
"outputs": [{ "id": "out", "type": "text" }],
|
| 55 |
+
"x": 900, "y": 150, "width": 280, "height": 200, "data": {}
|
| 56 |
+
}
|
| 57 |
+
],
|
| 58 |
+
"edges": [
|
| 59 |
+
{ "id": "e1", "from_node_id": "ref-topic", "from_port_id": "out", "to_node_id": "op-outline", "to_port_id": "in_0", "type": "text" },
|
| 60 |
+
{ "id": "e2", "from_node_id": "op-outline", "from_port_id": "out_0", "to_node_id": "op-draft", "to_port_id": "in_0", "type": "text" },
|
| 61 |
+
{ "id": "e3", "from_node_id": "op-draft", "from_port_id": "out_0", "to_node_id": "subj-article", "to_port_id": "in", "type": "text" }
|
| 62 |
+
]
|
| 63 |
+
}
|