File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -362,7 +362,7 @@ def add_tool(
362
362
annotations: Optional ToolAnnotations providing additional tool information
363
363
structured_output: Controls whether the tool's output is structured or unstructured
364
364
- If None, auto-detects based on the function's return type annotation
365
- - If True, unconditionally creates a structured tool (return type annotation permitting)
365
+ - If True, creates a structured tool (return type annotation permitting)
366
366
- If False, unconditionally creates an unstructured tool
367
367
"""
368
368
self ._tool_manager .add_tool (
@@ -395,7 +395,7 @@ def tool(
395
395
annotations: Optional ToolAnnotations providing additional tool information
396
396
structured_output: Controls whether the tool's output is structured or unstructured
397
397
- If None, auto-detects based on the function's return type annotation
398
- - If True, unconditionally creates a structured tool (return type annotation permitting)
398
+ - If True, creates a structured tool (return type annotation permitting)
399
399
- If False, unconditionally creates an unstructured tool
400
400
401
401
Example:
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ def func_metadata(
187
187
the model.
188
188
structured_output: Controls whether the tool's output is structured or unstructured
189
189
- If None, auto-detects based on the function's return type annotation
190
- - If True, unconditionally creates a structured tool (return type annotation permitting)
190
+ - If True, creates a structured tool (return type annotation permitting)
191
191
- If False, unconditionally creates an unstructured tool
192
192
193
193
If structured, creates a Pydantic model for the function's result based on its annotation.
You can’t perform that action at this time.
0 commit comments