执行SQL查询
(state: SQLQueryState)
| 2 | from core.state_graph.tool.tools import execute_sql_query |
| 3 | |
| 4 | def execute_sql(state: SQLQueryState) -> dict: |
| 5 | """执行SQL查询""" |
| 6 | result = execute_sql_query.invoke({"sql": state.sql}) |
| 7 | print(f"\033[92mUsing execute_sql: {result}\033[0m") # 绿色输出 |
| 8 | return {"context": result} |
nothing calls this directly
no outgoing calls
no test coverage detected