mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 14:04:18 +02:00
updated add tool docstring
This commit is contained in:
parent
23e1d1e8e5
commit
5c75af1fbc
1 changed files with 1 additions and 5 deletions
|
|
@ -490,11 +490,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|||
with the Context type annotation. See the @tool decorator for examples.
|
||||
|
||||
Args:
|
||||
fn: The function to register as a tool
|
||||
name: Optional name for the tool (defaults to function name)
|
||||
description: Optional description of what the tool does
|
||||
tags: Optional set of tags for categorizing the tool
|
||||
annotations: Optional annotations about the tool's behavior
|
||||
tool: The Tool instance to register
|
||||
"""
|
||||
self._tool_manager.add_tool(tool)
|
||||
self._cache.clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue