主流程的Request,继承自MainRequest
| 56 | # ==================== 主流程 Request ==================== |
| 57 | @dataclass |
| 58 | class DFRequest(MainRequest): |
| 59 | """主流程的Request,继承自MainRequest""" |
| 60 | # ⑤ 测试样例文件(仅 CLI 批量跑用) |
| 61 | json_file: str = "" |
| 62 | |
| 63 | # ⑥ Python 代码文件位置 |
| 64 | python_file_path: str = "" |
| 65 | |
| 66 | # ⑦ Debug 相关 |
| 67 | need_debug: bool = False |
| 68 | max_debug_rounds: int = 3 |
| 69 | |
| 70 | # ⑧ 本地模型相关 |
| 71 | use_local_model: bool = False |
| 72 | local_model_path: str = "" |
| 73 | |
| 74 | # ⑨ 缓存和会话 |
| 75 | cache_dir: str = f"{PROJDIR}/cache_dir" |
| 76 | session_id: str = "default_session" |
| 77 | |
| 78 | # embeddings url |
| 79 | chat_api_url_for_embeddings : str = "" |
| 80 | embedding_model_name: str = "text-embedding-3-small" |
| 81 | update_rag_content: bool = True |
| 82 | |
| 83 | # ==================== 主流程 State ==================== |
| 84 | @dataclass |
no outgoing calls