Skip to content

Commit 10601aa

Browse files
authored
Add docstrings
1 parent beab901 commit 10601aa

File tree

1 file changed

+2
-0
lines changed
  • packages/toolbox-core/src/toolbox_core

1 file changed

+2
-0
lines changed

packages/toolbox-core/src/toolbox_core/tool.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def __init__(
6565
desc: The description of the remote tool (used as its docstring).
6666
params: A list of `inspect.Parameter` objects defining the tool's
6767
arguments and their types/defaults.
68+
params_metadata: A mapping of param names to their types and descriptions.
6869
required_authn_params: A dict of required authenticated parameters to a list
6970
of services that provide values for them.
7071
auth_service_token_getters: A dict of authService -> token (or callables that
@@ -103,6 +104,7 @@ def _schema_to_docstring(
103104
params: Sequence[Parameter],
104105
params_metadata: Mapping[str, tuple[str, str]],
105106
) -> str:
107+
"""Creates a python function docstring from a tool and it's params."""
106108
docstring = tool_description
107109
if not params:
108110
return docstring

0 commit comments

Comments
 (0)