add impact in agent functions

This commit is contained in:
Jicheng Lu 2023-10-25 13:02:50 -05:00
parent 209a009aa1
commit 975b5720c7
2 changed files with 4 additions and 0 deletions

View file

@ -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()

View file

@ -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,