| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 |
- app:
- description: "if sys.query == 'hello':\n print(\"contains 'hello'\" + \"{{#llm.text#}}\"\
- )\nelse:\n print(\"{{#llm.text#}}\")"
- icon: 🤖
- icon_background: '#FFEAD5'
- mode: advanced-chat
- name: test_complex_branch
- use_icon_as_answer_icon: false
- dependencies:
- - current_identifier: null
- type: marketplace
- value:
- marketplace_plugin_unique_identifier: langgenius/openai:0.0.30@1f5ecdef108418a467e54da2dcf5de2cf22b47632abc8633194ac9fb96317ede
- kind: app
- version: 0.3.1
- 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: 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: if-else
- id: 1754336720803-source-1755502773326-target
- source: '1754336720803'
- sourceHandle: source
- target: '1755502773326'
- targetHandle: target
- type: custom
- zIndex: 0
- - data:
- isInLoop: false
- sourceType: start
- targetType: llm
- id: 1754336720803-source-1755502777322-target
- source: '1754336720803'
- sourceHandle: source
- target: '1755502777322'
- targetHandle: target
- type: custom
- zIndex: 0
- - data:
- isInIteration: false
- isInLoop: false
- sourceType: if-else
- targetType: answer
- id: 1755502773326-true-1755502793218-target
- source: '1755502773326'
- sourceHandle: 'true'
- target: '1755502793218'
- targetHandle: target
- type: custom
- zIndex: 0
- - data:
- isInIteration: false
- isInLoop: false
- sourceType: if-else
- targetType: answer
- id: 1755502773326-false-1755502801806-target
- source: '1755502773326'
- sourceHandle: 'false'
- target: '1755502801806'
- targetHandle: target
- type: custom
- zIndex: 0
- - data:
- isInLoop: false
- sourceType: llm
- targetType: answer
- id: 1755502777322-source-1755502801806-target
- source: '1755502777322'
- sourceHandle: source
- target: '1755502801806'
- targetHandle: target
- type: custom
- zIndex: 0
- nodes:
- - data:
- desc: ''
- selected: false
- title: Start
- type: start
- variables: []
- height: 54
- id: '1754336720803'
- position:
- x: 30
- y: 252.5
- positionAbsolute:
- x: 30
- y: 252.5
- selected: false
- sourcePosition: right
- targetPosition: left
- type: custom
- width: 244
- - data:
- cases:
- - case_id: 'true'
- conditions:
- - comparison_operator: contains
- id: b3737f91-20e7-491e-92a7-54823d5edd92
- value: hello
- varType: string
- variable_selector:
- - sys
- - query
- id: 'true'
- logical_operator: and
- desc: ''
- selected: false
- title: IF/ELSE
- type: if-else
- height: 126
- id: '1755502773326'
- position:
- x: 334
- y: 252.5
- positionAbsolute:
- x: 334
- y: 252.5
- selected: false
- sourcePosition: right
- targetPosition: left
- type: custom
- width: 244
- - data:
- context:
- enabled: false
- variable_selector: []
- desc: ''
- memory:
- query_prompt_template: '{{#sys.query#}}
-
-
- {{#sys.files#}}'
- role_prefix:
- assistant: ''
- user: ''
- window:
- enabled: false
- size: 50
- model:
- completion_params:
- temperature: 0.7
- mode: chat
- name: chatgpt-4o-latest
- provider: langgenius/openai/openai
- prompt_template:
- - role: system
- text: ''
- selected: false
- title: LLM
- type: llm
- variables: []
- vision:
- enabled: false
- height: 90
- id: '1755502777322'
- position:
- x: 334
- y: 483.6689693406501
- positionAbsolute:
- x: 334
- y: 483.6689693406501
- selected: false
- sourcePosition: right
- targetPosition: left
- type: custom
- width: 244
- - data:
- answer: contains 'hello'
- desc: ''
- selected: false
- title: Answer
- type: answer
- variables: []
- height: 102
- id: '1755502793218'
- position:
- x: 694.1985482199078
- y: 161.30990288845152
- positionAbsolute:
- x: 694.1985482199078
- y: 161.30990288845152
- selected: false
- sourcePosition: right
- targetPosition: left
- type: custom
- width: 244
- - data:
- answer: '{{#1755502777322.text#}}'
- desc: ''
- selected: false
- title: Answer 2
- type: answer
- variables: []
- height: 105
- id: '1755502801806'
- position:
- x: 694.1985482199078
- y: 410.4655994626136
- positionAbsolute:
- x: 694.1985482199078
- y: 410.4655994626136
- selected: true
- sourcePosition: right
- targetPosition: left
- type: custom
- width: 244
- viewport:
- x: 101.25550613189648
- y: -63.115847717334475
- zoom: 0.9430848603527678
|