Ajustes no agente de contas
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.
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.
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.
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.
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.
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.
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.
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.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
from app.agents.faturas_agent import FaturasAgent
|
||||
|
||||
|
||||
def test_s23_live_balance_without_backend_uses_meu_tim_guidance():
|
||||
state = {"user_text": "quanto de internet eu ainda tenho pra usar esse mês?"}
|
||||
msg = FaturasAgent._live_internet_balance_guidance(state, [])
|
||||
assert msg is not None
|
||||
assert "Não consigo consultar o saldo de internet em tempo real por aqui" in msg
|
||||
assert "Meu TIM" in msg
|
||||
assert "dados consultados" not in msg
|
||||
|
||||
|
||||
def test_s23_generic_internet_question_is_not_intercepted():
|
||||
state = {"user_text": "como funciona a internet do meu plano?"}
|
||||
assert FaturasAgent._live_internet_balance_guidance(state, []) is None
|
||||
|
||||
|
||||
def test_s23_real_time_backend_evidence_takes_precedence():
|
||||
state = {"user_text": "quanto de internet eu ainda tenho pra usar esse mês?"}
|
||||
tools = [{"ok": True, "result": {"remaining_data_gb": 7.5}}]
|
||||
assert FaturasAgent._live_internet_balance_guidance(state, tools) is None
|
||||
Reference in New Issue
Block a user