From 975b5720c7f2f116735b45ae7cd50446a7da848b Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Wed, 25 Oct 2023 13:02:50 -0500 Subject: [PATCH] add impact in agent functions --- .../BotSharp.Abstraction/Functions/Models/FunctionDef.cs | 1 + .../Models/FunctionDefMongoElement.cs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/Infrastructure/BotSharp.Abstraction/Functions/Models/FunctionDef.cs b/src/Infrastructure/BotSharp.Abstraction/Functions/Models/FunctionDef.cs index 153fb473..d89620a9 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Functions/Models/FunctionDef.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Functions/Models/FunctionDef.cs @@ -4,6 +4,7 @@ public class FunctionDef { public string Name { get; set; } public string Description { get; set; } + public string? Impact { get; set; } public FunctionParametersDef Parameters { get; set; } = new FunctionParametersDef(); public override string ToString() diff --git a/src/Plugins/BotSharp.Plugin.MongoStorage/Models/FunctionDefMongoElement.cs b/src/Plugins/BotSharp.Plugin.MongoStorage/Models/FunctionDefMongoElement.cs index ec9699c0..08caa2a4 100644 --- a/src/Plugins/BotSharp.Plugin.MongoStorage/Models/FunctionDefMongoElement.cs +++ b/src/Plugins/BotSharp.Plugin.MongoStorage/Models/FunctionDefMongoElement.cs @@ -7,6 +7,7 @@ public class FunctionDefMongoElement { public string Name { get; set; } public string Description { get; set; } + public string? Impact { get; set; } public FunctionParametersDefMongoElement Parameters { get; set; } = new FunctionParametersDefMongoElement(); public FunctionDefMongoElement() @@ -20,6 +21,7 @@ public class FunctionDefMongoElement { Name = function.Name, Description = function.Description, + Impact = function.Impact, Parameters = new FunctionParametersDefMongoElement { Type = function.Parameters.Type, @@ -35,6 +37,7 @@ public class FunctionDefMongoElement { Name = mongoFunction.Name, Description = mongoFunction.Description, + Impact = mongoFunction.Impact, Parameters = new FunctionParametersDef { Type = mongoFunction.Parameters.Type,