mirror of
https://github.com/hoshikawa2/nemo_guardrails_configuration.git
synced 2026-07-10 01:14:19 +00:00
Funcional
This commit is contained in:
24
final_pkg/company_nemo_guardrails/prompts/revprec.py
Normal file
24
final_pkg/company_nemo_guardrails/prompts/revprec.py
Normal file
@@ -0,0 +1,24 @@
|
||||
def build_revprec_prompt(text, context):
|
||||
return f"""
|
||||
Você é um auditor de atendimento ao cliente.
|
||||
|
||||
Regra:
|
||||
- O agente NÃO pode afirmar que executou uma ação
|
||||
- SE essa ação NÃO foi validada previamente
|
||||
|
||||
Contexto:
|
||||
ajuste_validado = {context.get("ajuste_validado")}
|
||||
|
||||
Texto do agente:
|
||||
{text}
|
||||
|
||||
Pergunta:
|
||||
O agente cometeu verbalização prematura?
|
||||
|
||||
Responda JSON:
|
||||
{{
|
||||
"allowed": true/false,
|
||||
"label": "OK" ou "PREMATURA",
|
||||
"reason": "explicação curta"
|
||||
}}
|
||||
"""
|
||||
Reference in New Issue
Block a user