Skip to content

Commit d31de25

Browse files
authored
doc: Update tools.py class comment to specify correct base class (#70)
* doc: Update tools.py class comment to specify correct base class * doc: Fix docstring to show parameters in separate lines.
1 parent 3c9b4e6 commit d31de25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/toolbox_langchain/async_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(
121121
schema.parameters = non_auth_non_bound_params
122122

123123
# Due to how pydantic works, we must initialize the underlying
124-
# StructuredTool class before assigning values to member variables.
124+
# BaseTool class before assigning values to member variables.
125125
super().__init__(
126126
name=name,
127127
description=schema.description,

src/toolbox_langchain/tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(
4646
"""
4747

4848
# Due to how pydantic works, we must initialize the underlying
49-
# StructuredTool class before assigning values to member variables.
49+
# BaseTool class before assigning values to member variables.
5050
super().__init__(
5151
name=async_tool.name,
5252
description=async_tool.description,
@@ -181,8 +181,8 @@ def bind_param(
181181
parameter.
182182
183183
Args:
184-
param_name: The name of the bound parameter. param_value: The value
185-
of the bound parameter, or a callable that
184+
param_name: The name of the bound parameter.
185+
param_value: The value of the bound parameter, or a callable that
186186
returns the value.
187187
strict: If True, a ValueError is raised if any of the provided bound
188188
params is not defined in the tool's schema, or requires

0 commit comments

Comments
 (0)