Shellmiao 1 rok pred
rodič
commit
720cfde038
39 zmenil súbory, kde vykonal 0 pridanie a 727 odobranie
  1. 0 0
      config/three_kingdoms/module_output/Ghat_event_output.json
  2. 0 0
      config/three_kingdoms/module_output/Ghat_input_output.json
  3. 0 0
      config/three_kingdoms/module_output/Ghat_value_output.json
  4. 0 0
      config/three_kingdoms/module_output/Interact_choose_output.json
  5. 0 0
      config/three_kingdoms/modules_config.json
  6. 0 0
      config/three_kingdoms/prompt/event_1.json
  7. 0 0
      config/three_kingdoms/prompt/event_2.json
  8. 0 0
      config/three_kingdoms/prompt/event_3.json
  9. 0 0
      config/three_kingdoms/prompt/input.json
  10. 0 0
      config/three_kingdoms/prompt/json_declare.json
  11. 0 0
      config/three_kingdoms/prompt/value_1.json
  12. 0 0
      config/three_kingdoms/prompt/value_2.json
  13. 0 0
      config/three_kingdoms/user_input.json
  14. 0 108
      config/three_kingdoms_debug/module_output/Ghat_event_output.json
  15. 0 48
      config/three_kingdoms_debug/module_output/Ghat_input_output.json
  16. 0 8
      config/three_kingdoms_debug/module_output/Ghat_value_output.json
  17. 0 5
      config/three_kingdoms_debug/module_output/Interact_choose_output.json
  18. 0 203
      config/three_kingdoms_debug/modules_config.json
  19. 0 5
      config/three_kingdoms_debug/prompt/event_1.json
  20. 0 5
      config/three_kingdoms_debug/prompt/event_2.json
  21. 0 5
      config/three_kingdoms_debug/prompt/event_3.json
  22. 0 3
      config/three_kingdoms_debug/prompt/json_declare.json
  23. 0 5
      config/three_kingdoms_debug/prompt/value_1.json
  24. 0 5
      config/three_kingdoms_product/prompt/input.json
  25. 0 5
      config/three_kingdoms_product/prompt/value_2.json
  26. 0 4
      config/three_kingdoms_product/user_input.json
  27. 0 22
      config/three_kingdoms_test/module_output/Ghat_event_output.json
  28. 0 43
      config/three_kingdoms_test/module_output/Ghat_input_output.json
  29. 0 7
      config/three_kingdoms_test/module_output/Ghat_value_output.json
  30. 0 5
      config/three_kingdoms_test/module_output/Interact_choose_output.json
  31. 0 203
      config/three_kingdoms_test/modules_config.json
  32. 0 5
      config/three_kingdoms_test/prompt/event_1.json
  33. 0 6
      config/three_kingdoms_test/prompt/event_2.json
  34. 0 5
      config/three_kingdoms_test/prompt/event_3.json
  35. 0 5
      config/three_kingdoms_test/prompt/input.json
  36. 0 3
      config/three_kingdoms_test/prompt/json_declare.json
  37. 0 5
      config/three_kingdoms_test/prompt/value_1.json
  38. 0 5
      config/three_kingdoms_test/prompt/value_2.json
  39. 0 4
      config/three_kingdoms_test/user_input.json

+ 0 - 0
config/three_kingdoms_product/module_output/Ghat_event_output.json → config/three_kingdoms/module_output/Ghat_event_output.json


+ 0 - 0
config/three_kingdoms_product/module_output/Ghat_input_output.json → config/three_kingdoms/module_output/Ghat_input_output.json


+ 0 - 0
config/three_kingdoms_product/module_output/Ghat_value_output.json → config/three_kingdoms/module_output/Ghat_value_output.json


+ 0 - 0
config/three_kingdoms_product/module_output/Interact_choose_output.json → config/three_kingdoms/module_output/Interact_choose_output.json


+ 0 - 0
config/three_kingdoms_product/modules_config.json → config/three_kingdoms/modules_config.json


+ 0 - 0
config/three_kingdoms_product/prompt/event_1.json → config/three_kingdoms/prompt/event_1.json


