modules_config.json 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. {
  2. "Chat": [
  3. {
  4. "class": "input",
  5. "id": 1,
  6. "input": {
  7. "user_input": "user_input.json",
  8. "input_module_prompt":"prompt/input.json",
  9. "json_declare":"prompt/json_declare.json"
  10. },
  11. "prompt_input":{
  12. "style":"user_input['style']",
  13. "story":"user_input['story']",
  14. "declare":"input_module_prompt['declare']",
  15. "json_declare":"json_declare['json_declare']"
  16. },
  17. "prompt": "prompt/input.json",
  18. "output": "{class_output_data}",
  19. "next_module": {
  20. "type": "Chat",
  21. "class": "outline",
  22. "id": 1
  23. }
  24. },
  25. {
  26. "class": "outline",
  27. "id": 1,
  28. "input": {
  29. "user_input": "user_input.json",
  30. "intro": "module_output/Chat_input_output.json",
  31. "outline_module_prompt":"prompt/outline.json"
  32. },
  33. "prompt_input":{
  34. "style":"user_input['style']",
  35. "story":"user_input['story']",
  36. "intro":"intro['故事简介']",
  37. "npc":"intro['角色设定']",
  38. "value_system":"intro['数值系统']",
  39. "target":"intro['游戏通关所需条件']",
  40. "output_type":"outline_module_prompt['output_type']"
  41. },
  42. "prompt": "prompt/outline.json",
  43. "output": "{class_output_data}",
  44. "next_module": {
  45. "type": "Chat",
  46. "class": "value",
  47. "id": 1
  48. }
  49. },
  50. {
  51. "class": "value",
  52. "id": 1,
  53. "input": {
  54. "intro": "module_output/Chat_input_output.json",
  55. "value_1_module_prompt":"prompt/value_1.json"
  56. },
  57. "prompt_input":{
  58. "intro":"intro['故事简介']",
  59. "npc":"intro['角色设定']",
  60. "value_system":"intro['数值系统']",
  61. "target":"intro['游戏通关所需条件']",
  62. "output_type":"value_1_module_prompt['output_type']"
  63. },
  64. "prompt": "prompt/value_1.json",
  65. "output": "{class_output_data}",
  66. "next_module": {
  67. "type": "Chat",
  68. "class": "event",
  69. "id": 1
  70. }
  71. },
  72. {
  73. "class": "event",
  74. "id": 1,
  75. "input": {
  76. "user_input": "user_input.json",
  77. "event_module_prompt":"prompt/event_1.json",
  78. "intro": "module_output/Chat_input_output.json",
  79. "value": "module_output/Chat_value_output.json",
  80. "outline":"module_output/Chat_outline_output.json",
  81. "json_declare":"prompt/json_declare.json"
  82. },
  83. "prompt_input":{
  84. "style":"user_input['style']",
  85. "story":"user_input['story']",
  86. "intro":"intro['故事简介']",
  87. "npc":"intro['角色设定']",
  88. "value_system":"intro['数值系统']",
  89. "target":"intro['游戏通关所需条件']",
  90. "outline":"outline['outline']",
  91. "output_type":"event_module_prompt['output_type']",
  92. "json_declare":"json_declare['json_declare']",
  93. "value":"value['value']"
  94. },
  95. "prompt": "prompt/event_1.json",
  96. "output": "{class_output_data_append}",
  97. "next_module": {
  98. "type": "Chat",
  99. "class": "value",
  100. "id": 2
  101. }
  102. },
  103. {
  104. "class": "value",
  105. "id": 2,
  106. "input": {
  107. "intro": "module_output/Chat_input_output.json",
  108. "value_1_module_prompt":"prompt/value_1.json",
  109. "value": "module_output/Chat_value_output.json",
  110. "event": "module_output/Chat_event_output.json"
  111. },
  112. "prompt": "prompt/value_2.json",
  113. "prompt_input":{
  114. "intro":"intro['故事简介']",
  115. "npc":"intro['角色设定']",
  116. "value_system":"intro['数值系统']",
  117. "target":"intro['游戏通关所需条件']",
  118. "event":"event['class_output_data'][-4:]",
  119. "value":"value['value']",
  120. "output_type":"value_1_module_prompt['output_type']"
  121. },
  122. "output": "{class_output_data}",
  123. "next_module": {
  124. "type": "Judgement",
  125. "class": "Boolean",
  126. "id": 1
  127. }
  128. },
  129. {
  130. "class": "event",
  131. "id": 2,
  132. "input": {
  133. "user_input": "user_input.json",
  134. "event_module_prompt":"prompt/event_2.json",
  135. "intro": "module_output/Chat_input_output.json",
  136. "value": "module_output/Chat_value_output.json",
  137. "json_declare":"prompt/json_declare.json",
  138. "event": "module_output/Chat_event_output.json",
  139. "outline":"module_output/Chat_outline_output.json",
  140. "interact":"module_output/Interact_choose_output.json"
  141. },
  142. "prompt_input":{
  143. "style":"user_input['style']",
  144. "story":"user_input['story']",
  145. "intro":"intro['故事简介']",
  146. "npc":"intro['角色设定']",
  147. "value_system":"intro['数值系统']",
  148. "target":"intro['游戏通关所需条件']",
  149. "outline":"outline['outline']",
  150. "output_type":"event_module_prompt['output_type']",
  151. "json_declare":"json_declare['json_declare']",
  152. "value":"value['value']",
  153. "event":"event['class_output_data'][-4:]",
  154. "interact":"interact['class_output_data'][-1]"
  155. },
  156. "prompt": "prompt/event_2.json",
  157. "output": "{class_output_data_append}",
  158. "next_module": {
  159. "type": "Judgement",
  160. "class": "Boolean",
  161. "id": 2
  162. }
  163. },
  164. {
  165. "class": "event",
  166. "id": 3,
  167. "input": {
  168. "user_input": "user_input.json",
  169. "event_module_prompt":"prompt/event_3.json",
  170. "intro": "module_output/Chat_input_output.json",
  171. "value": "module_output/Chat_value_output.json",
  172. "json_declare":"prompt/json_declare.json",
  173. "event": "module_output/Chat_event_output.json",
  174. "outline":"module_output/Chat_outline_output.json"
  175. },
  176. "prompt_input":{
  177. "style":"user_input['style']",
  178. "story":"user_input['story']",
  179. "intro":"intro['故事简介']",
  180. "npc":"intro['角色设定']",
  181. "value_system":"intro['数值系统']",
  182. "target":"intro['游戏通关所需条件']",
  183. "outline":"outline['outline']",
  184. "output_type":"event_module_prompt['output_type']",
  185. "json_declare":"json_declare['json_declare']",
  186. "value":"value['value']",
  187. "event":"event['class_output_data'][-4:]"
  188. },
  189. "prompt": "prompt/event_3.json",
  190. "output": "{class_output_data_append}",
  191. "next_module": {
  192. "type": "Judgement",
  193. "class": "Boolean",
  194. "id": 2
  195. }
  196. }
  197. ],
  198. "Judgement": [
  199. {
  200. "class": "Boolean",
  201. "id": 1,
  202. "input": {
  203. "event": "module_output/Chat_event_output.json"
  204. },
  205. "judgement_input":{
  206. "last_event":"event['class_output_data'][-1]"
  207. },
  208. "value":"last_event['是否需要玩家选择下一步操作']",
  209. "if_true_next": {
  210. "type": "Interact",
  211. "class": "choose",
  212. "id": 1
  213. },
  214. "if_false_next": {
  215. "type": "Chat",
  216. "class": "event",
  217. "id": 3
  218. }
  219. },
  220. {
  221. "class": "Boolean",
  222. "id": 2,
  223. "input": {
  224. "event": "module_output/Chat_event_output.json"
  225. },
  226. "judgement_input":{
  227. "last_event":"event['class_output_data'][-1]"
  228. },
  229. "value":"last_event['游戏是否结束']",
  230. "if_true_next": {"type":"End"},
  231. "if_false_next": {
  232. "type": "Chat",
  233. "class": "value",
  234. "id": 2
  235. }
  236. }
  237. ],
  238. "Interact": [
  239. {
  240. "class": "choose",
  241. "id": 1,
  242. "input": {
  243. "event": "module_output/Chat_event_output.json"
  244. },
  245. "choices": "event['class_output_data'][-1]['玩家可以做出的选择']",
  246. "output": "{class_output_data_append}",
  247. "next_module": {
  248. "type": "Chat",
  249. "class": "event",
  250. "id": 2
  251. }
  252. }
  253. ]
  254. }