Guardrails: Inline validator support
Los mantenedores suelen responder en 1 día
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Is your feature request related to a problem?
Guardrail entries in an LLM config can only reference a saved validator_config_id, preventing direct definition of validators and requiring deletion to disable, which loses setup.
Describe the solution you'd like
- Allow guardrail entries to be a
validator_config_idor an inline validator spec (type,on_fail, per-type params). - Restrict inline
typetogender_assumption_bias,pii_remover,profanity_free,topic_relevance_llm. - Add an
is_enabledflag (defaulttrue) to both entry types. Disabled entries remain saved but are not fetched or sent. - Send validators in config order to the guardrails service. Include
stageon inline specs and removeis_enabledto comply with validator schemas.
Original issue
Is your feature request related to a problem?
Guardrail entries in an LLM config blob (input_guardrails / output_guardrails) can only reference a validator_config_id saved in the guardrails service. A validator cannot be defined directly in the config, and the only way to turn one off is to delete it from the config version, which loses its setup.
Describe the solution you'd like
- Let each guardrail entry be either a
validator_config_idreference or an inline validator spec (type,on_fail, per-type params). - Restrict inline
typetogender_assumption_bias,pii_remover,profanity_free,topic_relevance_llmfor now. - Add an
is_enabledflag (defaulttrue) to both entry kinds. Disabled entries stay saved in the config version but are never fetched or sent to the guardrails service. - Send validators to the guardrails service in config order. Stamp
stageon inline specs and stripis_enabled, since the service's validator schemas forbid extra fields.
Comments: Implemented in #1245.
- Lenguaje dominante
- Python
- Estrellas
- 18
- Forks
- 11
- Merge medio
- 4 d 3 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Incluye un Dockerfile o un 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 ProjectTech4DevAI/kaapi-backend
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Los mantenedores suelen responder en 1 día
-
Celery: Investigate memory exitsPosiblemente ocupada @vprashrex la tomó hoy. Abierto
ProjectTech4DevAI/kaapi-backend#1268 · 2 asignados ·
Los mantenedores suelen responder en 1 día
-
Cloudflare: Investigate 520 error solutionsPosiblemente ocupada @Prajna1999 la tomó hoy. Abierto
ProjectTech4DevAI/kaapi-backend#1267 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
ProjectTech4DevAI/kaapi-backend#1266 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 50/100
ProjectTech4DevAI/kaapi-backend#1265 ·
Los mantenedores suelen responder en 1 día
Todos los issues de ProjectTech4DevAI/kaapi-backend
Issues similares
-
area:core-platform effort:S priority:P3 status:in-review type:test
Dificultad 2/5 Menos de una hora Aptitud para principiantes 80/100
randomparity/kdive#3246 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Requantification library converts m/z to mass with the hydrogen-atom mass instead of the proton massAbiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
nf-core/metaboigniter#130 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
common-workflow-language/cwl-utils#477 ·
Los mantenedores suelen responder en 1 día
-
Add dependabotAbiertofeat
Dificultad 2/5 Menos de una hora Aptitud para principiantes 72/100
open-nudge/opentemplate#204 ·
Los mantenedores suelen responder en 1 día
-
github-stale-ci-pr-closer: KV state is double-wrapped, never persists, and hits the depth-32 limitPosiblemente ocupada @VascoSch92 la tomó hoy. Abiertopriority:medium ready-for-dev
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
OpenHands/extensions#781 ·
Los mantenedores suelen responder en 1 día