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

Function BenchmarkTaskTool_LaunchSubagent

pkg/tools/builtin/task_test.go:361–373  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

359}
360
361func BenchmarkTaskTool_LaunchSubagent(b *testing.B) {
362 tool, err := NewTaskTool(nil)
363 if err != nil {
364 b.Fatalf("Failed to create Task tool: %v", err)
365 }
366
367 input := map[string]any{
368 "subagent_type": "general-purpose",
369 "prompt": "Benchmark task",
370 }
371
372 BenchmarkTool(b, tool, input)
373}
374
375func BenchmarkTaskTool_LaunchWithFullOptions(b *testing.B) {
376 if testing.Short() {

Callers

nothing calls this directly

Calls 2

NewTaskToolFunction · 0.85
BenchmarkToolFunction · 0.85

Tested by

no test coverage detected