Remove "unconditionally" from conditional description (#1289)
This commit is contained in:
parent
4fb975c6dc
commit
7629fe6b97
2 changed files with 3 additions and 3 deletions
|
|
@ -362,7 +362,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|||
annotations: Optional ToolAnnotations providing additional tool information
|
||||
structured_output: Controls whether the tool's output is structured or unstructured
|
||||
- If None, auto-detects based on the function's return type annotation
|
||||
- If True, unconditionally creates a structured tool (return type annotation permitting)
|
||||
- If True, creates a structured tool (return type annotation permitting)
|
||||
- If False, unconditionally creates an unstructured tool
|
||||
"""
|
||||
self._tool_manager.add_tool(
|
||||
|
|
@ -395,7 +395,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|||
annotations: Optional ToolAnnotations providing additional tool information
|
||||
structured_output: Controls whether the tool's output is structured or unstructured
|
||||
- If None, auto-detects based on the function's return type annotation
|
||||
- If True, unconditionally creates a structured tool (return type annotation permitting)
|
||||
- If True, creates a structured tool (return type annotation permitting)
|
||||
- If False, unconditionally creates an unstructured tool
|
||||
|
||||
Example:
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ def func_metadata(
|
|||
the model.
|
||||
structured_output: Controls whether the tool's output is structured or unstructured
|
||||
- If None, auto-detects based on the function's return type annotation
|
||||
- If True, unconditionally creates a structured tool (return type annotation permitting)
|
||||
- If True, creates a structured tool (return type annotation permitting)
|
||||
- If False, unconditionally creates an unstructured tool
|
||||
|
||||
If structured, creates a Pydantic model for the function's result based on its annotation.
|
||||
|
|
|
|||
Loading…
Reference in a new issue