ExecutionPlan 返回执行计划管理器 首次调用时延迟初始化
()
| 892 | // ExecutionPlan 返回执行计划管理器 |
| 893 | // 首次调用时延迟初始化 |
| 894 | func (a *Agent) ExecutionPlan() *ExecutionPlanManager { |
| 895 | a.mu.Lock() |
| 896 | defer a.mu.Unlock() |
| 897 | |
| 898 | if a.executionPlanMgr == nil { |
| 899 | a.executionPlanMgr = NewExecutionPlanManager(a) |
| 900 | } |
| 901 | return a.executionPlanMgr |
| 902 | } |
| 903 | |
| 904 | // Send 发送消息 |
| 905 | func (a *Agent) Send(ctx context.Context, text string) error { |
nothing calls this directly
no test coverage detected