feat: support audio content (#725)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
This commit is contained in:
parent
2bce10bdb1
commit
7123556a34
1 changed files with 60 additions and 19 deletions
|
|
@ -12,6 +12,7 @@ from mcp.client.session import ClientSession
|
|||
from mcp.server.lowlevel import Server
|
||||
from mcp.shared.exceptions import McpError
|
||||
from mcp.types import (
|
||||
AudioContent,
|
||||
EmbeddedResource,
|
||||
ImageContent,
|
||||
TextContent,
|
||||
|
|
@ -37,7 +38,7 @@ async def test_notification_validation_error(tmp_path: Path):
|
|||
@server.call_tool()
|
||||
async def slow_tool(
|
||||
name: str, arg
|
||||
) -> Sequence[TextContent | ImageContent | EmbeddedResource]:
|
||||
) -> Sequence[TextContent | ImageContent | AudioContent | EmbeddedResource]:
|
||||
nonlocal request_count
|
||||
request_count += 1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue