From 9b6c2e88398ef4a36133051c180bb6d4a6e03e10 Mon Sep 17 00:00:00 2001 From: Julian Risch Date: Thu, 3 Apr 2025 11:46:45 +0200 Subject: [PATCH 1/3] update imports and docs links --- notebooks/github_issue_resolver_agent.ipynb | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/notebooks/github_issue_resolver_agent.ipynb b/notebooks/github_issue_resolver_agent.ipynb index d29f176..e2568bc 100644 --- a/notebooks/github_issue_resolver_agent.ipynb +++ b/notebooks/github_issue_resolver_agent.ipynb @@ -15,7 +15,7 @@ "- Retrieve and process file content \n", "- Determine the next steps for resolution and post them as a comment \n", "\n", - "For this, we'll use the new experimental [Agent](https://github.com/deepset-ai/haystack-experimental/blob/main/haystack_experimental/components/agents/agent.py) component. **`Agent`** is a Haystack component that implements a tool-calling functionality with provider-agnostic chat model support. We can use `Agent` either as a standalone component or within a pipeline.\n", + "For this, we'll use the new [Agent](https://docs.haystack.deepset.ai/docs/agent) component. **`Agent`** is a Haystack component that implements a tool-calling functionality with provider-agnostic chat model support. We can use `Agent` either as a standalone component or within a pipeline.\n", "\n", "Here's what our **Github Issue Resolver Pipeline** looks like:" ] @@ -77,16 +77,13 @@ "from getpass import getpass\n", "from typing import List\n", "\n", - "# Standard Haystack imports\n", "from haystack import Pipeline\n", + "from haystack.components.agents import Agent\n", "from haystack.components.builders import ChatPromptBuilder\n", "from haystack.dataclasses import ChatMessage, Document\n", - "from haystack_integrations.components.generators.anthropic.chat.chat_generator import AnthropicChatGenerator\n", - "\n", - "# Experimental imports needed for our Agent\n", - "from haystack_experimental.components.agents import Agent\n", - "from haystack_experimental.tools.component_tool import ComponentTool\n", - "from haystack_experimental.tools.from_function import tool" + "from haystack.tools.component_tool import ComponentTool\n", + "from haystack.tools.from_function import tool\n", + "from haystack_integrations.components.generators.anthropic.chat.chat_generator import AnthropicChatGenerator" ] }, { @@ -364,7 +361,7 @@ "source": [ "## Create a \"GithubRepositoryViewer\" Tool\n", "\n", - "We'll create a custom `GithubRepositoryViewer` component for our agent and convert it into a tool using the experimental [`ComponentTool`](https://github.com/deepset-ai/haystack-experimental/blob/main/haystack_experimental/tools/component_tool.py).\n", + "We'll create a custom `GithubRepositoryViewer` component for our agent and convert it into a tool using the [`ComponentTool`](https://docs.haystack.deepset.ai/docs/componenttool).\n", "\n", "### Custom `GithubRepositoryViewer` Component\n", "\n", From 5da58919cf821cd29d9e3a25a818bcca9bce29b4 Mon Sep 17 00:00:00 2001 From: Julian Risch Date: Thu, 3 Apr 2025 11:51:02 +0200 Subject: [PATCH 2/3] Update index.toml --- index.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.toml b/index.toml index ff60c29..5afaa4c 100644 --- a/index.toml +++ b/index.toml @@ -295,9 +295,7 @@ topics = ["Web-QA", "Data Scraping", "RAG"] title = "Build a GitHub Issue Resolver Agent" notebook = "github_issue_resolver_agent.ipynb" new = true -experimental = true topics = ["Function Calling", "Agents"] -discuss = "https://github.com/deepset-ai/haystack-experimental/discussions/209" [[cookbook]] title = "Extracting Metadata with an LLM" From 0029b036b73d2232f1843a7e552ceb8aeb0c5fa6 Mon Sep 17 00:00:00 2001 From: bilgeyucel Date: Thu, 3 Apr 2025 14:46:51 +0300 Subject: [PATCH 3/3] remove the redundant install output --- notebooks/github_issue_resolver_agent.ipynb | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/notebooks/github_issue_resolver_agent.ipynb b/notebooks/github_issue_resolver_agent.ipynb index e2568bc..4e90927 100644 --- a/notebooks/github_issue_resolver_agent.ipynb +++ b/notebooks/github_issue_resolver_agent.ipynb @@ -40,7 +40,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "metadata": { "colab": { "base_uri": "https://localhost:8080/" @@ -48,19 +48,7 @@ "id": "8jbGvWWa_ARY", "outputId": "c38564d6-8da1-4285-b6c7-53e00e1027c4" }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/440.2 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m440.2/440.2 kB\u001b[0m \u001b[31m15.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25h\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/239.5 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m239.5/239.5 kB\u001b[0m \u001b[31m11.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m72.0/72.0 kB\u001b[0m \u001b[31m2.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m126.5/126.5 kB\u001b[0m \u001b[31m5.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", - "\u001b[?25h" - ] - } - ], + "outputs": [], "source": [ "!pip install anthropic-haystack -q" ]