feat:优化增量执行、工具调用容错与评测体系

This commit is contained in:
2026-10-11 04:40:25 -07:00
parent cd5a2b4d8f
commit dadd797391
22 changed files with 2198 additions and 578 deletions
+8 -3
View File
@@ -87,8 +87,13 @@ def run_query(
)
def connect(tables: Mapping[str, Path]) -> duckdb.DuckDBPyConnection:
"""建好视图并锁定的连接;列概况也用它,和模型查询看到的数据一致"""
def connect(
tables: Mapping[str, Path], *, threads: int = THREADS
) -> duckdb.DuckDBPyConnection:
"""建好视图并锁定的连接;列概况也用它,和模型查询看到的数据一致
threads 只给解析子进程算列概况时放宽,模型写的查询一律用 THREADS
"""
connection = duckdb.connect(
":memory:",
config={
@@ -96,7 +101,7 @@ def connect(tables: Mapping[str, Path]) -> duckdb.DuckDBPyConnection:
"autoload_known_extensions": False,
"python_enable_replacements": False,
"memory_limit": MEMORY_LIMIT,
"threads": THREADS,
"threads": threads,
},
)
try: