Package com.alibaba.cloud.ai.node
Class SqlGenerateNode
java.lang.Object
com.alibaba.cloud.ai.node.SqlGenerateNode
- All Implemented Interfaces:
NodeAction
Enhanced SQL generation node that handles SQL query regeneration with advanced
optimization features.
This node is responsible for: - Multi-round SQL optimization and refinement - Syntax
validation and security analysis - Performance optimization and intelligent caching -
Handling execution exceptions and semantic consistency failures - Managing retry logic
with schema advice - Providing streaming feedback during regeneration process
- Author:
- zhangshenghang
-
Constructor Summary
ConstructorsConstructorDescriptionSqlGenerateNode(org.springframework.ai.chat.client.ChatClient.Builder chatClientBuilder, BaseNl2SqlService baseNl2SqlService) -
Method Summary
-
Constructor Details
-
SqlGenerateNode
public SqlGenerateNode(org.springframework.ai.chat.client.ChatClient.Builder chatClientBuilder, BaseNl2SqlService baseNl2SqlService)
-
-
Method Details
-
apply
- Specified by:
applyin interfaceNodeAction- Throws:
Exception
-