MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / DFRequest

Class DFRequest

dataflow_agent/state.py:58–81  ·  view source on GitHub ↗

主流程的Request,继承自MainRequest

Source from the content-addressed store, hash-verified

56# ==================== 主流程 Request ====================
57@dataclass
58class 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

Callers 5

test_basic_trajectoryFunction · 0.90
test_batch_exportFunction · 0.90
test_feedbackFunction · 0.90
file_tools.pyFile · 0.90

Calls

no outgoing calls

Tested by 4

test_basic_trajectoryFunction · 0.72
test_batch_exportFunction · 0.72
test_feedbackFunction · 0.72