+ 0 - 0
config/three_kingdoms_product/prompt/event_2.json → config/three_kingdoms/prompt/event_2.json


+ 0 - 0
config/three_kingdoms_product/prompt/event_3.json → config/three_kingdoms/prompt/event_3.json


+ 0 - 0
config/three_kingdoms_debug/prompt/input.json → config/three_kingdoms/prompt/input.json


+ 0 - 0
config/three_kingdoms_product/prompt/json_declare.json → config/three_kingdoms/prompt/json_declare.json


+ 0 - 0
config/three_kingdoms_product/prompt/value_1.json → config/three_kingdoms/prompt/value_1.json


+ 0 - 0
config/three_kingdoms_debug/prompt/value_2.json → config/three_kingdoms/prompt/value_2.json


+ 0 - 0
config/three_kingdoms_debug/user_input.json → config/three_kingdoms/user_input.json


+ 0 - 108
config/three_kingdoms_debug/module_output/Ghat_event_output.json

@@ -1,108 +0,0 @@
-{
-    "class_output_data": [
-        {
-            "事件": "你和其他黄巾军士兵一起在山林中行进,突然听到前方传来了阵阵喊杀声,你们赶紧上前查看,发现是一支曹军正在袭击一支吴军,你们决定...",
-            "是否需要玩家选择下一步操作": true,
-            "玩家可以做出的选择": [
-                "前去救援吴军",
-                "趁机抢夺曹军的物资",
-                "躲避战斗,绕路前行"
-            ],
-            "当前场景角色": [
-                {
-                    "名字": "摸鱼",
-                    "特征": "黄巾军士兵,墨家子弟,年龄16岁"
-                },
-                {
-                    "名字": "张角",
-                    "特征": "黄巾军领袖,号称“太平道教主”"
-                },
-                {
-                    "名字": "刘备",
-                    "特征": "蜀汉开国皇帝,仁德之君"
-                },
-                {
-                    "名字": "曹操",
-                    "特征": "魏国开国皇帝,奸诈狡猾"
-                },
-                {
-                    "名字": "孙权",
-                    "特征": "吴国开国皇帝,英明果断"
-                }
-            ],
-            "当前场景数值系统": [
-                {
-                    "名称": "武力",
-                    "范围": "0-100",
-                    "含义": "影响战斗力和攻击力"
-                },
-                {
-                    "名称": "智力",
-                    "范围": "0-100",
-                    "含义": "影响策略和谋略"
-                },
-                {
-                    "名称": "魅力",
-                    "范围": "0-100",
-                    "含义": "影响交际和人际关系"
-                },
-                {
-                    "名称": "体力",
-                    "范围": "0-100",
-                    "含义": "影响生命值和耐力"
-                }
-            ],
-            "游戏是否结束": false
-        },
-        {
-            "事件": "你和其他黄巾军士兵一起在山林中行进,突然听到前方传来了阵阵喊杀声,你们赶紧上前查看,发现是一支曹军正在袭击一支吴军,你们决定趁机抢夺曹军的物资。你们成功地抢到了一些粮食和草药,但是在离开的时候被曹军发现了,你们只好迅速逃跑。",
-            "是否需要玩家选择下一步操作": false,
-            "玩家可以做出的选择": [],
-            "当前场景角色": [
-                {
-                    "名字": "摸鱼",
-                    "特征": "黄巾军士兵,墨家子弟,年龄16岁"
-                },
-                {
-                    "名字": "张角",
-                    "特征": "黄巾军领袖,号称“太平道教主”"
-                },
-                {
-                    "名字": "刘备",
-                    "特征": "蜀汉开国皇帝,仁德之君"
-                },
-                {
-                    "名字": "曹操",
-                    "特征": "魏国开国皇帝,奸诈狡猾"
-                },
-                {
-                    "名字": "孙权",
-                    "特征": "吴国开国皇帝,英明果断"
-                }
-            ],
-            "当前场景数值系统": [
-                {
-                    "名称": "武力",
-                    "范围": "0-100",
-                    "含义": "影响战斗力和攻击力"
-                },
-                {
-                    "名称": "智力",
-                    "范围": "0-100",
-                    "含义": "影响策略和谋略"
-                },
-                {
-                    "名称": "魅力",
-                    "范围": "0-100",
-                    "含义": "影响交际和人际关系"
-                },
-                {
-                    "名称": "体力",
-                    "范围": "0-100",
-                    "含义": "影响生命值和耐力"
-                }
-            ],
-            "游戏是否结束": false
-        }
-    ]
-}

+ 0 - 48
config/three_kingdoms_debug/module_output/Ghat_input_output.json

@@ -1,48 +0,0 @@
-{
-    "故事简介": "在混乱的三国时代,你扮演一名黄巾军士兵,名叫摸鱼,是一名墨家子弟。你将经历一系列搞笑的冒险,成为一名真正的英雄。",
-    "角色设定": [
-        {
-            "名字": "摸鱼",
-            "特征": "黄巾军士兵,墨家子弟,年龄16岁"
-        },
-        {
-            "名字": "张角",
-            "特征": "黄巾军领袖,号称“太平道教主”"
-        },
-        {
-            "名字": "刘备",
-            "特征": "蜀汉开国皇帝,仁德之君"
-        },
-        {
-            "名字": "曹操",
-            "特征": "魏国开国皇帝,奸诈狡猾"
-        },
-        {
-            "名字": "孙权",
-            "特征": "吴国开国皇帝,英明果断"
-        }
-    ],
-    "数值系统": [
-        {
-            "名称": "武力",
-            "范围": "0-100",
-            "含义": "影响战斗力和攻击力"
-        },
-        {
-            "名称": "智力",
-            "范围": "0-100",
-            "含义": "影响策略和谋略"
-        },
-        {
-            "名称": "魅力",
-            "范围": "0-100",
-            "含义": "影响交际和人际关系"
-        },
-        {
-            "名称": "体力",
-            "范围": "0-100",
-            "含义": "影响生命值和耐力"
-        }
-    ],
-    "游戏通关所需条件": "成为三国时代的一名真正英雄,统一天下,实现太平盛世。"
-}

+ 0 - 8
config/three_kingdoms_debug/module_output/Ghat_value_output.json

@@ -1,8 +0,0 @@
-{
-    "value": {
-        "武力": 70,
-        "智力": 35,
-        "魅力": 25,
-        "体力": 60
-    }
-}

+ 0 - 5
config/three_kingdoms_debug/module_output/Interact_choose_output.json

@@ -1,5 +0,0 @@
-{
-    "class_output_data": [
-        "趁机抢夺曹军的物资"
-    ]
-}

+ 0 - 203
config/three_kingdoms_debug/modules_config.json

@@ -1,203 +0,0 @@
-{
-    "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']",
-                "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']",
-                "interact":"interact['class_output_data']"
-            },
-            "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_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"
-            },
-            "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']"
-            },
-            "prompt": "prompt/event_2.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"
-            },
-            "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
-            }
-        }
-    ]
-}

+ 0 - 5
config/three_kingdoms_debug/prompt/event_1.json

@@ -1,5 +0,0 @@
-{
-    "output_type": "{\"事件\": \"字符串格式,这是展示给玩家的,讲述了玩家当前遇到的事件,例如“0岁,你出生于颍川一个富贵之家...”。出现新的人物时需要在事件中对新的人物进行描写,并在当前角色设定中添加新的角色\",\"是否需要玩家选择下一步操作\": \"Boolean格式\",\"玩家可以做出的选择\": \"数组格式,玩家可以做出的有限个选择,如果不需要玩家做选择则返回空数组\",\"当前场景角色\": \"数组格式,游戏中的npc角色设定,包括角色的名字、特征\",\"当前场景数值系统\": \"数组格式,数值系统包括游戏中的数值名称、数值范围、数值含义,例如装备系统、官职系统等;允许由于故事的发展而添加新的数值\",\"游戏是否结束\": \"Boolean格式,游戏是否结束\"}",
-    "system_template": "我正在生成一个文字冒险游戏,我将输入游戏当前信息与当前游戏的风格、简介,需要你根据游戏当前信息生成玩家接下来遇到的下一个事件,以如下格式输出JSON:{output_type},严格按照格式输出,不要输出除了json字符串之外的其他内容",
-    "human_template": "游戏风格:{style};游戏参考:{story};故事简介:{intro};角色设定:{npc};数值系统:{value_system};当前数值:{value},你的json输出为{json_declare}:"
-}

+ 0 - 5
config/three_kingdoms_debug/prompt/event_2.json

@@ -1,5 +0,0 @@
-{
-    "output_type": "{\"事件\": \"字符串格式,这是展示给玩家的,讲述了玩家当前遇到的事件,例如“0岁,你出生于颍川一个富贵之家...”。出现新的人物时需要在事件中对新的人物进行描写,并在当前角色设定中添加新的角色\",\"是否需要玩家选择下一步操作\": \"Boolean格式\",\"玩家可以做出的选择\": \"数组格式,玩家可以做出的有限个选择,如果不需要玩家做选择则返回空数组\",\"当前场景角色\": \"数组格式,游戏中的npc角色设定,包括角色的名字、特征\",\"当前场景数值系统\": \"数组格式,数值系统包括游戏中的数值名称、数值范围、数值含义,例如装备系统、官职系统等;允许由于故事的发展而添加新的数值\",\"游戏是否结束\": \"Boolean格式,游戏是否结束\"}",
-    "system_template": "我正在生成一个文字冒险游戏,我将输入游戏当前信息与当前游戏的风格、简介,需要你根据游戏当前信息生成玩家接下来遇到的下一个事件,以如下格式输出JSON:{output_type},严格按照格式输出,不要输出除了json字符串之外的其他内容",
-    "human_template": "游戏风格:{style};游戏参考:{story};故事简介:{intro};角色设定:{npc};数值系统:{value_system};当前数值:{value};游戏发生的事件:{event};玩家对最后一次事件做出的选择:{interact};你的json输出为{json_declare}:"
-}

+ 0 - 5
config/three_kingdoms_debug/prompt/event_3.json

@@ -1,5 +0,0 @@
-{
-    "output_type": "{\"事件\": \"字符串格式,这是展示给玩家的,讲述了玩家当前遇到的事件,例如“0岁,你出生于颍川一个富贵之家...”。出现新的人物时需要在事件中对新的人物进行描写,并在当前角色设定中添加新的角色\",\"是否需要玩家选择下一步操作\": \"Boolean格式\",\"玩家可以做出的选择\": \"数组格式,玩家可以做出的有限个选择,如果不需要玩家做选择则返回空数组\",\"当前场景角色\": \"数组格式,游戏中的npc角色设定,包括角色的名字、特征\",\"当前场景数值系统\": \"数组格式,数值系统包括游戏中的数值名称、数值范围、数值含义,例如装备系统、官职系统等;允许由于故事的发展而添加新的数值\",\"游戏是否结束\": \"Boolean格式,游戏是否结束\"}",
-    "system_template": "我正在生成一个文字冒险游戏,我将输入游戏当前信息与当前游戏的风格、简介,需要你根据游戏当前信息生成玩家接下来遇到的下一个事件,以如下格式输出JSON:{output_type},严格按照格式输出,不要输出除了json字符串之外的其他内容",
-    "human_template": "游戏风格:{style};游戏参考:{story};故事简介:{intro};角色设定:{npc};数值系统:{value_system};当前数值:{value};游戏发生的事件:{event};你的json输出为{json_declare}:"
-}

+ 0 - 3
config/three_kingdoms_debug/prompt/json_declare.json

@@ -1,3 +0,0 @@
-{
-    "json_declare":"(示例:{\"key\":\"value\"})"
-}

+ 0 - 5
config/three_kingdoms_debug/prompt/value_1.json

