Skip to content

chore: update imports and docs links #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions index.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
31 changes: 8 additions & 23 deletions notebooks/github_issue_resolver_agent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
]
Expand All @@ -40,27 +40,15 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"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"
]
Expand All @@ -77,16 +65,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"
]
},
{
Expand Down Expand Up @@ -364,7 +349,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",
Expand Down