File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -268,6 +268,10 @@ func FormatPromptMessagesMarkdown(pm *PromptMessages) string {
268268}
269269
270270// extractContentText extracts the text from an MCP Content interface value.
271+ // MCP prompt messages use the Content interface which can be TextContent,
272+ // ImageContent, AudioContent, or EmbeddedResource. This function handles
273+ // TextContent directly and falls back to JSON serialization for other types
274+ // (e.g., image or audio content), preserving the data for the caller.
271275func extractContentText (content mcp.Content ) string {
272276 if tc , ok := content .(mcp.TextContent ); ok {
273277 return tc .Text
Original file line number Diff line number Diff line change 11module languages/go/tools/test/CallGraphFrom
2+
3+ go 1.21.13
Original file line number Diff line number Diff line change 11module languages/go/tools/test/CallGraphFromTo
2+
3+ go 1.21.13
Original file line number Diff line number Diff line change 11module languages/go/tools/test/CallGraphTo
2+
3+ go 1.21.13
Original file line number Diff line number Diff line change 11module languages/go/tools/test/PrintAST
22
3- go 1.20
3+ go 1.20
You can’t perform that action at this time.
0 commit comments