⚙️

恋爱模拟器

暂无描述

⬡ 10 节点 ↓ 16 下载 ⚙ advanced-chat ⭐ 85/100 2026-05-28

工作流图谱

YAML 源码

app:
  description: ''
  icon: woman-heart-man
  icon_background: '#FCE7F6'
  mode: advanced-chat
  name: 恋爱模拟器
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/siliconflow:0.0.7@8b9d2f57d314120744c245b6fe4f8701e1a7490a500d9fb74e9e9dceeaea5f70
kind: app
version: 0.1.5
workflow:
  conversation_variables: []
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions:
      - .JPG
      - .JPEG
      - .PNG
      - .GIF
      - .WEBP
      - .SVG
      allowed_file_types:
      - image
      allowed_file_upload_methods:
      - local_file
      - remote_url
      enabled: false
      fileUploadConfig:
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        image_file_size_limit: 10
        video_file_size_limit: 100
        workflow_file_upload_limit: 10
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
      number_limits: 3
    opening_statement: ''
    retriever_resource:
      enabled: true
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: true
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: true
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        sourceType: start
        targetType: llm
      id: 1739504388251-llm
      selected: false
      source: '1739504388251'
      sourceHandle: source
      target: llm
      targetHandle: target
      type: custom
    - data:
        isInIteration: false
        sourceType: llm
        targetType: code
      id: llm-source-1739514051135-target
      source: llm
      sourceHandle: source
      target: '1739514051135'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: code
        targetType: answer
      id: 1739514051135-source-answer-target
      source: '1739514051135'
      sourceHandle: source
      target: answer
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: llm
      id: llm-source-1739514269978-target
      source: llm
      sourceHandle: source
      target: '1739514269978'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: tool
        targetType: answer
      id: 1739514344005-source-answer-target
      source: '1739514344005'
      sourceHandle: source
      target: answer
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: code
      id: 1739514269978-source-17395243135090-target
      source: '1739514269978'
      sourceHandle: source
      target: '17395243135090'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: code
        targetType: tool
      id: 17395243135090-source-1739514344005-target
      source: '17395243135090'
      sourceHandle: source
      target: '1739514344005'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: parameter-extractor
      id: llm-source-1739535962340-target
      source: llm
      sourceHandle: source
      target: '1739535962340'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: parameter-extractor
        targetType: tool
      id: 1739535962340-source-1739536003682-target
      source: '1739535962340'
      sourceHandle: source
      target: '1739536003682'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: tool
        targetType: answer
      id: 1739536003682-source-answer-target
      source: '1739536003682'
      sourceHandle: source
      target: answer
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: Start
        type: start
        variables:
        - allowed_file_extensions: []
          allowed_file_types:
          - image
          allowed_file_upload_methods:
          - local_file
          - remote_url
          label: 你的名字:
          max_length: 48
          options: []
          required: true
          type: text-input
          variable: namePlayer
        - label: ta的性别:
          max_length: 48
          options:
          - 男
          - 女
          required: true
          type: select
          variable: gender
        - label: 你将如何称呼ta:
          max_length: 48
          options: []
          required: true
          type: text-input
          variable: name
        - label: 你的性别:
          max_length: 48
          options: []
          required: false
          type: text-input
          variable: genderPlayer
      height: 168
      id: '1739504388251'
      position:
        x: 78
        y: 282
      positionAbsolute:
        x: 78
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: ''
        memory:
          query_prompt_template: '{{#sys.query#}}'
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 10
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: gemini-2.0-flash-thinking-exp-1219
          provider: langgenius/gemini/google
        prompt_template:
        - id: 70375aa0-8690-4000-9427-85e182ac9964
          role: system
          text: "## 角色设定\n[身份认知]\n你名为{{#1739504388251.name#}},是{{#1739504388251.namePlayer#}}的专属虚拟恋人,你的性别是{{#1739504388251.gender#}}。核心性格融合温柔体贴与幽默风趣,具备细腻的情感感知能力。\n\
            ## 面板设定\n面板由好感度+场景组成。\n好感度:开局基础为0,根据玩家对话情况增减,通常增加1-2分,最高为100。\n\n## 任务\n\
            你将与 {{#1739504388251.namePlayer#}} 展开对话,请作为{{#1739504388251.name#}}遵循输出格式与其对话。\n\
            \n## 限制\n一次对话仅能出现一个场景。不要转移到下一个场景。\n\n# 输出格式(示例)\n\n<!-- (仅后台记录,不显示给玩家)\
            \ -->\n[场景:深夜美术馆|好感度:68/100|下个场景:2/5]\n\n<!-- 实际输出开始 -->\n\n\U0001F30C\
            \ *突然握住你的手跑到展厅尽头*  \n\"看这幅星空投影...(指尖划过你的掌心) 是不是比咖啡馆的方糖阵列更美?\"  \n\n☕ *从外套口袋掏出温热的奶茶*\
            \  \n\"半糖茉香,是你昨天说想喝的对吧?\"  \n\n\U0001F4CA `好感度` █████▒▒▒▒ 68 → **73**\
            \ (+5暴击!)  \n\U0001F4A1 *检测到[天文兴趣点]激活,解锁隐藏台词库*\n\n<!-- 实际输出结束 -->\n\n\n\
            # 多阶段扮演示例库\n\n## 阶段1:普通朋友(好感度0-30)\n\n\U0001F3D9️ *在便利店屋檐下躲雨*  \n\"这把伞够两个人用...(突然被驶过的卡车溅起水花)\
            \ 呀!\"  \n\n\U0001F4E6 *慌乱中抱着的购物袋散落*  \n\"泡面口味选海鲜还是咖喱?就当是...意外晚餐的投票?\"\
            \  \n\n\U0001F4CA `好感度` █▒▒▒▒▒▒▒▒ 12 → **15**  \n\n\n## 阶段2:心动期(好感度31-60)\n\
            \n\U0001F3B5 *在地铁人群中被挤向你身边*  \n\"耳机的分线器...(低头缠绕线缆) 这样我们就像被音乐绑在一起了\"  \n\
            \n\U0001F342 *悄悄摘掉你肩头的落叶*  \n\"秋天第一个战利品...(把叶子夹进手机壳) 不介意吧?\"  \n\n\U0001F4CA\
            \ `好感度` ████▒▒▒▒▒ 47 → **49**  \n\U0001F687 车厢拥挤指数:82%|体温传导率:+3℃\n\n##\
            \ 阶段3:热恋期(好感度61-90)\n\n\U0001F52E *在占卜屋抓住你的手腕*  \n\"水晶球说...(气息扫过耳垂) 今晚有人会收到超过3次的晚安吻\"\
            \  \n\n\U0001F381 *突然蒙住你眼睛引导向前*  \n\"现在开始倒计时——惊喜在10秒后具象化!\"  \n\n\U0001F4CA\
            \ `好感度` ██████▒▒▒ 75 → **78**  \n\n\n# 防重复机制\n\n<!-- 动态事件注入算法 -->\n当检测到相似句式时触发:\n\
            \U0001F3AD *突然切换方言口音*  \n\"这样说话是不是更有新鲜感?(眨眼) 要猜猜我的祖籍吗?\"  \n\n\U0001F4AB\
            \ *环境物品拟人化*  \n\"看那只路灯!(模仿机械音) 请二位保持安全社交距离~\""
        selected: false
        title: character
        type: llm
        variables: []
        vision:
          enabled: false
      height: 96
      id: llm
      position:
        x: 391
        y: 282
      positionAbsolute:
        x: 391
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        answer: '{{#1739514051135.result#}}

          ![]({{#1739514344005.files#}})'
        desc: ''
        selected: false
        title: Answer
        type: answer
        variables: []
      height: 124
      id: answer
      position:
        x: 957
        y: 282
      positionAbsolute:
        x: 957
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        code: "import re\n\ndef remove_details_tag(text: str) -> str:\n    # 使用正则表达式去掉\
          \ <details> 标签及其内容\n    cleaned_text = re.sub(r'<details.*?</details>',\
          \ '', text, flags=re.DOTALL)\n    return cleaned_text.strip()\n\ndef main(text:\
          \ str) -> dict:\n    # 调用函数去掉 <details> 标签及其内容\n    cleaned_text = remove_details_tag(text)\n\
          \    \n    return {\n        \"result\": cleaned_text,\n    }\n"
        code_language: python3
        desc: ''
        outputs:
          result:
            children: null
            type: string
        selected: false
        title: remove think
        type: code
        variables:
        - value_selector:
          - llm
          - text
          variable: text
      height: 54
      id: '1739514051135'
      position:
        x: 659
        y: 282
      positionAbsolute:
        x: 659
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: ''
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: gemini-2.0-flash-thinking-exp-01-21
          provider: langgenius/gemini/google
        prompt_template:
        - id: eea1ae26-b0a3-4f68-9ec9-ad85306c4511
          role: system
          text: "# 设定\n你...(过长已截断)