[Integration]: haystack-loop-detection

オープン 初心者向け
#817 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 12 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
ai, documentation

調査の方向性

haystack-integrations のコントリビューション手順と既存のインテグレーション項目を確認し、インテグレーションの掲載方法を把握します。issue 内のパッケージとリポジトリへのリンクを使って、公開されている名前と説明を確認します。プロジェクトで定められた形式で haystack-loop-detection の項目を追加すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Stage

Ready: integration exists and works, proposing to list it

Integration or project name

haystack-loop-detection

Integration type

Custom Component

Published package or repo (if it exists)

https://pypi.org/project/haystack-loop-detection/ and https://github.com/LowmistLMT/haystack-loop-detection

Need or proof of use

In multi-step Haystack Agent workflows (such as iterative search/fetch or file-editing tasks), models occasionally get stuck repeating identical tool calls, oscillating between two tools in a short cycle, or retrying a failing tool until max_agent_steps or token budgets are exhausted.

Originally proposed in https://github.com/deepset-ai/haystack/pull/13981, where @sjrl recommended publishing it as a standalone package and listing it in haystack-integrations. The package (haystack-loop-detection==0.1.0) is live on PyPI, tested on Python 3.11/3.12 with Haystack 3.2.0 and 3.5.0 (21 unit tests), and the integration page PR is ready to submit.

Short description

Stateless before_llm Agent hook (ToolLoopDetectionHook) for Haystack >=3.2.0 that detects exact tool-call repeats, alternating ping-pong cycles, and consecutive tool errors, injects a <system-reminder> nudge to encourage recovery, and stops persistent loops with exit_reason="tool_loop_detected".

主要言語
Python
スター
114
フォーク
328
平均マージ
5日 12分
マージ済み PR(30日)
12

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

deepset-ai/haystack-integrations のほかの issue

deepset-ai/haystack-integrations の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。