Raise a ValueError when a tool's inputs_from_state key is missing from the Agent's state_schema
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 1/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
FutureWarningin_warn_on_inputs_from_state_missing_from_schema(haystack/components/agents/agent.py) with aValueErrorand 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
upgraderelease 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!
- Dominant language
- Python
- Stars
- 27.1k
- Forks
- 3.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 239
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from deepset-ai/haystack
-
BlockingConfirmationStrategy ignores an empty argument replacementPossibly taken @Aarkin7 claimed this 3 days ago. Open
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
deepset-ai/haystack#13863 · 2 comments ·
Maintainers usually reply within 1 day
-
P2
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
deepset-ai/haystack#13830 · 4 comments ·
Maintainers usually reply within 1 day
-
DocumentSplitter misplaces repeated literal chunks from an overlapping custom splitterPossibly taken @davidsbatista claimed this 7 days ago. OpenP2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepset-ai/haystack#13806 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
CSVToDocument accepts an unsupported conversion_mode and silently converts in row modePossibly taken @Lesereingrape claimed this 54 days ago. OpenP3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
deepset-ai/haystack#13070 ·
Maintainers usually reply within 1 day
-
InMemoryDocumentStore: count_unique_metadata_by_filter and get_metadata_field_unique_values disagree on int/float/bool valuesPossibly taken @sjrl claimed this 14 days ago. OpenP3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepset-ai/haystack#13040 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in deepset-ai/haystack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
micronaut-projects/micronaut-core#14585 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
langgenius/graphon#443 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
[BUG]: Management endpoints /v1/memory/stats and /v1/memory/counts bypass API key authenticationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
docling-project/docling-serve#788 ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability untriaged
Difficulty 1/5 Under an hour Newbie friendliness 78/100
opensearch-project/cross-cluster-replication#1805 ·
Maintainers usually reply within 1 day