We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5b3d70 commit 03172e4Copy full SHA for 03172e4
examples/aspnet-core/Program.cs
@@ -52,5 +52,22 @@ public async Task<ChatResponse> HandleChatRequest(ChatRequest request)
52
}
53
54
55
-public record ChatRequest(string Message);
56
-public record ChatResponse(string Response);
+public class ChatRequest
+{
57
+ public string Message { get; set; }
58
+
59
+ public ChatRequest(string message)
60
+ {
61
+ Message = message;
62
+ }
63
+}
64
65
+public class ChatResponse
66
67
+ public string Response { get; set; }
68
69
+ public ChatResponse(string response)
70
71
+ Response = response;
72
73
0 commit comments