Skip to content

.NET: [Bug]: serialization related bugs/inconsistency in implementation or documentation #8016

Description

@dsslight

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETUsage: [Issues, PRs], Target: .NettriageUsage: [Issues], Target: All issues that still need to be triaged

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions