mcp: avoid "null" in structuredContent
Avoid a typed nil in structuredContent (yet another typed nil), leading to "null" on the wire. Fixes #417
This commit is contained in:
parent
ee5141621c
commit
9d34aff732
1 changed files with 54 additions and 18 deletions
|
|
@ -1115,8 +1115,7 @@ func TestStreamableStateless(t *testing.T) {
|
|||
},
|
||||
wantMessages: []jsonrpc.Message{
|
||||
resp(2, &CallToolResult{
|
||||
Content: []Content{&TextContent{Text: "hi World"}},
|
||||
StructuredContent: json.RawMessage("null"),
|
||||
Content: []Content{&TextContent{Text: "hi World"}},
|
||||
}, nil),
|
||||
},
|
||||
},
|
||||
|
|
@ -1128,8 +1127,7 @@ func TestStreamableStateless(t *testing.T) {
|
|||
},
|
||||
wantMessages: []jsonrpc.Message{
|
||||
resp(2, &CallToolResult{
|
||||
Content: []Content{&TextContent{Text: "hi foo"}},
|
||||
StructuredContent: json.RawMessage("null"),
|
||||
Content: []Content{&TextContent{Text: "hi foo"}},
|
||||
}, nil),
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue