commit
fe4d0a8e01
|
|
@ -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{ });
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace BotSharp.Plugin.SqlDriver.Hooks;
|
|||
|
||||
public class SqlDictionaryLookupHook : AgentHookBase, IAgentHook
|
||||
{
|
||||
private const string SQL_EXECUTOR_TEMPLATE = "sql_dictionary_lookup.fn";
|
||||
private const string SQL_EXECUTOR_TEMPLATE = "verify_dictionary_term.fn";
|
||||
private IEnumerable<string> _targetSqlExecutorFunctions = new List<string>
|
||||
{
|
||||
"verify_dictionary_term",
|
||||
|
|
|
|||
Loading…
Reference in a new issue