Update dependencies and fix type issues (#1268)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
This commit is contained in:
parent
a82c69bfd9
commit
0926613714
1 changed files with 303 additions and 286 deletions
|
|
@ -21,7 +21,7 @@ async def run_tool_test(
|
|||
tools: list[Tool],
|
||||
call_tool_handler: Callable[[str, dict[str, Any]], Awaitable[list[TextContent]]],
|
||||
test_callback: Callable[[ClientSession], Awaitable[CallToolResult]],
|
||||
) -> CallToolResult:
|
||||
) -> CallToolResult | None:
|
||||
"""Helper to run a tool test with minimal boilerplate.
|
||||
|
||||
Args:
|
||||
|
|
@ -33,6 +33,7 @@ async def run_tool_test(
|
|||
The result of the tool call
|
||||
"""
|
||||
server = Server("test")
|
||||
result = None
|
||||
|
||||
@server.list_tools()
|
||||
async def list_tools():
|
||||
|
|
|
|||
Loading…
Reference in a new issue