Skip to content

Commit 03172e4

Browse files
remove record from new example
1 parent d5b3d70 commit 03172e4

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

examples/aspnet-core/Program.cs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,22 @@ public async Task<ChatResponse> HandleChatRequest(ChatRequest request)
5252
}
5353
}
5454

55-
public record ChatRequest(string Message);
56-
public record ChatResponse(string Response);
55+
public class ChatRequest
56+
{
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

Comments
 (0)