haystack/releasenotes/notes/create-tool-from-function-b4b318574f3fb3a0.yaml
Stefano Fiorucci 08cf09f83f
refactor: create_tool_from_function + tool decorator (#8697)
* create_tool_from_function + decorator

* release note

* improve usage example

* add imports to @tool usage example

* clarify docstrings

* small docstring addition
2025-01-10 12:15:15 +01:00

7 lines
242 B
YAML

---
features:
- |
Added a new `create_tool_from_function` function to create a `Tool` instance from a function, with automatic
generation of name, description and parameters.
Added a `tool` decorator to achieve the same result.