Guardrails: Inline validator support
Mantenedores costumam responder em até 1 dia
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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.
- Linguagem predominante
- Python
- Estrelas
- 18
- Forks
- 11
- Merge médio
- 4d 3h
- PRs com merge (30d)
- 13
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de ProjectTech4DevAI/kaapi-backend
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Mantenedores costumam responder em até 1 dia
-
Monitoring: Enhance alerting and securityTalvez já em andamento @Ayush8923 assumiu hoje. Abertainfrastructure
ProjectTech4DevAI/kaapi-backend#1271 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Celery: Investigate memory exitsTalvez já em andamento @vprashrex assumiu há 2 dias. Aberta
ProjectTech4DevAI/kaapi-backend#1268 · 2 responsáveis ·
Mantenedores costumam responder em até 1 dia
-
Cloudflare: Investigate 520 error solutionsTalvez já em andamento @Prajna1999 assumiu há 2 dias. Aberta
ProjectTech4DevAI/kaapi-backend#1267 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
ProjectTech4DevAI/kaapi-backend#1266 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de ProjectTech4DevAI/kaapi-backend
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
[Bug] to_ical lexicographical/default sorting moves URL property between two X-WR- propertiesAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
collective/icalendar#1968 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Deferred from #1869: Complete the companion pytest guardrail update noted in the PR description...Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 95/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
NousResearch/hermes-agent#140958 ·
Mantenedores costumam responder em até 1 dia
-
Bug triage/confirmed
Dificuldade 2/5 Meio dia Facilidade para iniciantes 85/100
agentscope-ai/agentscope#3355 ·
Mantenedores costumam responder em até 2 dias