-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Python Bug: Serialized _Chat Content_ types incompatible with .NET #9627
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workingchat historykernelIssues or pull requests impacting the core kernelIssues or pull requests impacting the core kernelkernel.corepythonPull requests for the Python Semantic KernelPull requests for the Python Semantic Kernelsk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)staleIssue is stale because it has been open for a while and has no activityIssue is stale because it has been open for a while and has no activity
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingchat historykernelIssues or pull requests impacting the core kernelIssues or pull requests impacting the core kernelkernel.corepythonPull requests for the Python Semantic KernelPull requests for the Python Semantic Kernelsk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)A tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)staleIssue is stale because it has been open for a while and has no activityIssue is stale because it has been open for a while and has no activity
Type
Projects
Status
Backlog
Describe the bug
Python and .NET content types are not cross compatible when serialized to JSON.
Repro #1
Repro #2
Expected behavior
Content types are compatible across platforms
Screenshots
Content Type Compatibility.xlsx
dotnet-history.json
python-history.json
In addition:
Additional context
This has compatibility has long been identified as desired, but not directly analyzed or addressed. Performed analysis for critical types as part of agent framework serialization feature and capturing here:
KernelContentChatMessageContentTextContentFunctionCallContentFunctionResultContentOther content types include:
AnnotationContentAudioContentBinaryContentFileReferenceContentImageContent