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

Function SetFactoryFromAgent

pkg/tools/builtin/task_executor.go:250–252  ·  view source on GitHub ↗

SetFactoryFromAgent agent 包调用此函数注入工厂 这是 agent.InitializeTaskExecutor 使用的入口点

(factory SubAgentExecutorFactory)

Source from the content-addressed store, hash-verified

248// SetFactoryFromAgent agent 包调用此函数注入工厂
249// 这是 agent.InitializeTaskExecutor 使用的入口点
250func SetFactoryFromAgent(factory SubAgentExecutorFactory) {
251 GetGlobalTaskExecutor().SetExecutorFactory(factory)
252}

Callers 1

InitializeTaskExecutorFunction · 0.92

Calls 2

GetGlobalTaskExecutorFunction · 0.85
SetExecutorFactoryMethod · 0.80

Tested by

no test coverage detected