Add Indication for Planner
This commit is contained in:
parent
08920201e5
commit
89343d5205
|
|
@ -2,6 +2,8 @@ namespace BotSharp.Abstraction.Planning;
|
|||
|
||||
public interface IPlanningHook
|
||||
{
|
||||
Task<string> GetSummaryAdditionalRequirements(string planner);
|
||||
Task OnPlanningCompleted(string planner, RoleDialogModel msg);
|
||||
Task<string> GetSummaryAdditionalRequirements(string planner)
|
||||
=> Task.FromResult(string.Empty);
|
||||
Task OnPlanningCompleted(string planner, RoleDialogModel msg)
|
||||
=> Task.CompletedTask;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace BotSharp.Plugin.Planner.Functions;
|
|||
public class PrimaryStagePlanFn : IFunctionCallback
|
||||
{
|
||||
public string Name => "plan_primary_stage";
|
||||
|
||||
public string Indication => "Currently analyzing and breaking down user requirements.";
|
||||
private readonly IServiceProvider _services;
|
||||
private readonly ILogger<PrimaryStagePlanFn> _logger;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace BotSharp.Plugin.Planner.Functions;
|
|||
public class SecondaryStagePlanFn : IFunctionCallback
|
||||
{
|
||||
public string Name => "plan_secondary_stage";
|
||||
|
||||
public string Indication => "Further analyzing and breaking down user sub-needs.";
|
||||
private readonly IServiceProvider _services;
|
||||
private readonly ILogger<SecondaryStagePlanFn> _logger;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace BotSharp.Plugin.Planner.Functions;
|
|||
public class SummaryPlanFn : IFunctionCallback
|
||||
{
|
||||
public string Name => "plan_summary";
|
||||
|
||||
public string Indication => "Organizing and summarizing the final output results.";
|
||||
private readonly IServiceProvider _services;
|
||||
private readonly ILogger<SummaryPlanFn> _logger;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,5 +6,7 @@ The query must exactly based on the provided table structure. And carefully revi
|
|||
|
||||
Note: Output should be only the sql query with sql comments that can be directly run in SQL Server.
|
||||
|
||||
* the alias of the table name in the sql query should be identical.
|
||||
*** the generated sql query MUST be basedd on the provided table structure. ***
|
||||
*** the alias of the table name in the sql query should be identical. ***
|
||||
*** The generated sql query MUST be basedd on the provided table structure. ***
|
||||
*** All queries return a maximum of 10 records. ***
|
||||
*** Only select user friendly columns. ***
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using BotSharp.Plugin.SqlDriver.Models;
|
||||
using Dapper;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Data.SqlClient;
|
||||
using MySqlConnector;
|
||||
|
||||
|
|
@ -9,7 +8,7 @@ namespace BotSharp.Plugin.SqlDriver.Functions;
|
|||
public class ExecuteQueryFn : IFunctionCallback
|
||||
{
|
||||
public string Name => "execute_sql";
|
||||
|
||||
public string Indication => "Performing data retrieval operation.";
|
||||
private readonly SqlDriverSetting _setting;
|
||||
private readonly IServiceProvider _services;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ namespace BotSharp.Plugin.SqlDriver.Functions;
|
|||
public class GetTableDefinitionFn : IFunctionCallback
|
||||
{
|
||||
public string Name => "get_table_definition";
|
||||
public string Indication => "Obtain the relevant data structure definitions.";
|
||||
private readonly IServiceProvider _services;
|
||||
private readonly ILogger<GetTableDefinitionFn> _logger;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue