mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-28 02:10:38 +02:00
Decorators return functions instead of component objects (#2856)
This commit is contained in:
parent
766641a1a5
commit
1b723f302d
38 changed files with 2406 additions and 1606 deletions
|
|
@ -16,7 +16,8 @@ from fastmcp.server.middleware.tool_injection import (
|
|||
ResourceToolMiddleware,
|
||||
ToolInjectionMiddleware,
|
||||
)
|
||||
from fastmcp.tools.tool import FunctionTool, Tool
|
||||
from fastmcp.tools.function_tool import FunctionTool
|
||||
from fastmcp.tools.tool import Tool
|
||||
|
||||
|
||||
def multiply_fn(a: int, b: int) -> int:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue