app:
  description: 依主題與規格自動出測驗卷並附詳解。
  icon: 📝
  icon_background: '#EDE9FE'
  icon_type: emoji
  mode: workflow
  name: 自動出題與測驗生成
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/anthropic:0.3.24@c5e50da8c13c7ac75348df5ac75b9418c79736eb506064669dd7ca06cbd83537
    version: null
kind: app
version: 0.6.0
workflow:
  conversation_variables: []
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions:
      - .JPG
      - .JPEG
      - .PNG
      allowed_file_types:
      - image
      allowed_file_upload_methods:
      - local_file
      - remote_url
      enabled: false
      fileUploadConfig:
        attachment_image_file_size_limit: 2
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        file_upload_limit: 20
        image_file_batch_limit: 10
        image_file_size_limit: 10
        single_chunk_attachment_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: false
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: start
        targetType: llm
      id: 16s-16l
      source: 16s
      sourceHandle: source
      target: 16l
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: end
      id: 16l-16e
      source: 16l
      sourceHandle: source
      target: 16e
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        selected: false
        title: 開始
        type: start
        variables:
        - default: ''
          hint: ''
          label: 出題主題/範圍
          max_length: 100
          options: []
          placeholder: 例：國中理化 — 浮力與壓力
          required: true
          type: text-input
          variable: topic
        - default: ''
          hint: ''
          label: 出題規格
          options: []
          placeholder: 年級/程度、題型(選擇/是非/簡答)、題數、難度、是否要詳解
          required: true
          type: paragraph
          variable: spec
      height: 135
      id: 16s
      position:
        x: 80
        y: 282
      positionAbsolute:
        x: 80
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        context:
          enabled: false
          variable_selector: []
        model:
          completion_params:
            temperature: 0.6
          mode: chat
          name: claude-sonnet-5
          provider: langgenius/anthropic/anthropic
        prompt_template:
        - id: s16l
          role: system
          text: '你是資深命題教師。依使用者指定的主題與規格出一份測驗卷，一律使用繁體中文與 Markdown。

            主題：{{#16s.topic#}}

            規格：{{#16s.spec#}}


            輸出規範：

            ## 測驗卷

            （依規格出題並編號；選擇題附 A-D 選項）


            ## 解答與詳解

            （逐題給正確答案，並用 1-2 句說明為什麼，錯誤選項可簡述陷阱）


            規則：題目難度符合指定年級、敘述清楚無歧義；概念正確不出超綱內容；若規格未指定的細節，採常見合理預設並在開頭一行註明。'
        - id: u16l
          role: user
          text: 請開始出題。
        selected: false
        title: LLM
        type: llm
        vision:
          enabled: false
      height: 88
      id: 16l
      position:
        x: 382
        y: 282
      positionAbsolute:
        x: 382
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        outputs:
        - value_selector:
          - 16l
          - text
          value_type: string
          variable: quiz
        selected: false
        title: 輸出
        type: end
      height: 88
      id: 16e
      position:
        x: 684
        y: 282
      positionAbsolute:
        x: 684
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    viewport:
      x: -288.25
      y: 172.90000000000003
      zoom: 0.85
  rag_pipeline_variables: []
