File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/toolbox-core/src/toolbox_core Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ def __init__(
65
65
desc: The description of the remote tool (used as its docstring).
66
66
params: A list of `inspect.Parameter` objects defining the tool's
67
67
arguments and their types/defaults.
68
+ params_metadata: A mapping of param names to their types and descriptions.
68
69
required_authn_params: A dict of required authenticated parameters to a list
69
70
of services that provide values for them.
70
71
auth_service_token_getters: A dict of authService -> token (or callables that
@@ -103,6 +104,7 @@ def _schema_to_docstring(
103
104
params : Sequence [Parameter ],
104
105
params_metadata : Mapping [str , tuple [str , str ]],
105
106
) -> str :
107
+ """Creates a python function docstring from a tool and it's params."""
106
108
docstring = tool_description
107
109
if not params :
108
110
return docstring
You can’t perform that action at this time.
0 commit comments