Remove "unconditionally" from conditional description (#1289)

This commit is contained in:
Mike Salvatore 2025-09-23 12:13:26 -04:00 • committed by GitHub
commit 7629fe6b97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -362,7 +362,7 @@ class FastMCP(Generic[LifespanResultT]):
annotations: Optional ToolAnnotations providing additional tool information annotations: Optional ToolAnnotations providing additional tool information
structured_output: Controls whether the tool's output is structured or unstructured 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 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 False, unconditionally creates an unstructured tool
""" """
self._tool_manager.add_tool( self._tool_manager.add_tool(
@ -395,7 +395,7 @@ class FastMCP(Generic[LifespanResultT]):
annotations: Optional ToolAnnotations providing additional tool information annotations: Optional ToolAnnotations providing additional tool information
structured_output: Controls whether the tool's output is structured or unstructured 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 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 False, unconditionally creates an unstructured tool
Example: Example:

View file

@ -187,7 +187,7 @@ def func_metadata(
the model. the model.
structured_output: Controls whether the tool's output is structured or unstructured 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 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 False, unconditionally creates an unstructured tool
If structured, creates a Pydantic model for the function's result based on its annotation. If structured, creates a Pydantic model for the function's result based on its annotation.