|
@@ -0,0 +1,204 @@
|
|
|
+{
|
|
|
+ "Chat": [
|
|
|
+ {
|
|
|
+ "class": "input",
|
|
|
+ "id": 1,
|
|
|
+ "input": {
|
|
|
+ "user_input": "user_input.json",
|
|
|
+ "input_module_prompt":"prompt/input.json",
|
|
|
+ "json_declare":"prompt/json_declare.json"
|
|
|
+ },
|
|
|
+ "prompt_input":{
|
|
|
+ "style":"user_input['style']",
|
|
|
+ "story":"user_input['story']",
|
|
|
+ "declare":"input_module_prompt['declare']",
|
|
|
+ "json_declare":"json_declare['json_declare']"
|
|
|
+ },
|
|
|
+ "prompt": "prompt/input.json",
|
|
|
+ "output": "{class_output_data}",
|
|
|
+ "next_module": {
|
|
|
+ "type": "Chat",
|
|
|
+ "class": "value",
|
|
|
+ "id": 1
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "class": "value",
|
|
|
+ "id": 1,
|
|
|
+ "input": {
|
|
|
+ "intro": "module_output/Chat_input_output.json",
|
|
|
+ "value_1_module_prompt":"prompt/value_1.json"
|
|
|
+ },
|
|
|
+ "prompt_input":{
|
|
|
+ "intro":"intro['故事简介']",
|
|
|
+ "npc":"intro['角色设定']",
|
|
|
+ "value_system":"intro['数值系统']",
|
|
|
+ "target":"intro['游戏通关所需条件']",
|
|
|
+ "output_type":"value_1_module_prompt['output_type']"
|
|
|
+ },
|
|
|
+ "prompt": "prompt/value_1.json",
|
|
|
+ "output": "{class_output_data}",
|
|
|
+ "next_module": {
|
|
|
+ "type": "Chat",
|
|
|
+ "class": "event",
|
|
|
+ "id": 1
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "class": "event",
|
|
|
+ "id": 1,
|
|
|
+ "input": {
|
|
|
+ "user_input": "user_input.json",
|
|
|
+ "event_module_prompt":"prompt/event_1.json",
|
|
|
+ "intro": "module_output/Chat_input_output.json",
|
|
|
+ "value": "module_output/Chat_value_output.json",
|
|
|
+ "json_declare":"prompt/json_declare.json"
|
|
|
+ },
|
|
|
+ "prompt_input":{
|
|
|
+ "style":"user_input['style']",
|
|
|
+ "story":"user_input['story']",
|
|
|
+ "intro":"intro['故事简介']",
|
|
|
+ "npc":"intro['角色设定']",
|
|
|
+ "value_system":"intro['数值系统']",
|
|
|
+ "target":"intro['游戏通关所需条件']",
|
|
|
+ "output_type":"event_module_prompt['output_type']",
|
|
|
+ "json_declare":"json_declare['json_declare']",
|
|
|
+ "value":"value['value']"
|
|
|
+ },
|
|
|
+ "prompt": "prompt/event_1.json",
|
|
|
+ "output": "{class_output_data_append}",
|
|
|
+ "next_module": {
|
|
|
+ "type": "Chat",
|
|
|
+ "class": "value",
|
|
|
+ "id": 2
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "class": "value",
|
|
|
+ "id": 2,
|
|
|
+ "input": {
|
|
|
+ "intro": "module_output/Chat_input_output.json",
|
|
|
+ "value_1_module_prompt":"prompt/value_1.json",
|
|
|
+ "value": "module_output/Chat_value_output.json",
|
|
|
+ "event": "module_output/Chat_event_output.json"
|
|
|
+ },
|
|
|
+ "prompt": "prompt/value_2.json",
|
|
|
+ "prompt_input":{
|
|
|
+ "intro":"intro['故事简介']",
|
|
|
+ "npc":"intro['角色设定']",
|
|
|
+ "value_system":"intro['数值系统']",
|
|
|
+ "target":"intro['游戏通关所需条件']",
|
|
|
+ "event":"event['class_output_data'][-4:]",
|
|
|
+ "value":"value['value']",
|
|
|
+ "output_type":"value_1_module_prompt['output_type']"
|
|
|
+ },
|
|
|
+ "output": "{class_output_data}",
|
|
|
+ "next_module": {
|
|
|
+ "type": "Judgement",
|
|
|
+ "class": "Boolean",
|
|
|
+ "id": 1
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "class": "event",
|
|
|
+ "id": 2,
|
|
|
+ "input": {
|
|
|
+ "user_input": "user_input.json",
|
|
|
+ "event_module_prompt":"prompt/event_2.json",
|
|
|
+ "intro": "module_output/Chat_input_output.json",
|
|
|
+ "value": "module_output/Chat_value_output.json",
|
|
|
+ "json_declare":"prompt/json_declare.json",
|
|
|
+ "event": "module_output/Chat_event_output.json",
|
|
|
+ "interact":"module_output/Interact_choose_output.json"
|
|
|
+ },
|
|
|
+ "prompt_input":{
|
|
|
+ "style":"user_input['style']",
|
|
|
+ "story":"user_input['story']",
|
|
|
+ "intro":"intro['故事简介']",
|
|
|
+ "npc":"intro['角色设定']",
|
|
|
+ "value_system":"intro['数值系统']",
|
|
|
+ "target":"intro['游戏通关所需条件']",
|
|
|
+ "output_type":"event_module_prompt['output_type']",
|
|
|
+ "json_declare":"json_declare['json_declare']",
|
|
|
+ "value":"value['value']",
|
|
|
+ "event":"event['class_output_data'][-4:]",
|
|
|
+ "interact":"interact['class_output_data'][-1]"
|
|
|
+ },
|
|
|
+ "prompt": "prompt/event_2.json",
|
|
|
+ "output": "{class_output_data_append}",
|
|
|
+ "next_module": {
|
|
|
+ "type": "Chat",
|
|
|
+ "class": "value",
|
|
|
+ "id": 2
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "class": "event",
|
|
|
+ "id": 3,
|
|
|
+ "input": {
|
|
|
+ "user_input": "user_input.json",
|
|
|
+ "event_module_prompt":"prompt/event_3.json",
|
|
|
+ "intro": "module_output/Chat_input_output.json",
|
|
|
+ "value": "module_output/Chat_value_output.json",
|
|
|
+ "json_declare":"prompt/json_declare.json",
|
|
|
+ "event": "module_output/Chat_event_output.json"
|
|
|
+ },
|
|
|
+ "prompt_input":{
|
|
|
+ "style":"user_input['style']",
|
|
|
+ "story":"user_input['story']",
|
|
|
+ "intro":"intro['故事简介']",
|
|
|
+ "npc":"intro['角色设定']",
|
|
|
+ "value_system":"intro['数值系统']",
|
|
|
+ "target":"intro['游戏通关所需条件']",
|
|
|
+ "output_type":"event_module_prompt['output_type']",
|
|
|
+ "json_declare":"json_declare['json_declare']",
|
|
|
+ "value":"value['value']",
|
|
|
+ "event":"event['class_output_data'][-4:]"
|
|
|
+ },
|
|
|
+ "prompt": "prompt/event_3.json",
|
|
|
+ "output": "{class_output_data_append}",
|
|
|
+ "next_module": {
|
|
|
+ "type": "Chat",
|
|
|
+ "class": "value",
|
|
|
+ "id": 2
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "Judgement": [
|
|
|
+ {
|
|
|
+ "class": "Boolean",
|
|
|
+ "id": 1,
|
|
|
+ "input": {
|
|
|
+ "event": "module_output/Chat_event_output.json"
|
|
|
+ },
|
|
|
+ "judgement_input":{},
|
|
|
+ "value":"event['class_output_data'][-1]['是否需要玩家选择下一步操作']",
|
|
|
+ "if_true_next": {
|
|
|
+ "type": "Interact",
|
|
|
+ "class": "choose",
|
|
|
+ "id": 1
|
|
|
+ },
|
|
|
+ "if_false_next": {
|
|
|
+ "type": "Chat",
|
|
|
+ "class": "event",
|
|
|
+ "id": 3
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "Interact": [
|
|
|
+ {
|
|
|
+ "class": "choose",
|
|
|
+ "id": 1,
|
|
|
+ "input": {
|
|
|
+ "event": "module_output/Chat_event_output.json"
|
|
|
+ },
|
|
|
+ "choices": "event['class_output_data'][-1]['玩家可以做出的选择']",
|
|
|
+ "output": "{class_output_data_append}",
|
|
|
+ "next_module": {
|
|
|
+ "type": "Chat",
|
|
|
+ "class": "event",
|
|
|
+ "id": 2
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+}
|