from __future__ import annotations

from core.assist.repeat_answer import find_repeat_answer, learn_from_message
from core.models import Message
from core.tasks.engine import process_inbound_task_intelligence


async def process_inbound_assist(message: Message) -> None:
    if message is None:
        return
    await learn_from_message(message)
    await find_repeat_answer(message.user, message)
    await process_inbound_task_intelligence(message)
