Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ NewTaskTool
Function
NewTaskTool
pkg/tools/builtin/task.go:48–50 ·
view source on GitHub ↗
NewTaskTool 创建Task工具
(config map[string]any)
Source
from the content-addressed store, hash-verified
46
47
// NewTaskTool 创建Task工具
48
func
NewTaskTool(config
map
[string]any) (tools.Tool, error) {
49
return
&TaskTool{}, nil
50
}
51
52
func
(t *TaskTool) Name() string {
53
return
"Task"
Callers
13
TestNewTaskTool
Function · 0.85
TestTaskTool_InputSchema
Function · 0.85
TestTaskTool_LaunchGeneralPurposeSubagent
Function · 0.85
TestTaskTool_InvalidSubagentType
Function · 0.85
TestTaskTool_MissingPrompt
Function · 0.85
TestTaskTool_EmptyPrompt
Function · 0.85
TestTaskTool_AllSubagentTypes
Function · 0.85
TestTaskTool_WithOptions
Function · 0.85
TestTaskTool_ConcurrentSubagentLaunch
Function · 0.85
TestTaskTool_PerformanceInfo
Function · 0.85
TestTaskTool_Metadata
Function · 0.85
BenchmarkTaskTool_LaunchSubagent
Function · 0.85
Calls
no outgoing calls
Tested by
13
TestNewTaskTool
Function · 0.68
TestTaskTool_InputSchema
Function · 0.68
TestTaskTool_LaunchGeneralPurposeSubagent
Function · 0.68
TestTaskTool_InvalidSubagentType
Function · 0.68
TestTaskTool_MissingPrompt
Function · 0.68
TestTaskTool_EmptyPrompt
Function · 0.68
TestTaskTool_AllSubagentTypes
Function · 0.68
TestTaskTool_WithOptions
Function · 0.68
TestTaskTool_ConcurrentSubagentLaunch
Function · 0.68
TestTaskTool_PerformanceInfo
Function · 0.68
TestTaskTool_Metadata
Function · 0.68
BenchmarkTaskTool_LaunchSubagent
Function · 0.68