-
Notifications
You must be signed in to change notification settings - Fork 553
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Attempting to deserialize a ResourceLinkBlock throws JsonException
In src/ModelContextProtocol.Core/Protocol/ContentBlock.cs, we're missing a switch case to read the "name" property which results in name never being deserialized and consequently a JsonException being thrown here
Name = name ?? throw new JsonException("Name must be provided for 'resource_link' type."),
To Reproduce
Steps to reproduce the behavior:
- Create a valid ResourceLinkBlock with Name
- Serialize to Json
- Attempt to deserialize
Expected behavior
Deserializes back to original state
raffaelerCopilot
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working