WithOnPlanComplete 设置计划完成回调
(fn func(plan *ExecutionPlan))
| 48 | |
| 49 | // WithOnPlanComplete 设置计划完成回调 |
| 50 | func WithOnPlanComplete(fn func(plan *ExecutionPlan)) ExecutorOption { |
| 51 | return func(e *Executor) { |
| 52 | e.onPlanComplete = fn |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | // NewExecutor 创建执行计划执行器 |
| 57 | // toolMap: 工具名称到工具实例的映射 |
no outgoing calls