You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.NET: [Bug]: serialization related bugs/inconsistency in implementation or documentation #8016
Objects sent to workflow are converted to ChatMessage instances by using ToString(), which requires a workaround - serialization in toString() method as implementation.
The declarative workflow documentation says custom serializers are supported, but making them work requires a lot of experimentation and is deprioritized in my use case by problem #7977
(that tool calls do not work as expected, so no major need for that as I can handle it in the code).
So would be great to have proper and tested samples how to turn serialization on smoothly and reliably.
I checked the C# implementation and the declarative workflow guidance. For non-ChatMessage inputs, DeclarativeWorkflowBuilder currently uses ToString() unless callers provide the documented inputTransform, while the serializer example is only shown for checkpoint state. I’d like to add a tested, copyable C# example showing a custom JsonSerializerContext and inputTransform, and clarify that checkpoint serializer registration does not automatically transform the initial workflow input.
Activity
UniversePeak commentedon Sep 3, 2026
I checked the C# implementation and the declarative workflow guidance. For non-
ChatMessageinputs,DeclarativeWorkflowBuildercurrently usesToString()unless callers provide the documentedinputTransform, while the serializer example is only shown for checkpoint state. I’d like to add a tested, copyable C# example showing a customJsonSerializerContextandinputTransform, and clarify that checkpoint serializer registration does not automatically transform the initial workflow input.baywet commentedon Sep 4, 2026
Hi dsslight
Thank you for using the SDK and for reaching out.
Hi 宇宙的山峰 (@UniversePeak) thanks for putting a pull request together, we'll get this merged as soon as possible to get things in order.
Let me know if you have any additional comments or questions.