chore(core): remove arg types from docstrings (#33388)

* Remove types args
* Remove types from Returns
* Remove types from Yield
* Replace `kwargs` by `**kwargs` when needed
This commit is contained in:
Christophe Bornet
2025-10-09 19:13:23 +02:00
committed by GitHub
parent 3576e690fa
commit f405a2c57d
53 changed files with 680 additions and 763 deletions

View File

@@ -777,7 +777,7 @@ class ChildTool(BaseTool):
run_id: The id of the run. Defaults to `None`.
config: The configuration for the tool. Defaults to `None`.
tool_call_id: The id of the tool call. Defaults to `None`.
kwargs: Keyword arguments to be passed to tool callbacks (event handler)
**kwargs: Keyword arguments to be passed to tool callbacks (event handler)
Returns:
The output of the tool.
@@ -889,7 +889,7 @@ class ChildTool(BaseTool):
run_id: The id of the run. Defaults to `None`.
config: The configuration for the tool. Defaults to `None`.
tool_call_id: The id of the tool call. Defaults to `None`.
kwargs: Keyword arguments to be passed to tool callbacks
**kwargs: Keyword arguments to be passed to tool callbacks
Returns:
The output of the tool.

View File

@@ -180,7 +180,7 @@ class Tool(BaseTool):
return_direct: Whether to return the output directly. Defaults to `False`.
args_schema: The schema of the tool's input arguments. Defaults to `None`.
coroutine: The asynchronous version of the function. Defaults to `None`.
kwargs: Additional arguments to pass to the tool.
**kwargs: Additional arguments to pass to the tool.
Returns:
The tool.

View File

@@ -164,7 +164,7 @@ class StructuredTool(BaseTool):
error_on_invalid_docstring: if ``parse_docstring`` is provided, configure
whether to raise ValueError on invalid Google Style docstrings.
Defaults to `False`.
kwargs: Additional arguments to pass to the tool
**kwargs: Additional arguments to pass to the tool
Returns:
The tool.