Ajustes conforme relatorio de testes 2026-08-27

This commit is contained in:
2026-08-29 11:22:05 -03:00
parent 5cf3097e5a
commit 71f6c18e78
242 changed files with 246 additions and 9 deletions

View File

@@ -207,9 +207,13 @@ class EnterpriseRouter:
.replace("{{ relevant_conversation_context }}", str(relevant_conversation_context or ""))
.replace("{{ user_input }}", str(text or ""))
)
unmatched_value = str(classifier.get("unmatched_value") or "").strip()
protocol_options = list(allowed)
if unmatched_value:
protocol_options.append(unmatched_value)
protocol = (
"\n\nPROTOCOLO OBRIGATÓRIO DO FRAMEWORK: responda somente com UMA das "
f"opções permitidas, sem explicação adicional: {json.dumps(allowed, ensure_ascii=False)}."
f"opções permitidas, sem explicação adicional: {json.dumps(protocol_options, ensure_ascii=False)}."
)
try:
answer = await self.llm.ainvoke(

Some files were not shown because too many files have changed in this diff Show More