mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 13:34:17 +02:00
Widen CachableMessage.content to match Message content types
This commit is contained in:
parent
9319a2c645
commit
72d04d7c7f
1 changed files with 6 additions and 1 deletions
|
|
@ -101,7 +101,12 @@ class CachableMessage(FastMCPBaseModel):
|
|||
"""A wrapper for Message that can be cached."""
|
||||
|
||||
role: str
|
||||
content: mcp.types.TextContent | mcp.types.EmbeddedResource
|
||||
content: (
|
||||
mcp.types.TextContent
|
||||
| mcp.types.ImageContent
|
||||
| mcp.types.AudioContent
|
||||
| mcp.types.EmbeddedResource
|
||||
)
|
||||
|
||||
|
||||
class CachablePromptResult(FastMCPBaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue