Description
For the Declarative workflow documentation
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.
Code Sample
Error Messages / Stack Traces
Package Versions
Microsoft.Agents.AI.Workflows.Declarative
.NET Version
.NET 10.0.300
Additional Context
documentation related issue
Description
For the Declarative workflow documentation
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.
Code Sample
Error Messages / Stack Traces
Package Versions
Microsoft.Agents.AI.Workflows.Declarative
.NET Version
.NET 10.0.300
Additional Context
documentation related issue