app:
  description: ''
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: workflow
  name: RRC（ループ）テンプレート
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: agimaster/justwait:0.0.2@1cc2d5e7fbd6a829396c8a51947924f799f9566071bf8499c4e2a9f75ad3330f
    version: null
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: sniffout/rag-ready-converter:0.0.9@0e9ac85e3ce08be13ad6f6316a257ff4f8b15680f98d826b1174b2f44b8d3904
    version: null
kind: app
version: 0.6.0
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:
        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: true
        loop_id: '1775134568279'
        sourceType: loop-start
        targetType: tool
      id: 1775134568279start-source-1775134580125-target
      selected: false
      source: 1775134568279start
      sourceHandle: source
      target: '1775134580125'
      targetHandle: target
      type: custom
      zIndex: 1002
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: loop
        targetType: end
      id: 1775134568279-source-1775143131387-target
      selected: false
      source: '1775134568279'
      sourceHandle: source
      target: '1775143131387'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: start
        targetType: tool
      id: 1775134415970-source-1780448197241-target
      selected: false
      source: '1775134415970'
      sourceHandle: source
      target: '1780448197241'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: tool
        targetType: loop
      id: 1780448197241-source-1775134568279-target
      selected: false
      source: '1780448197241'
      sourceHandle: source
      target: '1775134568279'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: true
        loop_id: '1775134568279'
        sourceType: tool
        targetType: tool
      id: 1775134580125-source-1780448345059-target
      selected: false
      source: '1775134580125'
      sourceHandle: source
      target: '1780448345059'
      targetHandle: target
      type: custom
      zIndex: 1002
    - data:
        isInIteration: false
        isInLoop: true
        loop_id: '1775134568279'
        sourceType: tool
        targetType: assigner
      id: 1780448345059-source-1775142369906-target
      selected: false
      source: '1780448345059'
      sourceHandle: source
      target: '1775142369906'
      targetHandle: target
      type: custom
      zIndex: 1002
    nodes:
    - data:
        selected: false
        title: User Input
        type: start
        variables:
        - allowed_file_extensions: []
          allowed_file_types:
          - document
          - image
          allowed_file_upload_methods:
          - local_file
          - remote_url
          default:
            base64Url: ''
            id: be91aac4-e287-4ec7-9380-80dd38071288
            name: A2.pdf
            originalFile: {}
            progress: 100
            size: 304668
            supportFileType: document
            transferMethod: local_file
            type: application/pdf
            uploadedId: 1809b7bc-2235-40f1-8671-21119a7d9a89
          hint: ''
          label: document
          options: []
          placeholder: ''
          required: true
          type: file
          variable: document
      height: 109
      id: '1775134415970'
      position:
        x: 0
        y: 103
      positionAbsolute:
        x: 0
        y: 103
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        break_conditions:
        - comparison_operator: is
          id: 037f1b7d-a28e-4eec-9ca0-587d7375a386
          value: DONE
          varType: string
          variable_selector:
          - '1775134568279'
          - status
        desc: ループ処理で取得した最終的な変換結果（content）を出力する
        error_handle_mode: terminated
        height: 316
        logical_operator: and
        loop_count: 100
        loop_variables:
        - id: b5d0c537-f2cf-4f1c-9136-e67fb6c14ef7
          label: conversion_id
          value: ''
          value_type: constant
          var_type: string
        - id: eed9fc04-59cd-4ee4-9c1d-2e01786632f4
          label: content
          value: ''
          value_type: constant
          var_type: string
        - id: 5670e809-94ee-4b81-890e-6ce5ae5bc6c1
          label: status
          value: PENDING
          value_type: constant
          var_type: string
        selected: false
        start_node_id: 1775134568279start
        title: Loop
        type: loop
        width: 1130
      height: 316
      id: '1775134568279'
      position:
        x: 684
        y: 0
      positionAbsolute:
        x: 684
        y: 0
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 1130
      zIndex: 1
    - data:
        desc: ''
        isInLoop: true
        selected: false
        title: ''
        type: loop-start
      draggable: false
      height: 48
      id: 1775134568279start
      parentId: '1775134568279'
      position:
        x: 60
        y: 134
      positionAbsolute:
        x: 744
        y: 134
      selectable: false
      sourcePosition: right
      targetPosition: left
      type: custom-loop-start
      width: 44
      zIndex: 1002
    - data:
        desc: 変換処理の完了を待つため、一定時間待機してから次のステータス確認を行う
        isInIteration: false
        isInLoop: true
        is_team_authorization: true
        loop_id: '1775134568279'
        paramSchemas:
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: The number of seconds to wait
            ja_JP: The number of seconds to wait
            pt_BR: The number of seconds to wait
            zh_Hans: 等待的秒数
          label:
            en_US: Seconds
            ja_JP: Seconds
            pt_BR: Seconds
            zh_Hans: 秒数
          llm_description: The number of seconds to pause execution
          max: null
          min: null
          name: seconds
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: number
        params:
          seconds: ''
        plugin_id: agimaster/justwait
        plugin_unique_identifier: agimaster/justwait:0.0.2@1cc2d5e7fbd6a829396c8a51947924f799f9566071bf8499c4e2a9f75ad3330f
        provider_icon: /console/api/workspaces/current/plugin/icon?tenant_id=16e87834-08c2-4fdf-aea5-328683b63f25&filename=a260a47b34be7b6bca428d8e8617d3ad9389cde761097b839c16a4e3ff378fbc.svg
        provider_id: agimaster/justwait/justwait
        provider_name: agimaster/justwait/justwait
        provider_type: builtin
        selected: false
        title: Wait
        tool_configurations: {}
        tool_description: Wait for a specified number of seconds, similar to Python's
          time.sleep() function
        tool_label: Wait
        tool_name: wait
        tool_node_version: '2'
        tool_parameters:
          seconds:
            type: constant
            value: 30
        type: tool
      height: 112
      id: '1775134580125'
      parentId: '1775134568279'
      position:
        x: 184
        y: 102
      positionAbsolute:
        x: 868
        y: 102
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
      zIndex: 1002
    - data:
        desc: 取得した変換結果（conversion_id・status・content）をLoop変数に反映し、次のループ処理に引き継ぐ
        isInIteration: false
        isInLoop: true
        items:
        - input_type: variable
          operation: over-write
          value:
          - '1780448345059'
          - content
          variable_selector:
          - '1775134568279'
          - content
          write_mode: over-write
        - input_type: variable
          operation: over-write
          value:
          - '1780448345059'
          - status
          variable_selector:
          - '1775134568279'
          - status
          write_mode: over-write
        loop_id: '1775134568279'
        selected: false
        title: Variable Assigner
        type: assigner
        version: '2'
      height: 170
      id: '1775142369906'
      parentId: '1775134568279'
      position:
        x: 828
        y: 60
      positionAbsolute:
        x: 1512
        y: 60
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
      zIndex: 1002
    - data:
        outputs:
        - value_selector:
          - '1775134568279'
          - content
          value_type: string
          variable: text
        selected: false
        title: Output
        type: end
      height: 88
      id: '1775143131387'
      position:
        x: 1914
        y: 114
      positionAbsolute:
        x: 1914
        y: 114
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        is_team_authorization: true
        paramSchemas:
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: Upload a file to Rag Ready Converter for conversion.
            ja_JP: 変換対象ファイルをアップロードします。
            pt_BR: Upload a file to Rag Ready Converter for conversion.
            zh_Hans: Upload a file to Rag Ready Converter for conversion.
          label:
            en_US: Upload File
            ja_JP: ファイルアップロード
            pt_BR: Upload File
            zh_Hans: Upload File
          llm_description: ''
          max: null
          min: null
          name: input_file
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: file
        - auto_generate: null
          default: md
          form: form
          human_description:
            en_US: Output format of conversion result.
            ja_JP: 変換結果の出力形式を指定します。
            pt_BR: Output format of conversion result.
            zh_Hans: Output format of conversion result.
          label:
            en_US: Result format
            ja_JP: 出力形式
            pt_BR: Result format
            zh_Hans: Result format
          llm_description: ''
          max: null
          min: null
          name: result_format
          options:
          - icon: ''
            label:
              en_US: Markdown
              ja_JP: Markdown
              pt_BR: Markdown
              zh_Hans: Markdown
            value: md
          - icon: ''
            label:
              en_US: Text
              ja_JP: テキスト
              pt_BR: Text
              zh_Hans: Text
            value: txt
          placeholder: null
          precision: null
          required: false
          scope: null
          template: null
          type: select
        params:
          input_file: ''
          result_format: ''
        plugin_id: sniffout/rag-ready-converter
        plugin_unique_identifier: sniffout/rag-ready-converter:0.0.7@7e203d9ccdce839cfbd032100250ccfecc63c66d48e16c35a96821996e8cde6a
        provider_icon: /console/api/workspaces/current/plugin/icon?tenant_id=ca7fb508-f8bf-4a87-a2a8-e702612483be&filename=b8f6bcc4c47c7e1130de9421c8b096dbcce635b72df7357f2e439de2f0a09ece.svg
        provider_id: sniffout/rag-ready-converter/rag-ready-converter
        provider_name: sniffout/rag-ready-converter/rag-ready-converter
        provider_type: builtin
        selected: false
        title: データ変換
        tool_configurations:
          result_format:
            type: constant
            value: md
        tool_description: ファイルをRag Ready Converterにアップロードして変換を開始します。conversion_id
          をすぐに返すので、変換ステータス/結果取得 でループして status が done になるまで待ちます。
        tool_label: データ変換
        tool_name: rrc_start_conversion
        tool_node_version: '2'
        tool_parameters:
          input_file:
            type: variable
            value:
            - '1775134415970'
            - document
        type: tool
      height: 88
      id: '1780448197241'
      position:
        x: 342
        y: 114
      positionAbsolute:
        x: 342
        y: 114
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        isInIteration: false
        isInLoop: true
        is_team_authorization: true
        loop_id: '1775134568279'
        paramSchemas:
        - auto_generate: null
          default: null
          form: llm
          human_description:
            en_US: The ID returned by Rag Ready Converter Start Conversion tool.
            ja_JP: Rag Ready Converter 変換開始 が返す conversion_id を指定します。
            pt_BR: The ID returned by Rag Ready Converter Start Conversion tool.
            zh_Hans: The ID returned by Rag Ready Converter Start Conversion tool.
          label:
            en_US: Conversion ID
            ja_JP: 変換ID
            pt_BR: Conversion ID
            zh_Hans: Conversion ID
          llm_description: ''
          max: null
          min: null
          name: conversion_id
          options: []
          placeholder: null
          precision: null
          required: true
          scope: null
          template: null
          type: string
        params:
          conversion_id: ''
        plugin_id: sniffout/rag-ready-converter
        plugin_unique_identifier: sniffout/rag-ready-converter:0.0.7@7e203d9ccdce839cfbd032100250ccfecc63c66d48e16c35a96821996e8cde6a
        provider_icon: /console/api/workspaces/current/plugin/icon?tenant_id=ca7fb508-f8bf-4a87-a2a8-e702612483be&filename=b8f6bcc4c47c7e1130de9421c8b096dbcce635b72df7357f2e439de2f0a09ece.svg
        provider_id: sniffout/rag-ready-converter/rag-ready-converter
        provider_name: sniffout/rag-ready-converter/rag-ready-converter
        provider_type: builtin
        selected: false
        title: 変換結果取得
        tool_configurations: {}
        tool_description: conversion_id で変換状態を取得（データ変換後にポーリング）。完了時は結果を返します。処理中は再度呼び出すためのメッセージを返します。
        tool_label: 変換結果取得
        tool_name: rrc_get_conversion_result
        tool_node_version: '2'
        tool_parameters:
          conversion_id:
            type: mixed
            value: '{{#1780448197241.conversion_id#}}'
        type: tool
      height: 52
      id: '1780448345059'
      parentId: '1775134568279'
      position:
        x: 506
        y: 132
      positionAbsolute:
        x: 1190
        y: 132
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
      zIndex: 1002
    viewport:
      x: 117.37741182408169
      y: 164.772127589908
      zoom: 0.6164244599250416
  rag_pipeline_variables: []
