1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Plan-Execute Agent 示例
//!
//! 展示如何使用 PlanExecuteAgent 进行规划-执行-重规划循环。
//!
//! # 运行
//! ```bash
//! cargo run --example agent_plan_execute
//! ```
//!
//! # 环境变量
//! - `OPENAI_API_KEY`:OpenAI API 密钥(必需)
async