You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_complex_branch.yml 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. app:
  2. description: "if sys.query == 'hello':\n print(\"contains 'hello'\" + \"{{#llm.text#}}\"\
  3. )\nelse:\n print(\"{{#llm.text#}}\")"
  4. icon: 🤖
  5. icon_background: '#FFEAD5'
  6. mode: advanced-chat
  7. name: test_complex_branch
  8. use_icon_as_answer_icon: false
  9. dependencies:
  10. - current_identifier: null
  11. type: marketplace
  12. value:
  13. marketplace_plugin_unique_identifier: langgenius/openai:0.0.30@1f5ecdef108418a467e54da2dcf5de2cf22b47632abc8633194ac9fb96317ede
  14. kind: app
  15. version: 0.3.1
  16. workflow:
  17. conversation_variables: []
  18. environment_variables: []
  19. features:
  20. file_upload:
  21. allowed_file_extensions:
  22. - .JPG
  23. - .JPEG
  24. - .PNG
  25. - .GIF
  26. - .WEBP
  27. - .SVG
  28. allowed_file_types:
  29. - image
  30. allowed_file_upload_methods:
  31. - local_file
  32. - remote_url
  33. enabled: false
  34. fileUploadConfig:
  35. audio_file_size_limit: 50
  36. batch_count_limit: 5
  37. file_size_limit: 15
  38. image_file_size_limit: 10
  39. video_file_size_limit: 100
  40. workflow_file_upload_limit: 10
  41. image:
  42. enabled: false
  43. number_limits: 3
  44. transfer_methods:
  45. - local_file
  46. - remote_url
  47. number_limits: 3
  48. opening_statement: ''
  49. retriever_resource:
  50. enabled: true
  51. sensitive_word_avoidance:
  52. enabled: false
  53. speech_to_text:
  54. enabled: false
  55. suggested_questions: []
  56. suggested_questions_after_answer:
  57. enabled: false
  58. text_to_speech:
  59. enabled: false
  60. language: ''
  61. voice: ''
  62. graph:
  63. edges:
  64. - data:
  65. isInIteration: false
  66. isInLoop: false
  67. sourceType: start
  68. targetType: if-else
  69. id: 1754336720803-source-1755502773326-target
  70. source: '1754336720803'
  71. sourceHandle: source
  72. target: '1755502773326'
  73. targetHandle: target
  74. type: custom
  75. zIndex: 0
  76. - data:
  77. isInLoop: false
  78. sourceType: start
  79. targetType: llm
  80. id: 1754336720803-source-1755502777322-target
  81. source: '1754336720803'
  82. sourceHandle: source
  83. target: '1755502777322'
  84. targetHandle: target
  85. type: custom
  86. zIndex: 0
  87. - data:
  88. isInIteration: false
  89. isInLoop: false
  90. sourceType: if-else
  91. targetType: answer
  92. id: 1755502773326-true-1755502793218-target
  93. source: '1755502773326'
  94. sourceHandle: 'true'
  95. target: '1755502793218'
  96. targetHandle: target
  97. type: custom
  98. zIndex: 0
  99. - data:
  100. isInIteration: false
  101. isInLoop: false
  102. sourceType: if-else
  103. targetType: answer
  104. id: 1755502773326-false-1755502801806-target
  105. source: '1755502773326'
  106. sourceHandle: 'false'
  107. target: '1755502801806'
  108. targetHandle: target
  109. type: custom
  110. zIndex: 0
  111. - data:
  112. isInLoop: false
  113. sourceType: llm
  114. targetType: answer
  115. id: 1755502777322-source-1755502801806-target
  116. source: '1755502777322'
  117. sourceHandle: source
  118. target: '1755502801806'
  119. targetHandle: target
  120. type: custom
  121. zIndex: 0
  122. nodes:
  123. - data:
  124. desc: ''
  125. selected: false
  126. title: Start
  127. type: start
  128. variables: []
  129. height: 54
  130. id: '1754336720803'
  131. position:
  132. x: 30
  133. y: 252.5
  134. positionAbsolute:
  135. x: 30
  136. y: 252.5
  137. selected: false
  138. sourcePosition: right
  139. targetPosition: left
  140. type: custom
  141. width: 244
  142. - data:
  143. cases:
  144. - case_id: 'true'
  145. conditions:
  146. - comparison_operator: contains
  147. id: b3737f91-20e7-491e-92a7-54823d5edd92
  148. value: hello
  149. varType: string
  150. variable_selector:
  151. - sys
  152. - query
  153. id: 'true'
  154. logical_operator: and
  155. desc: ''
  156. selected: false
  157. title: IF/ELSE
  158. type: if-else
  159. height: 126
  160. id: '1755502773326'
  161. position:
  162. x: 334
  163. y: 252.5
  164. positionAbsolute:
  165. x: 334
  166. y: 252.5
  167. selected: false
  168. sourcePosition: right
  169. targetPosition: left
  170. type: custom
  171. width: 244
  172. - data:
  173. context:
  174. enabled: false
  175. variable_selector: []
  176. desc: ''
  177. memory:
  178. query_prompt_template: '{{#sys.query#}}
  179. {{#sys.files#}}'
  180. role_prefix:
  181. assistant: ''
  182. user: ''
  183. window:
  184. enabled: false
  185. size: 50
  186. model:
  187. completion_params:
  188. temperature: 0.7
  189. mode: chat
  190. name: chatgpt-4o-latest
  191. provider: langgenius/openai/openai
  192. prompt_template:
  193. - role: system
  194. text: ''
  195. selected: false
  196. title: LLM
  197. type: llm
  198. variables: []
  199. vision:
  200. enabled: false
  201. height: 90
  202. id: '1755502777322'
  203. position:
  204. x: 334
  205. y: 483.6689693406501
  206. positionAbsolute:
  207. x: 334
  208. y: 483.6689693406501
  209. selected: false
  210. sourcePosition: right
  211. targetPosition: left
  212. type: custom
  213. width: 244
  214. - data:
  215. answer: contains 'hello'
  216. desc: ''
  217. selected: false
  218. title: Answer
  219. type: answer
  220. variables: []
  221. height: 102
  222. id: '1755502793218'
  223. position:
  224. x: 694.1985482199078
  225. y: 161.30990288845152
  226. positionAbsolute:
  227. x: 694.1985482199078
  228. y: 161.30990288845152
  229. selected: false
  230. sourcePosition: right
  231. targetPosition: left
  232. type: custom
  233. width: 244
  234. - data:
  235. answer: '{{#1755502777322.text#}}'
  236. desc: ''
  237. selected: false
  238. title: Answer 2
  239. type: answer
  240. variables: []
  241. height: 105
  242. id: '1755502801806'
  243. position:
  244. x: 694.1985482199078
  245. y: 410.4655994626136
  246. positionAbsolute:
  247. x: 694.1985482199078
  248. y: 410.4655994626136
  249. selected: true
  250. sourcePosition: right
  251. targetPosition: left
  252. type: custom
  253. width: 244
  254. viewport:
  255. x: 101.25550613189648
  256. y: -63.115847717334475
  257. zoom: 0.9430848603527678