[Integration]: Time Budget Hook

オープン
#833 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
ai

調査の方向性

The issue describes a published integration in a separate repository and provides no files, tests, or entry points in this repository to start from. Read the linked integration and the referenced Haystack request to understand its status; there is no specific change or completion criterion stated for this issue.

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

説明

Stage

Ready: integration exists and works, proposing to list it

Integration or project name

Time Budget Hook

Integration type

Other

Published package or repo (if it exists)

https://pypi.org/project/time-budget-hook-haystack/ and https://github.com/aryamangodara/time-budget-hook-haystack

Need or proof of use

Requested in deepset-ai/haystack#13623. A Haystack maintainer asked for it to be built as a hook modeled on TokenBudgetHook, published as a separate integration rather than added to core (comment).

Use case: Agents behind an API with a request timeout, or Agents that call slow tools, need a limit on how long a run takes. max_agent_steps caps steps and TokenBudgetHook caps tokens, but neither caps time.

The package is published on PyPI and tested in CI on Python 3.10 and 3.14 against haystack-ai 3.2.0 and 3.5.0. It has full sync and async Agent runs in its test suite and an offline example script.

Short description

An Agent hook that stops a run once it has been running for a set number of seconds, ending with exit_reason == "time_budget_exceeded". It complements max_agent_steps and TokenBudgetHook for Agents that need to finish within a time limit, such as those behind an API with a request timeout or calling slow tools.

主要言語
Python
スター
114
フォーク
332
平均マージ
5日 1時間
マージ済み PR(30日)
13

環境構築

  • 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 を短くまとめたダイジェスト。