chore: create union for working with message content (#939)

This commit is contained in:
Luca Chang 2025-06-12 00:01:33 -07:00 • committed by GitHub
commit d69b290b65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -384,9 +384,7 @@ class Server(Generic[LifespanResultT, RequestT]):
def decorator(
func: Callable[
...,
Awaitable[
Iterable[types.TextContent | types.ImageContent | types.AudioContent | types.EmbeddedResource]
],
Awaitable[Iterable[types.Content]],
],
):
logger.debug("Registering handler for CallToolRequest")