mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-25 15:04:18 +02:00
Update tool.py
This commit is contained in:
parent
4671741d42
commit
32f6945336
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ class Tool(BaseModel):
|
|||
|
||||
fn: Callable[..., Any]
|
||||
name: str = Field(description="Name of the tool")
|
||||
description: str | None = Field(default=None, description="Description of what the tool does")
|
||||
description: str | None = Field(
|
||||
default=None, description="Description of what the tool does"
|
||||
)
|
||||
parameters: dict[str, Any] = Field(description="JSON schema for tool parameters")
|
||||
tags: Annotated[set[str], BeforeValidator(_convert_set_defaults)] = Field(
|
||||
default_factory=set, description="Tags for the tool"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue