mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-20 20:44:17 +02:00
Update content type in advanced_tool function (#2147)
This commit is contained in:
parent
9529fadd15
commit
24e2b09d95
1 changed files with 1 additions and 1 deletions
|
|
@ -625,7 +625,7 @@ from fastmcp.tools.tool import ToolResult
|
|||
def advanced_tool() -> ToolResult:
|
||||
"""Tool with full control over output."""
|
||||
return ToolResult(
|
||||
content=[TextContent(text="Human-readable summary")],
|
||||
content=[TextContent(type="text", text="Human-readable summary")],
|
||||
structured_content={"data": "value", "count": 42}
|
||||
)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue