49 lines
1.7 KiB
Markdown
49 lines
1.7 KiB
Markdown
|
|
---
|
||
|
|
description: sheding
|
||
|
|
---
|
||
|
|
```mermaid
|
||
|
|
flowchart TD
|
||
|
|
start_node_default([Start])
|
||
|
|
check_settings{AskUserQuestion:<br/>是否已有小说世界观设定?}
|
||
|
|
discuss_new[discuss-new]
|
||
|
|
read_existing[read-existing]
|
||
|
|
discuss_direction[discuss-direction]
|
||
|
|
modify_settings[modify-settings]
|
||
|
|
create_new_settings[create-new-settings]
|
||
|
|
worldview_check[worldview-check]
|
||
|
|
end_node_default([End])
|
||
|
|
|
||
|
|
start_node_default --> check_settings
|
||
|
|
check_settings -->|无设定| discuss_new
|
||
|
|
check_settings -->|有设定| read_existing
|
||
|
|
read_existing --> discuss_direction
|
||
|
|
discuss_direction --> modify_settings
|
||
|
|
modify_settings --> worldview_check
|
||
|
|
discuss_new --> create_new_settings
|
||
|
|
create_new_settings --> worldview_check
|
||
|
|
worldview_check --> end_node_default
|
||
|
|
```
|
||
|
|
|
||
|
|
## Workflow Execution Guide
|
||
|
|
|
||
|
|
Follow the Mermaid flowchart above to execute the workflow. Each node type has specific execution methods as described below.
|
||
|
|
|
||
|
|
### Execution Methods by Node Type
|
||
|
|
|
||
|
|
- **Rectangle nodes**: Execute Sub-Agents using the Task tool
|
||
|
|
- **Diamond nodes (AskUserQuestion:...)**: Use the AskUserQuestion tool to prompt the user and branch based on their response
|
||
|
|
- **Diamond nodes (Branch/Switch:...)**: Automatically branch based on the results of previous processing (see details section)
|
||
|
|
- **Rectangle nodes (Prompt nodes)**: Execute the prompts described in the details section below
|
||
|
|
|
||
|
|
### AskUserQuestion Node Details
|
||
|
|
|
||
|
|
Ask the user and proceed based on their choice.
|
||
|
|
|
||
|
|
#### check_settings(是否已有小说世界观设定?)
|
||
|
|
|
||
|
|
**Selection mode:** Single Select (branches based on the selected option)
|
||
|
|
|
||
|
|
**Options:**
|
||
|
|
- **无设定**: 暂无任何设定,需要从零开始创作
|
||
|
|
- **有设定**: 已有部分或完整的世界观设定需要完善
|