subagents

package
v0.70.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Catalog

func Catalog(profiles []Profile) string

func WithParentSessionID added in v0.57.0

func WithParentSessionID(ctx context.Context, sessionID string) context.Context

Types

type AutoApprover

type AutoApprover struct{}

func (AutoApprover) RequestPermission

func (AutoApprover) RequestPermission(context.Context, string, string, string, bool) (bool, error)

type ClientFactory

type ClientFactory func(*config.ResolvedConfig) (llm.LLMClient, error)

type ConfigResolver

type ConfigResolver func(Profile) (*config.ResolvedConfig, error)

type Discovery

type Discovery struct {
	Profiles []Profile
	Warnings []string
	// contains filtered or unexported fields
}

func Discover

func Discover(workingDir string) Discovery

func LoadMetadata

func LoadMetadata(discovery Discovery) Discovery

type NoopDiffEmitter

type NoopDiffEmitter struct{}

func (NoopDiffEmitter) EmitDiff

func (NoopDiffEmitter) EmitDiff([]tools.EditDiffLine)

type Profile

type Profile struct {
	Name           string
	Description    string
	Permissions    []string
	PermissionsSet bool
	Provider       string
	Model          string
	ThinkingEffort string
	TimeoutSeconds int
	Hidden         bool
	Instructions   string
}

func Find

func Find(profiles []Profile, name string) (Profile, bool)

func ParseProfile

func ParseProfile(path string, data []byte) (Profile, []string, error)

type RegistryFactory

type RegistryFactory func(Profile, *tools.Registry) *tools.Registry

type Result

type Result struct {
	Agent  string `json:"agent"`
	Status string `json:"status"`
	Result string `json:"result,omitempty"`
	Error  string `json:"error,omitempty"`
}

type Runner

type Runner struct {
	WorkingDir       string
	Config           *config.ResolvedConfig
	GetProfiles      func() []Profile
	NewClient        ClientFactory
	GetRegistry      func() *tools.Registry
	ResolveConfig    ConfigResolver
	NewRegistry      RegistryFactory
	ProjectContext   func() string
	GetSkillsCatalog func() string
	Activity         chan<- ToolActivity
	Usage            chan<- usage.Record
	// contains filtered or unexported fields
}

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, agent, task string) (Result, error)

func (*Runner) RunDelegate

func (r *Runner) RunDelegate(ctx context.Context, agent string, instanceIndex, instanceCount int, task string) (any, error)

type ToolActivity

type ToolActivity struct {
	RunID  string
	CallID string
	Agent  string
	Event  core.StreamEvent
}

type ToolFactory

type ToolFactory struct {
	Guard      *filesystem.Guard
	MCPRuntime keenmcp.Runtime
}

func (ToolFactory) Registry

func (f ToolFactory) Registry(profile Profile, parent *tools.Registry) *tools.Registry

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL