Spaces:
Running
Running
File size: 2,186 Bytes
8c1739d | 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 52 53 54 55 56 57 58 59 60 61 62 63 | {
"schema_version": "2",
"name": "Article Drafter",
"references": [
{
"id": "ref-topic",
"label": "Topic or Idea",
"role": "reference",
"asset_type": "text",
"inputs": [{ "id": "in", "type": "text" }],
"outputs": [{ "id": "out", "type": "text" }],
"x": 60, "y": 150, "width": 220, "height": 120, "data": {}
}
],
"operators": [
{
"id": "op-outline",
"label": "Outline",
"role": "operator",
"kind": "model",
"model_id": "meta-llama/Llama-3.1-8B-Instruct",
"inputs": [
{
"id": "in_0", "label": "inputs", "type": "text",
"template": "Write a concise outline for a dev.to article about: {value}"
}
],
"outputs": [{ "id": "out_0", "label": "outline", "type": "text" }],
"x": 340, "y": 150, "width": 220, "height": 120, "data": {}
},
{
"id": "op-draft",
"label": "Draft",
"role": "operator",
"kind": "model",
"model_id": "meta-llama/Llama-3.1-8B-Instruct",
"inputs": [
{
"id": "in_0", "label": "inputs", "type": "text",
"template": "Write a full dev.to article from this outline. Use markdown, be concise, add code examples where relevant.\n\n{value}"
}
],
"outputs": [{ "id": "out_0", "label": "draft", "type": "text" }],
"x": 620, "y": 150, "width": 220, "height": 120, "data": {}
}
],
"subjects": [
{
"id": "subj-article",
"label": "Article Draft",
"role": "subject",
"asset_type": "text",
"inputs": [{ "id": "in", "type": "text" }],
"outputs": [{ "id": "out", "type": "text" }],
"x": 900, "y": 150, "width": 280, "height": 200, "data": {}
}
],
"edges": [
{ "id": "e1", "from_node_id": "ref-topic", "from_port_id": "out", "to_node_id": "op-outline", "to_port_id": "in_0", "type": "text" },
{ "id": "e2", "from_node_id": "op-outline", "from_port_id": "out_0", "to_node_id": "op-draft", "to_port_id": "in_0", "type": "text" },
{ "id": "e3", "from_node_id": "op-draft", "from_port_id": "out_0", "to_node_id": "subj-article", "to_port_id": "in", "type": "text" }
]
} |