MCPcopy Create free account
hub / github.com/astercloud/aster / SetExecutorFactory

Method SetExecutorFactory

pkg/tools/builtin/task_executor.go:54–58  ·  view source on GitHub ↗

SetExecutorFactory 设置执行器工厂

(factory SubAgentExecutorFactory)

Source from the content-addressed store, hash-verified

52
53// SetExecutorFactory 设置执行器工厂
54func (te *TaskExecutor) SetExecutorFactory(factory SubAgentExecutorFactory) {
55 te.mu.Lock()
56 defer te.mu.Unlock()
57 te.executorFactory = factory
58}
59
60// Execute 执行任务(同步)
61func (te *TaskExecutor) Execute(ctx context.Context, agentType, prompt string, opts *TaskExecuteOptions) (*TaskExecution, error) {

Callers 2

SetFactoryFromAgentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected