From d5d03834f1c1018029181a5bcead96fd42ab1e6d Mon Sep 17 00:00:00 2001 From: Jicheng Lu Date: Thu, 15 May 2025 23:02:38 -0500 Subject: [PATCH] minor change --- .../BotSharp.Core/Demo/Functions/GetWeatherFn.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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