{ "schema_version": "2", "name": "d3 vs decision models", "references": [ { "id": "ref_state", "role": "reference", "label": "State", "asset_type": "text", "inputs": [ { "id": "in", "label": "State", "type": "text" } ], "outputs": [ { "id": "out", "label": "State", "type": "text" } ], "data": { "out": "The order arrived damaged yesterday. The customer has a receipt and asks for a replacement today." }, "x": 40, "y": 60, "width": 300, "height": 160 }, { "id": "ref_questions", "role": "reference", "label": "Questions (JSON)", "asset_type": "text", "inputs": [ { "id": "in", "label": "Questions", "type": "text" } ], "outputs": [ { "id": "out", "label": "Questions", "type": "text" } ], "data": { "out": "{\"route\": {\"type\": \"choice\", \"instructions\": \"Which team should handle this request?\", \"criteria\": {\"returns\": \"Refunds, replacements and damaged deliveries\", \"billing\": \"Payments, invoices and charges\", \"technical\": \"Product setup and faults\"}}, \"receipt\": {\"type\": \"noul\", \"instructions\": \"Does the customer have a receipt?\"}, \"urgency\": {\"type\": \"score\", \"instructions\": \"How urgent is this request?\", \"criteria\": [\"Routine\", \"Soon\", \"Today\"]}}" }, "x": 40, "y": 280, "width": 300, "height": 300 } ], "operators": [ { "id": "op_d3", "role": "operator", "kind": "fn", "fn": "decide_d3", "label": "d3 (27B, remote API)", "inputs": [ { "id": "in_state", "label": "state", "type": "text", "required": true }, { "id": "in_questions", "label": "questions", "type": "text", "required": true } ], "outputs": [ { "id": "out_0", "label": "probabilities", "type": "text", "output_index": 0 }, { "id": "out_1", "label": "status", "type": "text", "output_index": 1 } ], "data": {}, "x": 420, "y": 40, "width": 270, "height": 150 }, { "id": "op_d3_edge", "role": "operator", "kind": "fn", "fn": "decide_d3_edge", "label": "d3-edge (0.6B, local)", "inputs": [ { "id": "in_state", "label": "state", "type": "text", "required": true }, { "id": "in_questions", "label": "questions", "type": "text", "required": true } ], "outputs": [ { "id": "out_0", "label": "probabilities", "type": "text", "output_index": 0 }, { "id": "out_1", "label": "status", "type": "text", "output_index": 1 } ], "data": {}, "x": 420, "y": 240, "width": 270, "height": 150 }, { "id": "op_gliner", "role": "operator", "kind": "fn", "fn": "decide_gliner", "label": "GLiNER2.5-Decide (340M, local)", "inputs": [ { "id": "in_state", "label": "state", "type": "text", "required": true }, { "id": "in_questions", "label": "questions", "type": "text", "required": true } ], "outputs": [ { "id": "out_0", "label": "probabilities", "type": "text", "output_index": 0 }, { "id": "out_1", "label": "status", "type": "text", "output_index": 1 } ], "data": {}, "x": 420, "y": 440, "width": 270, "height": 150 } ], "subjects": [ { "id": "sub_d3", "role": "subject", "label": "d3 (27B)", "asset_type": "text", "inputs": [ { "id": "in", "label": "Probabilities", "type": "text" } ], "outputs": [], "data": {}, "x": 760, "y": 40, "width": 320, "height": 260 }, { "id": "sub_d3_edge", "role": "subject", "label": "d3-edge (0.6B)", "asset_type": "text", "inputs": [ { "id": "in", "label": "Probabilities", "type": "text" } ], "outputs": [], "data": {}, "x": 760, "y": 350, "width": 320, "height": 260 }, { "id": "sub_gliner", "role": "subject", "label": "GLiNER2.5-Decide (340M)", "asset_type": "text", "inputs": [ { "id": "in", "label": "Probabilities", "type": "text" } ], "outputs": [], "data": {}, "x": 760, "y": 660, "width": 320, "height": 260 } ], "edges": [ { "id": "e1", "from_node_id": "ref_state", "from_port_id": "out", "to_node_id": "op_d3", "to_port_id": "in_state", "type": "text" }, { "id": "e2", "from_node_id": "ref_questions", "from_port_id": "out", "to_node_id": "op_d3", "to_port_id": "in_questions", "type": "text" }, { "id": "e3", "from_node_id": "ref_state", "from_port_id": "out", "to_node_id": "op_d3_edge", "to_port_id": "in_state", "type": "text" }, { "id": "e4", "from_node_id": "ref_questions", "from_port_id": "out", "to_node_id": "op_d3_edge", "to_port_id": "in_questions", "type": "text" }, { "id": "e5", "from_node_id": "ref_state", "from_port_id": "out", "to_node_id": "op_gliner", "to_port_id": "in_state", "type": "text" }, { "id": "e6", "from_node_id": "ref_questions", "from_port_id": "out", "to_node_id": "op_gliner", "to_port_id": "in_questions", "type": "text" }, { "id": "e7", "from_node_id": "op_d3", "from_port_id": "out_0", "to_node_id": "sub_d3", "to_port_id": "in", "type": "text" }, { "id": "e8", "from_node_id": "op_d3_edge", "from_port_id": "out_0", "to_node_id": "sub_d3_edge", "to_port_id": "in", "type": "text" }, { "id": "e9", "from_node_id": "op_gliner", "from_port_id": "out_0", "to_node_id": "sub_gliner", "to_port_id": "in", "type": "text" } ] }