diff --git a/src/Infrastructure/BotSharp.Core/Demo/Functions/GetWeatherFn.cs b/src/Infrastructure/BotSharp.Core/Demo/Functions/GetWeatherFn.cs index 8dbdbfaf..a78ad4ec 100644 --- a/src/Infrastructure/BotSharp.Core/Demo/Functions/GetWeatherFn.cs +++ b/src/Infrastructure/BotSharp.Core/Demo/Functions/GetWeatherFn.cs @@ -1,5 +1,4 @@ using BotSharp.Abstraction.Functions; -using System.Text.Json.Serialization; namespace BotSharp.Core.Demo.Functions; @@ -17,15 +16,8 @@ public class GetWeatherFn : IFunctionCallback public async Task Execute(RoleDialogModel message) { - //var args = JsonSerializer.Deserialize(message.FunctionArgs, BotSharpOptions.defaultJsonOptions); - message.Content = $"It is a sunny day."; + message.Content = $"It is a sunny day!"; //message.StopCompletion = true; return true; } -} - -class Location -{ - [JsonPropertyName("city")] - public string? City { get; set; } } \ No newline at end of file