nova funcionalidade: reconciliacao temporal
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user