[Integration]: haystack-loop-detection

Aperta Adatta ai principianti
#817 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 12 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
ai, documentation

Direzione di ricerca

Inizia dalle istruzioni per contribuire a haystack-integrations e dalle voci di integrazione esistenti per vedere come vengono elencate le integrazioni. Usa i link al pacchetto e al repository nell’issue per confermare il nome pubblicato e la descrizione. Il lavoro è completo quando viene aggiunta una voce per haystack-loop-detection nel formato stabilito dal progetto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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".

Lingua principale
Python
Stelle
114
Fork
328
Merge medio
5g 12m
PR unite (30g)
12

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di deepset-ai/haystack-integrations

Tutte le issue di deepset-ai/haystack-integrations

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.