chore: create union for working with message content (#939)
This commit is contained in:
parent
185fa49fd1
commit
d69b290b65
1 changed files with 25 additions and 51 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue