anthropics / anthropics/anthropic-sdk-csharp

Support AOT

オープン
#79 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement sdk
主要言語
C#
スター
322
フォーク
105
平均マージ
1日 6時間
マージ済み PR(30日)
9

説明

Hello, would it be possible to utilize the [System.Text.Json Source Generators](https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/source-generation) instead of the reflection-based approach?

In my app I have the reflection-based json serializing deactivated which resulted in the following exception occurring:
```
System.InvalidOperationException:
'Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.'
```

This would also be a step to make the library Native AOT compatible by default. 🙂

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。