Raise a ValueError when a tool's inputs_from_state key is missing from the Agent's state_schema

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
1/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

Read haystack/components/agents/agent.py and the unit tests for _warn_on_inputs_from_state_missing_from_schema; check the State docs page and the release note format for upgrade notes. Replace the warning behavior with the specified error and rename the helper, then update tests, docs, and the upgrade release note. The issue says this work will be handled internally and is not open to external contributions.

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

説明

handled internally

Follow up to #13891

Since #13891, the Agent emits a FutureWarning at the start of each run when a tool's inputs_from_state reads a key that is not declared in the Agent's state_schema. State only holds keys from the schema, so such a key is never injected and the tool runs on its default or fails.

The warning says this will raise a ValueError starting with Haystack 3.7.

To do
  • Replace the FutureWarning in _warn_on_inputs_from_state_missing_from_schema (haystack/components/agents/agent.py) with a ValueError and rename the helper accordingly
  • Update the unit tests to expect the error
  • Update the State docs page, which says the Agent emits a FutureWarning
  • Add an upgrade release note

👋 Hello there! This issue will be handled internally and isn't open for external contributions. If you'd like to contribute, please take a look at issues labeled contributions welcome or good first issue. We'd really appreciate it!

主要言語
Python
スター
27.1k
フォーク
3.5k
平均マージ
1日 8時間
マージ済み PR(30日)
239

環境構築

はじめの一歩

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

deepset-ai/haystack のほかの issue

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

似ている issue

Python の issue をもっと見る

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

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