Skip to content

doc: Update tools.py class comment to specify correct base class #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/toolbox_langchain/async_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(
schema.parameters = non_auth_non_bound_params

# Due to how pydantic works, we must initialize the underlying
# StructuredTool class before assigning values to member variables.
# BaseTool class before assigning values to member variables.
super().__init__(
name=name,
description=schema.description,
Expand Down
6 changes: 3 additions & 3 deletions src/toolbox_langchain/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(
"""

# Due to how pydantic works, we must initialize the underlying
# StructuredTool class before assigning values to member variables.
# BaseTool class before assigning values to member variables.
super().__init__(
name=async_tool.name,
description=async_tool.description,
Expand Down Expand Up @@ -181,8 +181,8 @@ def bind_param(
parameter.

Args:
param_name: The name of the bound parameter. param_value: The value
of the bound parameter, or a callable that
param_name: The name of the bound parameter.
param_value: The value of the bound parameter, or a callable that
returns the value.
strict: If True, a ValueError is raised if any of the provided bound
params is not defined in the tool's schema, or requires
Expand Down