mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-24 06:24:18 +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
|
|
@ -21,7 +21,8 @@ from pydantic import AnyUrl, BaseModel
|
|||
from fastmcp import Context, FastMCP
|
||||
from fastmcp.client.client import CallToolResult, Client
|
||||
from fastmcp.client.transports import FastMCPTransport
|
||||
from fastmcp.prompts.prompt import FunctionPrompt, Message, Prompt
|
||||
from fastmcp.prompts.function_prompt import FunctionPrompt
|
||||
from fastmcp.prompts.prompt import Message, Prompt
|
||||
from fastmcp.resources.resource import Resource
|
||||
from fastmcp.server.middleware.caching import (
|
||||
CachableToolResult,
|
||||
|
|
|
|||
|
|
@ -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