{
  "id": 4,
  "title": "Interpreter",
  "description": "A simple interpreter that translates user input into a target language. Try 'Hi there => Spanish' to see the translation!",
  "canvas_type": "chatbot",
  "dsl": {
  "answer": [],
  "components": {
        "begin": {
          "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"
            }
          },
          "downstream": [
            "Answer:ShortPapersShake"
          ],
          "upstream": []
        },
        "Answer:ShortPapersShake": {
          "obj": {
            "component_name": "Answer",
            "params": {}
          },
          "downstream": [
            "Generate:HeavyForksTell"
          ],
          "upstream": [
            "begin",
            "Generate:HeavyForksTell"
          ]
        },
        "Generate:HeavyForksTell": {
          "obj": {
            "component_name": "Generate",
            "params": {
              "cite": true,
              "frequency_penalty": 0.7,
              "llm_id": "deepseek-chat@DeepSeek",
              "max_tokens": 256,
              "message_history_window_size": 12,
              "parameters": [],
              "presence_penalty": 0.4,
              "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.1,
              "top_p": 0.3
            }
          },
          "downstream": [
            "Answer:ShortPapersShake"
          ],
          "upstream": [
            "Answer:ShortPapersShake"
          ]
        }
      },
      "embed_id": "",
      "graph": {
        "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": 44,
            "id": "begin",
            "position": {
              "x": -227.62119327532662,
              "y": 204.18864081386155
            },
            "positionAbsolute": {
              "x": -227.62119327532662,
              "y": 204.18864081386155
            },
            "selected": false,
            "sourcePosition": "left",
            "targetPosition": "right",
            "type": "beginNode",
            "width": 100
          },
          {
            "data": {
              "form": {},
              "label": "Answer",
              "name": "Interface"
            },
            "dragging": false,
            "height": 44,
            "id": "Answer:ShortPapersShake",
            "position": {
              "x": -2.51245296887717,
              "y": 206.25402277426554
            },
            "positionAbsolute": {
              "x": -2.51245296887717,
              "y": 206.25402277426554
            },
            "selected": false,
            "sourcePosition": "left",
            "targetPosition": "right",
            "type": "logicNode",
            "width": 200
          },
          {
            "data": {
              "form": {
                "cite": true,
                "frequencyPenaltyEnabled": true,
                "frequency_penalty": 0.7,
                "llm_id": "deepseek-chat@DeepSeek",
                "maxTokensEnabled": true,
                "max_tokens": 256,
                "message_history_window_size": 12,
                "parameter": "Precise",
                "parameters": [],
                "presencePenaltyEnabled": true,
                "presence_penalty": 0.4,
                "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.1,
                "temperatureEnabled": true,
                "topPEnabled": true,
                "top_p": 0.3
              },
              "label": "Generate",
              "name": "Translate"
            },
            "dragging": false,
            "height": 86,
            "id": "Generate:HeavyForksTell",
            "position": {
              "x": -1.8557846635797546,
              "y": 70.16420357406685
            },
            "positionAbsolute": {
              "x": -1.8557846635797546,
              "y": 70.16420357406685
            },
            "selected": false,
            "sourcePosition": "right",
            "targetPosition": "left",
            "type": "generateNode",
            "width": 200
          },
          {
            "data": {
              "form": {
                "text": "The large model translates the user's desired content into the target language, returns the translated language."
              },
              "label": "Note",
              "name": "N: Translate"
            },
            "dragging": false,
            "height": 180,
            "id": "Note:VioletNumbersStrive",
            "position": {
              "x": 0.8506882512325546,
              "y": -119.10519445109118
            },
            "positionAbsolute": {
              "x": 0.8506882512325546,
              "y": -119.10519445109118
            },
            "resizing": false,
            "selected": false,
            "sourcePosition": "right",
            "style": {
              "height": 180,
              "width": 209
            },
            "targetPosition": "left",
            "type": "noteNode",
            "width": 209,
            "dragHandle": ".note-drag-handle"
          },
          {
            "data": {
              "form": {
                "text": "Receives the content the user wants to translate and the target language, displays the translation result from the large model."
              },
              "label": "Note",
              "name": "N: Interface"
            },
            "dragging": false,
            "height": 157,
            "id": "Note:WarmDoodlesSwim",
            "position": {
              "x": 22.5293807600396,
              "y": 267.8448268086032
            },
            "positionAbsolute": {
              "x": 22.5293807600396,
              "y": 267.8448268086032
            },
            "resizing": false,
            "selected": false,
            "sourcePosition": "right",
            "style": {
              "height": 157,
              "width": 252
            },
            "targetPosition": "left",
            "type": "noteNode",
            "width": 252,
            "dragHandle": ".note-drag-handle"
          }
        ],
        "edges": [
          {
            "id": "reactflow__edge-begin-Answer:ShortPapersShakec",
            "markerEnd": "logo",
            "source": "begin",
            "sourceHandle": null,
            "style": {
              "stroke": "rgb(202 197 245)",
              "strokeWidth": 2
            },
            "target": "Answer:ShortPapersShake",
            "targetHandle": "c",
            "type": "buttonEdge"
          },
          {
            "id": "reactflow__edge-Answer:ShortPapersShakeb-Generate:HeavyForksTellb",
            "markerEnd": "logo",
            "source": "Answer:ShortPapersShake",
            "sourceHandle": "b",
            "style": {
              "stroke": "rgb(202 197 245)",
              "strokeWidth": 2
            },
            "target": "Generate:HeavyForksTell",
            "targetHandle": "b",
            "type": "buttonEdge"
          },
          {
            "id": "reactflow__edge-Generate:HeavyForksTellc-Answer:ShortPapersShakec",
            "markerEnd": "logo",
            "source": "Generate:HeavyForksTell",
            "sourceHandle": "c",
            "style": {
              "stroke": "rgb(202 197 245)",
              "strokeWidth": 2
            },
            "target": "Answer:ShortPapersShake",
            "targetHandle": "c",
            "type": "buttonEdge"
          }
        ]
      },
      "history": [],
      "messages": [],
      "path": [],
      "reference": []
    },
  "avatar": "data:image/jpeg;base64,[encoded data, 39896 characters]"
}
