Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed Jan 10, 2025
1 parent 2fba554 commit 7bcffba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pydoc/config/tools_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ loaders:
- type: haystack_pydoc_tools.loaders.CustomPythonLoader
search_path: [../../../haystack/tools]
modules:
["tool"]
["tool", "component_tool"]
ignore_when_discovered: ["__init__"]
processors:
- type: filter
Expand Down
7 changes: 6 additions & 1 deletion haystack/tools/component_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ class ComponentTool(Tool):
Key features:
- Automatic LLM tool calling schema generation from Component input sockets
- Type conversion and validation for Component inputs
- Support for complex types (dataclasses, Pydantic models, lists)
- Support for complex types:
- dataclasses
- custom classes
- Lists of dataclasses or custom classes
- Basic types (str, int, float, bool, dict)
- Lists of basic types
- Automatic name generation from Component class name
- Description extraction from Component docstrings
Expand Down

0 comments on commit 7bcffba

Please sign in to comment.