Support ImageContent and AudioContent in Message class#3396
Conversation
Message.content now accepts ImageContent and AudioContent in addition to TextContent and EmbeddedResource, matching MCP's ContentBlock type. This fixes ProxyPrompt.render() silently JSON-serializing image/audio content instead of preserving it. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 <[email protected]>
Test Failure Analysis
Summary: The Root Cause: Suggested Solution: Update # Before
content: mcp.types.TextContent | mcp.types.EmbeddedResource
# After
content: mcp.types.TextContent | mcp.types.ImageContent | mcp.types.AudioContent | mcp.types.EmbeddedResourceAlso check whether the Detailed AnalysisThe The root: Related Files
|
Description
Message.content now accepts ImageContent and AudioContent in addition to TextContent and EmbeddedResource, matching MCP's ContentBlock type. This fixes ProxyPrompt.render() silently JSON-serializing image/audio content instead of preserving it.
🤖 Generated with Claude Code
Contributors Checklist
Review Checklist