feat: support audio content (#725)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
This commit is contained in:
Luca Chang 2025-06-07 07:32:11 -07:00 • committed by GitHub
commit 7123556a34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,12 @@ def main(
@app.call_tool()
async def call_tool(
name: str, arguments: dict
) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]:
) -> list[
types.TextContent
| types.ImageContent
| types.AudioContent
| types.EmbeddedResource
]:
ctx = app.request_context
interval = arguments.get("interval", 1.0)
count = arguments.get("count", 5)