Normalize CallToolResult.StructuredContent to JsonElement? (#1357)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
a2ee0c805a
commit
0a0a575a3d
1 changed files with 25 additions and 21 deletions
|
|
@ -122,7 +122,7 @@ public class McpClientToolTests : ClientServerTestBase
|
|||
new()
|
||||
{
|
||||
Content = [new TextContentBlock { Text = "Regular content" }],
|
||||
StructuredContent = JsonNode.Parse("{\"key\":\"value\"}")
|
||||
StructuredContent = JsonElement.Parse("{\"key\":\"value\"}")
|
||||
};
|
||||
|
||||
// Tool that returns CallToolResult with Meta
|
||||
|
|
|
|||
Loading…
Reference in a new issue