From 7e3e58aba166288771f85eff8560e7045a4d7196 Mon Sep 17 00:00:00 2001
From: Jicheng Lu <103353@smsassist.com>
Date: Mon, 11 Sep 2023 23:27:04 -0500
Subject: [PATCH] add json ignore
---
.../BotSharp.Abstraction/Agents/Models/Agent.cs | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs b/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs
index 68be9939..0950f97f 100644
--- a/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs
+++ b/src/Infrastructure/BotSharp.Abstraction/Agents/Models/Agent.cs
@@ -1,3 +1,5 @@
+using System.Text.Json.Serialization;
+
namespace BotSharp.Abstraction.Agents.Models;
public class Agent
@@ -11,26 +13,31 @@ public class Agent
///
/// Instruction
///
+ [JsonIgnore]
public string Instruction { get; set; }
///
/// Samples
///
+ [JsonIgnore]
public string Samples { get; set; }
///
/// Functions
///
+ [JsonIgnore]
public List Functions { get; set; }
///
/// Responses
///
+ [JsonIgnore]
public List Responses { get; set; }
///
/// Domain knowledges
///
+ [JsonIgnore]
public string Knowledges { get; set; }
public bool IsPublic { get; set; }