Skip to content

Commit

Permalink
Update haystack/tools/component_tool.py
Browse files Browse the repository at this point in the history
Co-authored-by: Daria Fokina <[email protected]>
  • Loading branch information
vblagoje and dfokina authored Jan 10, 2025
1 parent e122bf3 commit bcadea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/tools/component_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(self, component: Component, name: Optional[str] = None, description
"""
Create a Tool instance from a Haystack component.
:param component: The Haystack Component to wrap as a tool
:param component: The Haystack component to wrap as a tool.
:param name: Optional name for the tool (defaults to snake_case of Component class name)
:param description: Optional description (defaults to component's docstring).
:raises ValueError: If the component is invalid or schema generation fails.
Expand Down

0 comments on commit bcadea6

Please sign in to comment.