Couldn't you just do AgentExecutor(...).run(task="...") and launch an autonomous AI in only one line?

The “Do X in Y lines of code” thing where the Y lines of code include import statements is so, so silly.