We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11ed7d9 commit c6c2bb1Copy full SHA for c6c2bb1
python/thirdweb-ai/src/thirdweb_ai/adapters/mcp/mcp.py
@@ -9,15 +9,14 @@
9
10
def get_fastmcp_tools(tools: list[Tool]) -> list[FastMCPTool]:
11
return [
12
- FastMCPTool(
+ FastMCPTool( # type: ignore[reportUnknownVariableType]
13
fn=lambda _t=tool, **kwargs: _t.run_json(kwargs),
14
name=tool.name,
15
description=tool.description,
16
parameters=cast(dict[str, Any], tool.schema.get("parameters") or {}),
17
fn_metadata=func_metadata(tool._func_definition, skip_names=["self"]), # noqa: SLF001
18
is_async=False,
19
context_kwarg=None,
20
- annotations=tool.annotations,
21
)
22
for tool in tools
23
]
0 commit comments