File tree Expand file tree Collapse file tree 3 files changed +4
-35
lines changed
Infrastructure/BotSharp.Abstraction/Agents/Models
BotSharp.Plugin.MongoStorage/Models
BotSharp.Plugin.Twilio/OutboundPhoneCallHandler/Functions Expand file tree Collapse file tree 3 files changed +4
-35
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ public override string ToString()
2626public class UtilityItem
2727{
2828 [ JsonPropertyName ( "function_name" ) ]
29- public string FunctionName { get ; set ; } = string . Empty ;
29+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
30+ public string ? FunctionName { get ; set ; }
3031
3132 [ JsonPropertyName ( "template_name" ) ]
3233 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
@@ -35,35 +36,4 @@ public class UtilityItem
3536 [ JsonPropertyName ( "visibility_expression" ) ]
3637 [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
3738 public string ? VisibilityExpression { get ; set ; }
38- }
39-
40- //public class UtilityFunction : UtilityBase
41- //{
42- // public UtilityFunction()
43- // {
44-
45- // }
46-
47- // public UtilityFunction(string name)
48- // {
49- // Name = name;
50- // }
51- //}
52-
53- //public class UtilityTemplate : UtilityBase
54- //{
55- // public UtilityTemplate()
56- // {
57-
58- // }
59-
60- // public UtilityTemplate(string name)
61- // {
62- // Name = name;
63- // }
64- //}
65-
66- //public class UtilityBase
67- //{
68- // public string Name { get; set; }
69- //}
39+ }
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public static AgentUtility ToDomainElement(AgentUtilityMongoElement utility)
4848
4949public class AgentUtilityItemMongoElement
5050{
51- public string FunctionName { get ; set ; } = string . Empty ;
51+ public string ? FunctionName { get ; set ; }
5252 public string ? TemplateName { get ; set ; }
5353 public string ? VisibilityExpression { get ; set ; }
5454}
Original file line number Diff line number Diff line change 11using BotSharp . Abstraction . Files ;
2- using BotSharp . Abstraction . Files . Models ;
32using BotSharp . Abstraction . Infrastructures . Enums ;
43using BotSharp . Abstraction . Options ;
54using BotSharp . Abstraction . Routing ;
You can’t perform that action at this time.
0 commit comments