Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 Changes in this version + const AgentTypeAutomationManager + var AutomationManagerAgent = BuiltInAgentDefinition v0.1.0 Jun 22, 2026 Changes in this version + const AgentPrompt + const AgentTypeBrowse + const AgentTypeExplore + const AgentTypeGeneralPurpose + const AgentTypePlan + const AgentTypeSeshatCore + const AgentTypeVerify + const CategoryCompliance + const CategoryPermissions + const CategorySecurity + const CategoryStructure + const CategorySyntax + const DefaultMaxTurns + const DefaultSubAgentMaxTurns + const DefaultSubAgentTimeout + const DescriptionAgent + const DescriptionVerify + const MaxAbsoluteSubAgentDepth + const MaxSubAgentDepth + const SearchHintAgent + const SearchHintVerify + const SeverityCritical + const SeverityHigh + const SeverityLow + const SeverityMedium + const ToolNameAgent + var BrowseAgent = BuiltInAgentDefinition + var BuiltInAgents = []BuiltInAgentDefinition + var ExploreAgent = BuiltInAgentDefinition + var GeneralPurposeAgent = BuiltInAgentDefinition + var PlanAgent = BuiltInAgentDefinition + var SeshatCoreAgent = BuiltInAgentDefinition + var VerifyAgent = BuiltInAgentDefinition + func Description() string + func ListAvailableAgents() []map[string]any + type AgentDefinition struct + AgentType string + Background bool + BaseDir string + DisallowedTools []string + Effort int + Filename string + GetSystemPrompt func() string + Isolation string + MaxTurns int + McpServers []string + Memory string + Model string + PermissionMode types.PermissionMode + Skills []string + Source AgentSource + Tools []string + WhenToUse string + func ToAgentDefinition(builtIn BuiltInAgentDefinition) *AgentDefinition + func (a *AgentDefinition) GetToolPatterns() []string + type AgentEvent struct + AgentID string + AgentType string + Error string + EventType AgentEventType + Metadata map[string]any + Progress *AgentProgress + Result *RunResult + Task string + Timestamp time.Time + ToolName string + Turn int + type AgentEventListener func(event AgentEvent) + type AgentEventType string + const AgentEventCancelled + const AgentEventCompleted + const AgentEventFailed + const AgentEventProgress + const AgentEventStarted + const AgentEventToolUse + const AgentEventTurnUpdate + type AgentProfile struct + CreatedAt time.Time + ID string + Metadata map[string]string + Model string + Nickname string + Role string + Skills []string + SystemPromptTemplate string + TeamID string + UpdatedAt time.Time + func BuiltInProfiles() []AgentProfile + func NewAgentProfile(nickname, role, systemPromptTemplate string) AgentProfile + func (p AgentProfile) SystemPrompt() string + type AgentProgress struct + CurrentTurn int + MaxTurns int + Output string + PercentComplete float64 + ToolUses int + type AgentRegistry struct + func NewAgentRegistry() *AgentRegistry + func (r *AgentRegistry) All() []*AgentDefinition + func (r *AgentRegistry) Get(slug string) (*AgentDefinition, bool) + func (r *AgentRegistry) LoadFromSkills(cwd, userID string) error + func (r *AgentRegistry) Register(def *AgentDefinition) + type AgentSource string + const AgentSourceBuiltIn + const AgentSourceProject + const AgentSourceUser + type AgentStatus string + const AgentStatusCancelled + const AgentStatusCompleted + const AgentStatusFailed + const AgentStatusPending + const AgentStatusRunning + type AsyncAgent struct + Cancel context.CancelFunc + Config *RunConfig + Ctx context.Context + CurrentOutput string + CurrentTurn int + EndTime time.Time + Error error + ID string + Nickname string + Result *RunResult + Role string + SessionID types.SessionID + StartTime time.Time + Status AgentStatus + ToolUses int + func (a *AsyncAgent) AddListener(listener AgentEventListener) + func (a *AsyncAgent) CollabStatus() string + func (a *AsyncAgent) GetDuration() time.Duration + func (a *AsyncAgent) GetProgress() *AgentProgress + func (a *AsyncAgent) IsComplete() bool + func (a *AsyncAgent) IsRunning() bool + func (a *AsyncAgent) RemoveListener(listener AgentEventListener) + func (a *AsyncAgent) Wait() + func (a *AsyncAgent) WaitWithTimeout(timeout time.Duration) error + type AsyncAgentManager struct + func GetDefaultAsyncManager() *AsyncAgentManager + func NewAsyncAgentManager() *AsyncAgentManager + func (m *AsyncAgentManager) AddGlobalListener(listener AgentEventListener) + func (m *AsyncAgentManager) CancelAgent(agentID string) error + func (m *AsyncAgentManager) Cleanup() + func (m *AsyncAgentManager) CloseAgent(agentID string) error + func (m *AsyncAgentManager) CloseAllAgents() int + func (m *AsyncAgentManager) GetAgent(agentID string) (*AsyncAgent, error) + func (m *AsyncAgentManager) ListAgents() []*AsyncAgent + func (m *AsyncAgentManager) RemoveGlobalListener(listener AgentEventListener) + func (m *AsyncAgentManager) SendMessage(agentID string, message string) error + func (m *AsyncAgentManager) SetWorkerPoolSize(size int) + func (m *AsyncAgentManager) Shutdown() + func (m *AsyncAgentManager) StartAgent(config *RunConfig) (*AsyncAgent, error) + type BuiltInAgentDefinition struct + AgentType string + BaseDir string + GetSystemPrompt func() string + MaxTurns int + Model string + Source AgentSource + Tools []string + WhenToUse string + func GetBuiltInAgentByType(agentType string) *BuiltInAgentDefinition + func GetBuiltInAgents() []BuiltInAgentDefinition + type ConversationMemory struct + Answers []string + KeyPoints []string + Participants []string + Questions []string + TaskProgress map[string]string + Topic string + type ErrorMemory struct + Context string + ErrorPattern string + ErrorType string + Frequency int + PreventiveMeasures []string + Solutions []SolutionPattern + type MemoryAdapter struct + func NewMemoryAdapter() *MemoryAdapter + func NewMemoryAdapterWithConfig(config *MemoryConfig) *MemoryAdapter + func (ms *MemoryAdapter) CleanupExpired() int + func (ms *MemoryAdapter) DeleteEntry(id string) error + func (ms *MemoryAdapter) Export() ([]byte, error) + func (ms *MemoryAdapter) GetEntry(id string) (*MemoryEntry, error) + func (ms *MemoryAdapter) GetToolUsagePatterns(toolName string) (*ToolUsageMemory, error) + func (ms *MemoryAdapter) Import(data []byte) error + func (ms *MemoryAdapter) LearnToolUsage(toolName string, parameters map[string]any, success bool, err error) error + func (ms *MemoryAdapter) Search(query MemoryQuery) (*MemorySearchResult, error) + func (ms *MemoryAdapter) Start() + func (ms *MemoryAdapter) Stats() MemoryStats + func (ms *MemoryAdapter) Stop() + func (ms *MemoryAdapter) StoreEntry(entry MemoryEntry) error + type MemoryConfig struct + DefaultTTL time.Duration + EnableSemanticSearch bool + ImportanceDecay float64 + LearningEnabled bool + MaxEntries int + MaxImportance float64 + MinImportance float64 + RetentionPolicy MemoryRetentionPolicy + func DefaultMemoryConfig() *MemoryConfig + type MemoryContext struct + Error string + Intent string + RelatedFiles []string + SessionID string + Solution string + Task string + Tool string + type MemoryEntry struct + AccessCount int + Confidence float64 + Content string + Context *MemoryContext + CreatedAt time.Time + ExpiresAt *time.Time + ID string + Importance float64 + LastAccessed time.Time + Tags []string + Type MemoryType + type MemoryQuery struct + Content string + Context *MemoryContext + Limit int + MinConfidence float64 + MinImportance float64 + SessionID string + Tags []string + TimeRange *TimeRange + Tool string + Types []MemoryType + type MemoryRetentionPolicy struct + ContextRetention time.Duration + ConversationRetention time.Duration + ErrorRetention time.Duration + SuccessRetention time.Duration + ToolUsageRetention time.Duration + type MemorySearchResult struct + Entries []MemoryEntry + ExecutionTime time.Duration + Query MemoryQuery + Total int + type MemoryStats struct + AverageConfidence float64 + AverageImportance float64 + EntriesByType map[MemoryType]int + MostAccessed []string + NewestEntry *time.Time + OldestEntry *time.Time + TotalAccessCount int64 + TotalEntries int + type MemoryType string + const MemoryTypeContext + const MemoryTypeConversation + const MemoryTypeError + const MemoryTypeInstruction + const MemoryTypeKnowledge + const MemoryTypePattern + const MemoryTypePreference + const MemoryTypeSuccess + const MemoryTypeSummary + const MemoryTypeToolUsage + type ParameterPattern struct + Frequency int + Parameters map[string]any + Success bool + type ProfileRegistry struct + func NewProfileRegistry(database *db.DB) *ProfileRegistry + func (r *ProfileRegistry) Delete(ctx context.Context, id string) error + func (r *ProfileRegistry) FindByRole(ctx context.Context, role string) ([]AgentProfile, error) + func (r *ProfileRegistry) FindByTeam(ctx context.Context, teamID string) ([]AgentProfile, error) + func (r *ProfileRegistry) Get(ctx context.Context, id string) (AgentProfile, error) + func (r *ProfileRegistry) List(ctx context.Context) ([]AgentProfile, error) + func (r *ProfileRegistry) Register(ctx context.Context, p AgentProfile) error + func (r *ProfileRegistry) Seed(ctx context.Context) error + type RunConfig struct + AgentType string + Callback func(turn int, output string, toolUses int) + Context context.Context + ContinuationMessage func(turn int, output string) string + Engine *engine.Engine + EventFn func(types.RuntimeEvent) + ForkFromMessages []types.Message + GoalSessionID string + GoalStore *goal.Store + IsolationMode string + MaxTurns int + Nickname string + PermissionMode types.PermissionMode + Registry *AgentRegistry + ResumeFromSessionID types.SessionID + Role string + StopCondition func(turn int, output string) bool + Task string + ToolFilter []string + Tools []tool.Tool + WorktreeDir string + type RunResult struct + AgentType string + Error string + Output string + SessionID types.SessionID + Sources []SourceRef + Success bool + ToolUses int + Turns int + WorktreePath string + func RunAgent(config *RunConfig) (*RunResult, error) + type Runner struct + func NewRunner(engine *engine.Engine) *Runner + func (r *Runner) RunAgentAdvanced(ctx context.Context, config *RunConfig) (*RunResult, error) + func (r *Runner) SetDefaultMaxTurns(maxTurns int) + func (r *Runner) SetEnableHooks(enabled bool) + func (r *Runner) SetEnableMemory(enabled bool) + func (r *Runner) SetHookExecutor(executor *hooks.Executor) + type SecurityChecker struct + func GetSecurityChecker() *SecurityChecker + func NewSecurityChecker() *SecurityChecker + func (sc *SecurityChecker) ValidateAgent(agentDef *AgentDefinition) *ValidationResult + type SolutionPattern struct + AppliesTo []string + Solution string + SuccessRate float64 + type SourceRef struct + Type string + Value string + type TimeRange struct + End time.Time + Start time.Time + type ToolUsageMemory struct + FailedParameters []ParameterPattern + LastUsed time.Time + SuccessRate float64 + SuccessfulParameters []ParameterPattern + ToolName string + TypicalUsage string + UsageCount int + type ValidationIssue struct + Category string + Description string + Location string + Recommendation string + type ValidationResult struct + AgentSource string + AgentType string + Details string + Issues []ValidationIssue + Severity string + Valid bool