# Guardrails executados pelo Agent Framework OCI.
# O domínio Contas apenas configura policies; a engine e o LLM dos rails são do framework.
input:
  - {code: INPUT_SIZE, enabled: true}
  - {code: MSK, enabled: true}
  - {code: DLEX_IN, enabled: true}
  - {code: TOX, enabled: true}
  - {code: PINJ, enabled: true}
  - {code: COER, enabled: true}
  - {code: VLOOP, enabled: true}

output:
  - {code: TIM_OOS, type: external, class: app.extensions.tim_guardrails:TimOutOfScopeRail, enabled: true}
  - {code: TIM_AOFERTA, type: external, class: app.extensions.tim_guardrails:TimProactiveOfferRail, enabled: true}
  - {code: TIM_REVPREC, type: external, class: app.extensions.tim_guardrails:TimPrematureActionRail, enabled: true}
#  - {code: TIM_FRASEOLOGIA, type: external, class: app.extensions.tim_guardrails:TimPhraseologyRail, enabled: true}
  - {code: PINJ, enabled: true}
  - {code: DLEX_OUT, enabled: true}
  - {code: TOXOUT, enabled: true}
  - {code: CMP, enabled: true, on_deny: retry}
  - {code: GND, enabled: true}
  - {code: ALUC_RISK, enabled: true}

retrieval:
  - {code: RAGSEC, enabled: true}
  - {code: RET_REL, enabled: true}

tool:
  - {code: TOOL_VAL, enabled: true}

output_supervisor:
  max_retries: 3
  fallback_message: "Não consegui validar essa resposta com segurança. Posso reformular a resposta."
  handover_message: "Vou encaminhar seu atendimento para continuidade com um especialista."