@@ -1,5 +0,0 @@
-{
-    "output_type": "{\"value\":{\"数值名称\":\"数值大小\"}",
-    "system_template": "输出JSON",
-    "human_template": "我正在生成一个文字游戏,故事简介:{intro};角色设定:{npc};数值系统:{value_system};游戏通关所需条件:{target};需要你根据游戏当前信息对玩家数值进行初始化,不用输出除了value之外的其他内容,你的JSON输出为{output_type}:"
-}

+ 0 - 5
config/three_kingdoms_product/prompt/input.json

@@ -1,5 +0,0 @@
-{
-    "declare":"{'故事简介': '字符串格式,这是展示给玩家的故事简介与游戏目标','角色设定': '数组格式,游戏中的npc角色设定,包括角色的名字、特征;不包含玩家所操控的角色','数值系统': '数组格式,数值系统包括游戏中的数值名称、数值范围、数值含义,例如装备系统、官职系统等','游戏通关所需条件': '字符串格式,游戏结束的条件,例如“成为了诸侯王'}",
-    "system_template": "以如下格式输出可以被json.loads读取的JSON字符串:{declare}",
-    "human_template": "我希望生成一个文字冒险游戏,以下是对游戏故事的要求:故事风格:{style},故事参考:{story}。你生成的可以直接被json.loads读取的不带换行符的JSON字符串为{json_declare}:"
-}

+ 0 - 5
config/three_kingdoms_product/prompt/value_2.json

@@ -1,5 +0,0 @@
-{
-    "output_type": "{\"value\":{\"数值名称\":\"数值大小\"}",
-    "system_template": "输出JSON",
-    "human_template": "我正在生成一个文字游戏,故事简介:{intro};角色设定:{npc};数值系统:{value_system};游戏通关所需条件:{target};游戏发生的事件:{event};玩家当前数值:{value};需要你根据游戏最后发生的事件对玩家数值进行修改,不用输出除了value之外的其他内容,你的JSON输出为{output_type}:"
-}

+ 0 - 4
config/three_kingdoms_product/user_input.json

@@ -1,4 +0,0 @@
-{
-    "style": "三国,搞笑",
-    "story": "始于黄巾起义的混乱时代,我叫摸鱼,是黄巾军的一员,也是一名墨家子弟,年龄16岁"
-}

+ 0 - 22
config/three_kingdoms_test/module_output/Ghat_event_output.json

@@ -1,22 +0,0 @@
-{
-    "class_output_data": [
-        {
-            "事件": "你跟随着黄巾军的队伍一路向南,来到了一片茂密的森林前。张角道长拍了拍你的肩膀,说道:“小兄弟,这片森林里有一只凶猛的猛虎,我们需要你去猎杀它,展现你的勇气!”你心里有些害怕,但也不想在众人面前失面子,于是你决定……",
-            "是否需要玩家选择下一步操作": true,
-            "玩家可以做出的选择": [
-                "前往森林深处寻找猛虎",
-                "留在原地观望"
-            ],
-            "游戏是否结束": false
-        },
-        {
-            "事件": "你决定留在原地观望,看看其他人的表现。突然,一声巨响传来,你发现张角道长已经率领其他人前往森林深处了。你赶紧跟上去,却发现张角道长已经被一只凶猛的猛虎攻击。你需要快速做出决定,救援张角道长还是猛攻猛虎?",
-            "是否需要玩家选择下一步操作": true,
-            "玩家可以做出的选择": [
-                "救援张角道长",
-                "猛攻猛虎"
-            ],
-            "游戏是否结束": false
-        }
-    ]
-}

+ 0 - 43
config/three_kingdoms_test/module_output/Ghat_input_output.json

@@ -1,43 +0,0 @@
-{
-    "故事简介": "在混乱的三国时代,你扮演一名名叫摸鱼的黄巾军士兵,同时也是一名墨家子弟。年仅16岁的你,将会经历一系列搞笑的冒险,与各路英雄豪杰交手,最终成为一名真正的英雄。",
-    "角色设定": [
-        {
-            "名字": "摸鱼",
-            "特征": "黄巾军士兵,墨家子弟,年仅16岁"
-        },
-        {
-            "名字": "张角",
-            "特征": "黄巾军领袖,号称“太平道人”"
-        },
-        {
-            "名字": "曹操",
-            "特征": "魏国开国皇帝,智勇双全,是三国时期的重要人物之一"
-        },
-        {
-            "名字": "刘备",
-            "特征": "蜀汉开国皇帝,仁义之君,是三国时期的重要人物之一"
-        },
-        {
-            "名字": "孙权",
-            "特征": "吴国开国皇帝,善于用人,是三国时期的重要人物之一"
-        }
-    ],
-    "数值系统": [
-        {
-            "名称": "武力值",
-            "范围": "0-100",
-            "含义": "影响战斗力"
-        },
-        {
-            "名称": "智力值",
-            "范围": "0-100",
-            "含义": "影响策略和谈判能力"
-        },
-        {
-            "名称": "魅力值",
-            "范围": "0-100",
-            "含义": "影响人际关系和交际能力"
-        }
-    ],
-    "游戏通关所需条件": "成为三国时代的一名真正英雄,统一天下,实现太平盛世。"
-}

+ 0 - 7
config/three_kingdoms_test/module_output/Ghat_value_output.json

@@ -1,7 +0,0 @@
-{
-    "value": {
-        "武力值": 70,
-        "智力值": 50,
-        "魅力值": 50
-    }
-}

+ 0 - 5
config/three_kingdoms_test/module_output/Interact_choose_output.json

@@ -1,5 +0,0 @@
-{
-    "class_output_data": [
-        "留在原地观望"
-    ]
-}

+ 0 - 203
config/three_kingdoms_test/modules_config.json

@@ -1,203 +0,0 @@
-{
-    "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']",
-                "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'][-3:]",
-                "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'][-3:]"
-            },
-            "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"
-            },
-            "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
-            }
-        }
-    ]
-}

+ 0 - 5
config/three_kingdoms_test/prompt/event_1.json

@@ -1,5 +0,0 @@
-{
-    "output_type": "{\"事件\": \"字符串格式,这是展示给玩家的,讲述了玩家当前遇到的事件,例如“0岁,你出生于颍川一个富贵之家...”。出现新的人物时需要在事件中对新的人物进行描写,并在当前角色设定中添加新的角色\",\"是否需要玩家选择下一步操作\": \"Boolean格式\",\"玩家可以做出的选择\": \"数组格式,玩家可以做出的有限个选择,如果不需要玩家做选择则返回空数组\",\"游戏是否结束\": \"Boolean格式,游戏是否结束\"}",
-    "system_template": "我正在生成一个文字冒险游戏,我将输入游戏当前信息与当前游戏的风格、简介,需要你根据游戏当前信息生成玩家接下来遇到的下一个事件,以如下格式输出JSON:{output_type},严格按照格式输出,不要输出除了json字符串之外的其他内容",
-    "human_template": "游戏风格:{style};游戏参考:{story};故事简介:{intro};角色设定:{npc};数值系统:{value_system};当前数值:{value},玩家遇到的下一个事件的json输出为{json_declare}:"
-}

+ 0 - 6
config/three_kingdoms_test/prompt/event_2.json

@@ -1,6 +0,0 @@
-{
-    "output_type": "{\"事件\": \"字符串格式,这是展示给玩家的,讲述了玩家当前遇到的事件,例如“0岁,你出生于颍川一个富贵之家...”。出现新的人物时需要在事件中对新的人物进行描写,并在当前角色设定中添加新的角色\",\"是否需要玩家选择下一步操作\": \"Boolean格式\",\"玩家可以做出的选择\": \"数组格式,玩家可以做出的有限个选择,如果不需要玩家做选择则返回空数组\",\"游戏是否结束\": \"Boolean格式,游戏是否结束\"}",
-    "system_template": "我正在生成一个文字冒险游戏,我将输入游戏当前信息与当前游戏的风格、简介,需要你根据游戏当前信息生成玩家接下来遇到的下一个事件,以如下格式输出JSON:{output_type},严格按照格式输出,不要输出除了json字符串之外的其他内容",
-    "human_template": "游戏风格:{style};游戏参考:{story};故事简介:{intro};角色设定:{npc};数值系统:{value_system};当前数值:{value};游戏发生的事件:{event};玩家对最后一次事件做出的选择:{interact};玩家遇到的下一个事件的json输出为{json_declare}:"
-    
-}

