Showing
1 changed file
with
27 additions
and
7 deletions
| @@ -162,16 +162,36 @@ BettaFish/ | @@ -162,16 +162,36 @@ BettaFish/ | ||
| 162 | │ ├── config.py # Configuration management | 162 | │ ├── config.py # Configuration management |
| 163 | │ └── text_processing.py # Text processing tools | 163 | │ └── text_processing.py # Text processing tools |
| 164 | ├── ReportEngine/ # Multi-round report generation Agent | 164 | ├── ReportEngine/ # Multi-round report generation Agent |
| 165 | -│ ├── agent.py # Agent main logic | ||
| 166 | -│ ├── llms/ # LLM interfaces | ||
| 167 | -│ ├── nodes/ # Report generation nodes | ||
| 168 | -│ │ ├── template_selection.py # Template selection node | ||
| 169 | -│ │ └── html_generation.py # HTML generation node | ||
| 170 | -│ ├── report_template/ # Report template library | 165 | +│ ├── agent.py # Orchestrates template → layout → budget → chapter → render pipeline |
| 166 | +│ ├── flask_interface.py # Flask/SSE facade handling task queueing and streaming events | ||
| 167 | +│ ├── llms/ # OpenAI-compatible LLM wrappers | ||
| 168 | +│ │ └── base.py # Unified streaming/retry client | ||
| 169 | +│ ├── core/ # Template slicing, chapter storage, document stitching | ||
| 170 | +│ │ ├── template_parser.py # Markdown slicer and slug generator | ||
| 171 | +│ │ ├── chapter_storage.py # Run directory + manifest + raw streaming writer | ||
| 172 | +│ │ └── stitcher.py # Document IR composer injecting anchors/metadata | ||
| 173 | +│ ├── ir/ # Report IR contract & validator | ||
| 174 | +│ │ ├── schema.py # Block/mark schema constants | ||
| 175 | +│ │ └── validator.py # Chapter JSON structure validator | ||
| 176 | +│ ├── nodes/ # Reasoning nodes for the whole pipeline | ||
| 177 | +│ │ ├── base_node.py # Base class with logging/state hooks | ||
| 178 | +│ │ ├── template_selection_node.py # Gather candidates and ask LLM to pick | ||
| 179 | +│ │ ├── document_layout_node.py # Title/TOC/theme designer | ||
| 180 | +│ │ ├── word_budget_node.py # Word plan & directives per chapter | ||
| 181 | +│ │ └── chapter_generation_node.py # Chapter-level JSON generation + validation | ||
| 182 | +│ ├── prompts/ # Prompt library and schema notes | ||
| 183 | +│ │ └── prompts.py # Templates for selection/layout/budget/chapters | ||
| 184 | +│ ├── renderers/ # IR renderers | ||
| 185 | +│ │ └── html_renderer.py # Document IR → interactive HTML | ||
| 186 | +│ ├── state/ # Task and metadata state models | ||
| 187 | +│ │ └── state.py # ReportState plus serialization helpers | ||
| 188 | +│ ├── utils/ # Config/log helpers | ||
| 189 | +│ │ └── config.py # Pydantic settings + printer | ||
| 190 | +│ ├── report_template/ # Markdown template library | ||
| 171 | │ │ ├── 社会公共热点事件分析.md | 191 | │ │ ├── 社会公共热点事件分析.md |
| 172 | │ │ ├── 商业品牌舆情监测.md | 192 | │ │ ├── 商业品牌舆情监测.md |
| 173 | │ │ └── ... # More templates | 193 | │ │ └── ... # More templates |
| 174 | -│ └── flask_interface.py # Flask API interface | 194 | +│ └── ... # Misc caches, __init__.py, etc. |
| 175 | ├── ForumEngine/ # Forum engine simple implementation | 195 | ├── ForumEngine/ # Forum engine simple implementation |
| 176 | │ ├── monitor.py # Log monitoring and forum management | 196 | │ ├── monitor.py # Log monitoring and forum management |
| 177 | │ └── llm_host.py # Forum host LLM module | 197 | │ └── llm_host.py # Forum host LLM module |
-
Please register or login to post a comment