modules_config.json 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. {
  2. "GPT": [
  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": "GPT",
  21. "class": "value",
  22. "id": 1
  23. }
  24. },
  25. {
  26. "class": "value",
  27. "id": 1,
  28. "input": {
  29. "intro": "module_output/GPT_input_output.json",
  30. "value_1_module_prompt":"prompt/value_1.json"
  31. },
  32. "prompt_input":{
  33. "intro":"intro['故事简介']",
  34. "npc":"intro['角色设定']",
  35. "value_system":"intro['数值系统']",
  36. "target":"intro['游戏通关所需条件']",
  37. "output_type":"value_1_module_prompt['output_type']"
  38. },
  39. "prompt": "prompt/value_1.json",
  40. "output": "{class_output_data}",
  41. "next_module": {
  42. "type": "GPT",
  43. "class": "event",
  44. "id": 1
  45. }
  46. },
  47. {
  48. "class": "event",
  49. "id": 1,
  50. "input": {
  51. "user_input": "user_input.json",
  52. "event_module_prompt":"prompt/event_1.json",
  53. "intro": "module_output/GPT_input_output.json",
  54. "value": "module_output/GPT_value_output.json",
  55. "json_declare":"prompt/json_declare.json"
  56. },
  57. "prompt_input":{
  58. "style":"user_input['style']",
  59. "story":"user_input['story']",
  60. "intro":"intro['故事简介']",
  61. "npc":"intro['角色设定']",
  62. "value_system":"intro['数值系统']",
  63. "target":"intro['游戏通关所需条件']",
  64. "output_type":"event_module_prompt['output_type']",
  65. "json_declare":"json_declare['json_declare']",
  66. "value":"value['value']"
  67. },
  68. "prompt": "prompt/event_1.json",
  69. "output": "{class_output_data_append}",
  70. "next_module": {
  71. "type": "GPT",
  72. "class": "value",
  73. "id": 2
  74. }
  75. },
  76. {
  77. "class": "value",
  78. "id": 2,
  79. "input": {
  80. "intro": "module_output/GPT_input_output.json",
  81. "value_1_module_prompt":"prompt/value_1.json",
  82. "value": "module_output/GPT_value_output.json",
  83. "event": "module_output/GPT_event_output.json"
  84. },
  85. "prompt": "prompt/value_2.json",
  86. "prompt_input":{
  87. "intro":"intro['故事简介']",
  88. "npc":"intro['角色设定']",
  89. "value_system":"intro['数值系统']",
  90. "target":"intro['游戏通关所需条件']",
  91. "event":"event['class_output_data']",
  92. "value":"value['value']",
  93. "output_type":"value_1_module_prompt['output_type']"
  94. },
  95. "output": "{class_output_data}",
  96. "next_module": {
  97. "type": "Judgement",
  98. "class": "Boolean",
  99. "id": 1
  100. }
  101. },
  102. {
  103. "class": "event",
  104. "id": 2,
  105. "input": {
  106. "user_input": "user_input.json",
  107. "event_module_prompt":"prompt/event_2.json",
  108. "intro": "module_output/GPT_input_output.json",
  109. "value": "module_output/GPT_value_output.json",
  110. "json_declare":"prompt/json_declare.json",
  111. "event": "module_output/GPT_event_output.json",
  112. "interact":"module_output/Interact_choose_output.json"
  113. },
  114. "prompt_input":{
  115. "style":"user_input['style']",
  116. "story":"user_input['story']",
  117. "intro":"intro['故事简介']",
  118. "npc":"intro['角色设定']",
  119. "value_system":"intro['数值系统']",
  120. "target":"intro['游戏通关所需条件']",
  121. "output_type":"event_module_prompt['output_type']",
  122. "json_declare":"json_declare['json_declare']",
  123. "value":"value['value']",
  124. "event":"event['class_output_data']",
  125. "interact":"interact['class_output_data']"
  126. },
  127. "prompt": "prompt/event_2.json",
  128. "output": "{class_output_data_append}",
  129. "next_module": {
  130. "type": "GPT",
  131. "class": "value",
  132. "id": 2
  133. }
  134. },
  135. {
  136. "class": "event",
  137. "id": 3,
  138. "input": {
  139. "user_input": "user_input.json",
  140. "event_module_prompt":"prompt/event_2.json",
  141. "intro": "module_output/GPT_input_output.json",
  142. "value": "module_output/GPT_value_output.json",
  143. "json_declare":"prompt/json_declare.json",
  144. "event": "module_output/GPT_event_output.json"
  145. },
  146. "prompt_input":{
  147. "style":"user_input['style']",
  148. "story":"user_input['story']",
  149. "intro":"intro['故事简介']",
  150. "npc":"intro['角色设定']",
  151. "value_system":"intro['数值系统']",
  152. "target":"intro['游戏通关所需条件']",
  153. "output_type":"event_module_prompt['output_type']",
  154. "json_declare":"json_declare['json_declare']",
  155. "value":"value['value']",
  156. "event":"event['class_output_data']"
  157. },
  158. "prompt": "prompt/event_2.json",
  159. "output": "{class_output_data_append}",
  160. "next_module": {
  161. "type": "GPT",
  162. "class": "value",
  163. "id": 2
  164. }
  165. }
  166. ],
  167. "Judgement": [
  168. {
  169. "class": "Boolean",
  170. "id": 1,
  171. "input": {
  172. "event": "module_output/GPT_event_output.json"
  173. },
  174. "value":"event['class_output_data'][-1]['是否需要玩家选择下一步操作']",
  175. "if_true_next": {
  176. "type": "Interact",
  177. "class": "choose",
  178. "id": 1
  179. },
  180. "if_false_next": {
  181. "type": "GPT",
  182. "class": "event",
  183. "id": 3
  184. }
  185. }
  186. ],
  187. "Interact": [
  188. {
  189. "class": "choose",
  190. "id": 1,
  191. "input": {
  192. "event": "module_output/GPT_event_output.json"
  193. },
  194. "choices": "event['class_output_data'][-1]['玩家可以做出的选择']",
  195. "output": "{class_output_data_append}",
  196. "next_module": {
  197. "type": "GPT",
  198. "class": "event",
  199. "id": 2
  200. }
  201. }
  202. ]
  203. }