mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
[improvement][Headless] Unit tests do not use the LLM parsing tool by default. (#699)
This commit is contained in:
@@ -100,6 +100,9 @@ public class LLMRequestService {
|
||||
|
||||
public NL2SQLTool getParserTool(QueryContext queryCtx, Set<Long> modelIdSet) {
|
||||
Agent agent = queryCtx.getAgent();
|
||||
if (Objects.isNull(agent)) {
|
||||
return null;
|
||||
}
|
||||
List<NL2SQLTool> commonAgentTools = agent.getParserTools(AgentToolType.NL2SQL_LLM);
|
||||
Optional<NL2SQLTool> llmParserTool = commonAgentTools.stream()
|
||||
.filter(tool -> {
|
||||
|
||||
Reference in New Issue
Block a user