nova funcionalidade: reconciliacao temporal

This commit is contained in:
2026-09-02 13:07:21 -03:00
parent e6c254ff83
commit 76c8cdc738
190 changed files with 747 additions and 82 deletions

View File

@@ -49,6 +49,19 @@ class SuporteContasAgent(AgentRuntimeMixin):
)
state["mcp_results"] = tool_context
# A no-match retry is already a resolved control-flow decision: the
# framework/router concluded that the utterance is not understood. Do
# not ask another generative model to reinterpret it into a concrete
# business action (which can fabricate intent from noisy ASR).
if str(state.get("intent") or "") == "contas_no_match_retry":
return {
"answer": "Desculpe, não entendi. Poderia repetir de outra forma?",
"next_state": state.get("next_state") or "SUPORTE_CONTAS_ACTIVE",
"mcp_results": tool_context,
**self.transaction_state_patch(state),
}
clarification_message = self.transaction_clarification_message(state)
if clarification_message:
return {