From dc0abe569b64c56e55219e08c90b6b2a445070a5 Mon Sep 17 00:00:00 2001 From: Vladimir Blagojevic Date: Thu, 9 Jan 2025 13:47:19 +0100 Subject: [PATCH] Add reno note --- haystack/tools/component_tool.py | 2 +- releasenotes/notes/add-component-tool-ffe9f9911ea055a6.yaml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/add-component-tool-ffe9f9911ea055a6.yaml diff --git a/haystack/tools/component_tool.py b/haystack/tools/component_tool.py index a7f4f336b0..eeb4118b0b 100644 --- a/haystack/tools/component_tool.py +++ b/haystack/tools/component_tool.py @@ -30,7 +30,7 @@ class ComponentTool(Tool): """ A Tool that wraps Haystack components, allowing them to be used as tools by LLMs. - ComponentTool automatically generates OpenAI-compatible function schemas from Component input sockets, + ComponentTool automatically generates LLM-compatible tool schemas from Component input sockets, which are derived from the component's `run` method signature and type hints. diff --git a/releasenotes/notes/add-component-tool-ffe9f9911ea055a6.yaml b/releasenotes/notes/add-component-tool-ffe9f9911ea055a6.yaml new file mode 100644 index 0000000000..9ed42c920d --- /dev/null +++ b/releasenotes/notes/add-component-tool-ffe9f9911ea055a6.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Introduced the ComponentTool, a new tool that wraps Haystack components allowing them to be utilized as tools for LLMs (various ChatGenerators). This tool supports automatic function schema generation, input type validation, and offers enhanced integration with various data types.