+ 0 - 5
config/three_kingdoms_test/prompt/event_3.json

@@ -1,5 +0,0 @@
-{
-    "output_type": "{\"事件\": \"字符串格式,这是展示给玩家的,讲述了玩家当前遇到的事件,例如“0岁,你出生于颍川一个富贵之家...”。出现新的人物时需要在事件中对新的人物进行描写,并在当前角色设定中添加新的角色\",\"是否需要玩家选择下一步操作\": \"Boolean格式\",\"玩家可以做出的选择\": \"数组格式,玩家可以做出的有限个选择,如果不需要玩家做选择则返回空数组\",\"游戏是否结束\": \"Boolean格式,游戏是否结束\"}",
-    "system_template": "我正在生成一个文字冒险游戏,我将输入游戏当前信息与当前游戏的风格、简介,需要你根据游戏当前信息生成玩家接下来遇到的下一个事件,以如下格式输出JSON:{output_type},严格按照格式输出,不要输出除了json字符串之外的其他内容",
-    "human_template": "游戏风格:{style};游戏参考:{story};故事简介:{intro};角色设定:{npc};数值系统:{value_system};当前数值:{value};游戏发生的事件:{event};玩家遇到的下一个事件的json输出为{json_declare}:"
-}

+ 0 - 5
config/three_kingdoms_test/prompt/input.json

@@ -1,5 +0,0 @@
-{
-    "declare":"{'故事简介': '字符串格式,这是展示给玩家的故事简介与游戏目标','角色设定': '数组格式,游戏中的npc角色设定,包括角色的名字、特征;不包含玩家所操控的角色','数值系统': '数组格式,数值系统包括游戏中的数值名称、数值范围、数值含义,例如装备系统、官职系统等','游戏通关所需条件': '字符串格式,游戏结束的条件,例如“成为了诸侯王'}",
-    "system_template": "以如下格式输出可以被json.loads读取的JSON字符串:{declare}",
-    "human_template": "我希望生成一个文字冒险游戏,以下是对游戏故事的要求:故事风格:{style},故事参考:{story}。你生成的可以直接被json.loads读取的不带换行符的JSON字符串为{json_declare}:"
-}

+ 0 - 3
config/three_kingdoms_test/prompt/json_declare.json

@@ -1,3 +0,0 @@
-{
-    "json_declare":"(示例:{\"key1\":\"value1\",\"key2\":\"value2\"})"
-}

+ 0 - 5
config/three_kingdoms_test/prompt/value_1.json

@@ -1,5 +0,0 @@
-{
-    "output_type": "示例:{\"value\":{\"数值名称\":\"数值大小\"}",
-    "system_template": "输出JSON",
-    "human_template": "我正在生成一个文字游戏,故事简介:{intro};角色设定:{npc};数值系统:{value_system};游戏通关所需条件:{target};需要你根据游戏当前信息对玩家数值进行初始化,不用输出除了value之外的其他内容,你的JSON输出为{output_type}:"
-}

+ 0 - 5
config/three_kingdoms_test/prompt/value_2.json

@@ -1,5 +0,0 @@
-{
-    "output_type": "{\"value\":{\"数值名称\":\"数值大小\"}",
-    "system_template": "输出JSON",
-    "human_template": "我正在生成一个文字游戏,故事简介:{intro};角色设定:{npc};数值系统:{value_system};游戏通关所需条件:{target};游戏发生的事件:{event};玩家当前数值:{value};需要你根据游戏最后发生的事件对玩家数值进行修改,不用输出除了value之外的其他内容,你的JSON输出为{output_type}:"
-}

+ 0 - 4
config/three_kingdoms_test/user_input.json

@@ -1,4 +0,0 @@
-{
-    "style": "三国,搞笑",
-    "story": "始于黄巾起义的混乱时代,我叫摸鱼,是黄巾军的一员,也是一名墨家子弟,年龄16岁"
-}