{
  "id": 3,
  "title": "Interpreter",
  "description": "An interpreter. Type the content you want to translate and the object language like: Hi there => Spanish. Hava a try!",
  "canvas_type": "chatbot",
  "dsl": {
      "answer": [],
      "components": {
        "answer:0": {
          "downstream": ["generate:0"],
          "obj": {
            "component_name": "Answer",
            "params": {}
          },
          "upstream": ["begin", "generate:0"]
        },
        "begin": {
          "downstream": ["answer:0"],
          "obj": {
            "component_name": "Begin",
            "params": {
              "prologue": "Hi there! Please enter the text you want to translate in format like: 'text you want to translate' => target language. For an example: 您好！ => English"
            }
          },
          "upstream": []
        },
        "generate:0": {
          "downstream": ["answer:0"],
          "obj": {
            "component_name": "Generate",
            "params": {
              "llm_id": "deepseek-chat",
              "prompt": "You are an professional interpreter.\n- Role: an professional interpreter.\n- Input format: content need to be translated => target language. \n- Answer format: => translated content in target language. \n- Examples:\n  - user: 您好！ => English. assistant: => How are you doing!\n  - user: You look good today. => Japanese. assistant: => 今日は調子がいいですね 。\n"
            }
          },
          "upstream": ["answer:0"]
        }
      },
      "graph": {
        "edges": [
          {
            "id": "c87c7805-8cf0-4cd4-b45b-152031811020",
            "label": "",
            "source": "begin",
            "target": "answer:0"
          },
          {
            "id": "reactflow__edge-answer:0b-generate:0d",
            "markerEnd": "logo",
            "source": "answer:0",
            "sourceHandle": "b",
            "style": {
              "stroke": "rgb(202 197 245)",
              "strokeWidth": 2
            },
            "target": "generate:0",
            "targetHandle": "d",
            "type": "buttonEdge"
          },
          {
            "id": "reactflow__edge-generate:0c-answer:0a",
            "markerEnd": "logo",
            "source": "generate:0",
            "sourceHandle": "c",
            "style": {
              "stroke": "rgb(202 197 245)",
              "strokeWidth": 2
            },
            "target": "answer:0",
            "targetHandle": "a",
            "type": "buttonEdge"
          }
        ],
        "nodes": [
          {
            "data": {
              "form": {
                "prologue": "Hi there! Please enter the text you want to translate in format like: 'text you want to translate' => target language. For an example: 您好！ => English"
              },
              "label": "Begin",
              "name": "Instruction"
            },
            "dragging": false,
            "height": 50,
            "id": "begin",
            "position": {
              "x": -175.31950791077287,
              "y": 32.340246044613565
            },
            "positionAbsolute": {
              "x": -175.31950791077287,
              "y": 32.340246044613565
            },
            "selected": true,
            "sourcePosition": "left",
            "targetPosition": "right",
            "type": "beginNode",
            "width": 50
          },
          {
            "data": {
              "form": {},
              "label": "Answer",
              "name": "Interface"
            },
            "dragging": false,
            "height": 100,
            "id": "answer:0",
            "position": {
              "x": 0,
              "y": 6
            },
            "positionAbsolute": {
              "x": 0,
              "y": 6
            },
            "selected": false,
            "sourcePosition": "left",
            "targetPosition": "right",
            "type": "ragNode",
            "width": 100
          },
          {
            "data": {
              "form": {
                "llm_id": "deepseek-chat",
                "prompt": "You are an professional interpreter.\n- Role: an professional interpreter.\n- Input format: content need to be translated => target language. \n- Answer format: => translated content in target language. \n- Examples:\n  - user: 您好！ => English. assistant: => How are you doing!\n  - user: You look good today. => Japanese. assistant: => 今日は調子がいいですね 。\n",
                "temperature": 0.5
              },
              "label": "Generate",
              "name": "Translate"
            },
            "dragging": false,
            "height": 150,
            "id": "generate:0",
            "position": {
              "x": 214.89015821545786,
              "y": 135.10439391733706
            },
            "positionAbsolute": {
              "x": 214.89015821545786,
              "y": 135.10439391733706
            },
            "selected": false,
            "sourcePosition": "left",
            "targetPosition": "right",
            "type": "ragNode",
            "width": 150
          }
        ]
      },
      "history": [],
      "messages": [],
      "path": [],
      "reference": []
    },
  "avatar": "data:image/jpeg;base64,[encoded data, 39896 characters]"
}