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

Struct SimpleSubAgent

pkg/middleware/subagent.go:495–499  ·  view source on GitHub ↗

SimpleSubAgent 简单子代理实现 用于测试和演示

Source from the content-addressed store, hash-verified

493// SimpleSubAgent 简单子代理实现
494// 用于测试和演示
495type SimpleSubAgent struct {
496 name string
497 prompt string
498 execFn func(ctx context.Context, description string, parentContext map[string]any) (string, error)
499}
500
501func NewSimpleSubAgent(name, prompt string, execFn func(context.Context, string, map[string]any) (string, error)) *SimpleSubAgent {
502 return &SimpleSubAgent{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected