diff --git a/backend/app/agent/tools.py b/backend/app/agent/tools.py index bbda99c..ea71b78 100644 --- a/backend/app/agent/tools.py +++ b/backend/app/agent/tools.py @@ -118,7 +118,11 @@ def get_recent_transactions( ) -> list[dict]: """Recent transactions, newest first. Use filters to narrow down. For billing-cycle scoped totals prefer get_cycle_summary.""" - q = select(Transaction) + q = select(Transaction).where( + Transaction.transaction_type.notin_( + [TransactionType.SALARY, TransactionType.DEPOSITO] + ) + ) if source: q = q.where(Transaction.source == TransactionSource(source)) if category_id is not None: