Skip to content

Commit 60b77f0

Browse files
authored
Merge pull request #179 from deepset-ai/agent-imports
chore: update imports and docs links
2 parents b906b92 + 0029b03 commit 60b77f0

File tree

2 files changed

+8
-25
lines changed

2 files changed

+8
-25
lines changed

index.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,7 @@ topics = ["Web-QA", "Data Scraping", "RAG"]
295295
title = "Build a GitHub Issue Resolver Agent"
296296
notebook = "github_issue_resolver_agent.ipynb"
297297
new = true
298-
experimental = true
299298
topics = ["Function Calling", "Agents"]
300-
discuss = "https://github.com/deepset-ai/haystack-experimental/discussions/209"
301299

302300
[[cookbook]]
303301
title = "Extracting Metadata with an LLM"

notebooks/github_issue_resolver_agent.ipynb

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"- Retrieve and process file content \n",
1616
"- Determine the next steps for resolution and post them as a comment \n",
1717
"\n",
18-
"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",
18+
"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",
1919
"\n",
2020
"Here's what our **Github Issue Resolver Pipeline** looks like:"
2121
]
@@ -40,27 +40,15 @@
4040
},
4141
{
4242
"cell_type": "code",
43-
"execution_count": 1,
43+
"execution_count": null,
4444
"metadata": {
4545
"colab": {
4646
"base_uri": "https://localhost:8080/"
4747
},
4848
"id": "8jbGvWWa_ARY",
4949
"outputId": "c38564d6-8da1-4285-b6c7-53e00e1027c4"
5050
},
51-
"outputs": [
52-
{
53-
"name": "stdout",
54-
"output_type": "stream",
55-
"text": [
56-
"\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",
57-
"\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",
58-
"\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",
59-
"\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",
60-
"\u001b[?25h"
61-
]
62-
}
63-
],
51+
"outputs": [],
6452
"source": [
6553
"!pip install anthropic-haystack -q"
6654
]
@@ -77,16 +65,13 @@
7765
"from getpass import getpass\n",
7866
"from typing import List\n",
7967
"\n",
80-
"# Standard Haystack imports\n",
8168
"from haystack import Pipeline\n",
69+
"from haystack.components.agents import Agent\n",
8270
"from haystack.components.builders import ChatPromptBuilder\n",
8371
"from haystack.dataclasses import ChatMessage, Document\n",
84-
"from haystack_integrations.components.generators.anthropic.chat.chat_generator import AnthropicChatGenerator\n",
85-
"\n",
86-
"# Experimental imports needed for our Agent\n",
87-
"from haystack_experimental.components.agents import Agent\n",
88-
"from haystack_experimental.tools.component_tool import ComponentTool\n",
89-
"from haystack_experimental.tools.from_function import tool"
72+
"from haystack.tools.component_tool import ComponentTool\n",
73+
"from haystack.tools.from_function import tool\n",
74+
"from haystack_integrations.components.generators.anthropic.chat.chat_generator import AnthropicChatGenerator"
9075
]
9176
},
9277
{
@@ -364,7 +349,7 @@
364349
"source": [
365350
"## Create a \"GithubRepositoryViewer\" Tool\n",
366351
"\n",
367-
"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",
352+
"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",
368353
"\n",
369354
"### Custom `GithubRepositoryViewer` Component\n",
370355
"\n",

0 commit comments

Comments
 (0)