Well algorithms don't think. That's what LLM's are.
Your digital thermometer doesn't think either.
Your digital thermometer doesn't think either.
Simple algorithms can, eg, be designed to report whether they hit an exceptional case and activated a different set of operations than usual.