AGoT: a Reasoning Framework for LLM Agents