Raise a ValueError when a tool's inputs_from_state key is missing from the Agent's state_schema
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 1/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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!
- Lenguaje dominante
- Python
- Estrellas
- 27.1k
- Forks
- 3.5k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 239
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de deepset-ai/haystack
-
BlockingConfirmationStrategy ignores an empty argument replacementPosiblemente ocupada @Aarkin7 la tomó hace 3 días. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
deepset-ai/haystack#13863 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
deepset-ai/haystack#13830 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
DocumentSplitter misplaces repeated literal chunks from an overlapping custom splitterPosiblemente ocupada @davidsbatista la tomó hace 7 días. AbiertoP2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
deepset-ai/haystack#13806 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
CSVToDocument accepts an unsupported conversion_mode and silently converts in row modePosiblemente ocupada @Lesereingrape la tomó hace 54 días. AbiertoP3
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
deepset-ai/haystack#13070 ·
Los mantenedores suelen responder en 1 día
-
InMemoryDocumentStore: count_unique_metadata_by_filter and get_metadata_field_unique_values disagree on int/float/bool valuesPosiblemente ocupada @sjrl la tomó hace 14 días. AbiertoP3
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
deepset-ai/haystack#13040 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de deepset-ai/haystack
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
micronaut-projects/micronaut-core#14585 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
langgenius/graphon#443 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
[BUG]: Management endpoints /v1/memory/stats and /v1/memory/counts bypass API key authenticationAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
docling-project/docling-serve#788 ·
Los mantenedores suelen responder en 1 día
-
Mend: dependency security vulnerability untriaged
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
opensearch-project/cross-cluster-replication#1805 ·
Los mantenedores suelen responder en 1 día