dev-article-workflow / workflow.json
hmb's picture
hmb HF Staff
Update workflow.json
8c1739d verified
Raw
History Blame Contribute Delete
2.19 kB
{
"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" }
]
}