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

Function SetGlobalTaskExecutorFactory

pkg/tools/builtin/task_executor.go:244–246  ·  view source on GitHub ↗

SetGlobalTaskExecutorFactory 设置全局任务执行器工厂 应用层在初始化时调用此函数注入 SubAgentManager

(factory SubAgentExecutorFactory)

Source from the content-addressed store, hash-verified

242// SetGlobalTaskExecutorFactory 设置全局任务执行器工厂
243// 应用层在初始化时调用此函数注入 SubAgentManager
244func SetGlobalTaskExecutorFactory(factory SubAgentExecutorFactory) {
245 GetGlobalTaskExecutor().SetExecutorFactory(factory)
246}
247
248// SetFactoryFromAgent agent 包调用此函数注入工厂
249// 这是 agent.InitializeTaskExecutor 使用的入口点

Callers

nothing calls this directly

Calls 2

GetGlobalTaskExecutorFunction · 0.85
SetExecutorFactoryMethod · 0.80

Tested by

no test coverage detected