There was an error while loading. Please reload this page.
1 parent 6015f97 commit 4fadfddCopy full SHA for 4fadfdd
1 file changed
src/mcp/server/mcpserver/prompts/base.py
@@ -26,7 +26,11 @@ class Message(BaseModel):
26
"""Base class for all prompt messages.
27
28
`content` may be a plain string (wrapped in `TextContent`), an `Image` or `Audio`
29
- helper (converted to `ImageContent` / `AudioContent`), or any ready-made content block.
+ helper (converted to `ImageContent` / `AudioContent`, reading the file for path-backed
30
+ helpers), or any ready-made content block.
31
+
32
+ Raises:
33
+ OSError: If a path-backed `Image` or `Audio` cannot be read.
34
"""
35
36
role: Literal["user", "assistant"]
0 commit comments