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