Commit a3cb705
Add optional JsonSerializerOptions parameter to ToChatMessage
- Updated ToChatMessage to accept optional JsonSerializerOptions parameter
- Changed from using JsonContext.Default.CallToolResult to options.GetTypeInfo<CallToolResult>()
- Ensures user-defined serialization options are used throughout the call chain
- Defaults to McpJsonUtilities.DefaultOptions when no options provided
- All tests passing on .NET 8, 9, and 10
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>1 parent cb95813 commit a3cb705
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
195 | | - | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| |||
0 commit comments