NewTaskExecutor 创建任务执行器
()
| 45 | |
| 46 | // NewTaskExecutor 创建任务执行器 |
| 47 | func NewTaskExecutor() *TaskExecutor { |
| 48 | return &TaskExecutor{ |
| 49 | tasks: make(map[string]*TaskExecution), |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | // SetExecutorFactory 设置执行器工厂 |
| 54 | func (te *TaskExecutor) SetExecutorFactory(factory SubAgentExecutorFactory) { |
no outgoing calls
no test coverage detected