anthropics / anthropics/anthropic-sdk-csharp

Support AOT

Abierto
#79 6 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement sdk
Lenguaje dominante
C#
Estrellas
322
Forks
105
Merge medio
1 d 6 h
PR fusionados (30 d)
9

Descripción

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. 🙂

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.