Fix template database.dictionary.sql

This commit is contained in:
Haiping Chen 2024-11-06 16:03:16 -06:00
parent 8d40b12be3
commit aaf61ca04f

View file

@ -78,7 +78,7 @@ public class VerifyDictionaryTerm : IFunctionCallback
var render = _services.GetRequiredService<ITemplateRender>();
var knowledgeHooks = _services.GetServices<IKnowledgeHook>();
var agent = await agentService.GetAgent(BuiltInAgentId.Planner);
var agent = await agentService.GetAgent(BuiltInAgentId.SqlDriver);
var template = agent.Templates.FirstOrDefault(x => x.Name == "database.dictionary.sql")?.Content ?? string.Empty;
var responseFormat = JsonSerializer.Serialize(new LookupDictionary{ });