AGILE: A Novel Framework of LLM Agents