LLMs as an agent