Agentic ai| how it work