Versions in this module Expand all Collapse all v0 v0.0.3 Mar 26, 2026 v0.0.1 Mar 24, 2026 Changes in this version + const DefaultCacheEnabled + const DefaultChunkOverlap + const DefaultChunkTokens + const DefaultFlushToolLoopTimeout + const DefaultFlushToolLoopTurns + const DefaultHybridCandidateMultiple + const DefaultMaxResults + const DefaultMemorySource + const DefaultMinScore + const DefaultSessionDeltaBytes + const DefaultSessionDeltaMessages + const DefaultWatchDebounceMs + const FilePath + const RootPath + const UnlimitedCacheEntries + func AugmentPrompt(ctx context.Context, scope iruntime.PromptScope, ...) []openai.ChatCompletionMessageParamUnion + func ExecuteCommand(ctx context.Context, call iruntime.CommandCall, deps CommandExecDeps) (handled bool, err error) + func ExecuteTool(ctx context.Context, call iruntime.ToolCall, deps ToolExecDeps) (handled bool, result string, err error) + func HandleOverflow(ctx context.Context, call any, prompt []openai.ChatCompletionMessageParamUnion, ...) + func New(host iruntime.Host) iruntime.ModuleHooks + func PurgeTablesBestEffort(ctx context.Context, db *dbutil.Database, bridgeID, loginID string) + func RunFlushToolLoop(ctx context.Context, model string, ...) error + func StopManagersForLogin(bridgeID, loginID string) + type CacheConfig = memorycore.CacheConfig + type ChunkingConfig = memorycore.ChunkingConfig + type CommandExecDeps struct + GetManager func(scope iruntime.ToolScope) (execManager, string) + ResolveSessionKey func(scope iruntime.ToolScope) string + SplitQuotedArgs func(raw string) ([]string, error) + WriteFile func(ctx context.Context, scope iruntime.CommandScope, mode string, path string, ...) (updatedPath string, err error) + type ExperimentalConfig = memorycore.ExperimentalConfig + type FallbackStatus = memorycore.FallbackStatus + type FlushSettings struct + Prompt string + SoftThresholdTokens int + SystemPrompt string + type FlushToolLoopDeps struct + ExecuteTool func(ctx context.Context, name string, argsJSON string) (string, error) + MaxTurns int + NextTurn func(ctx context.Context, model string, ...) (assistant openai.ChatCompletionMessageParamUnion, calls []ModelToolCall, ...) + OnToolError func(name string, err error) + TimeoutMs int64 + type HybridConfig = memorycore.HybridConfig + type Integration struct + func (i *Integration) AdditionalSystemMessages(_ context.Context, _ iruntime.PromptScope) []openai.ChatCompletionMessageParamUnion + func (i *Integration) AugmentPrompt(ctx context.Context, scope iruntime.PromptScope, ...) []openai.ChatCompletionMessageParamUnion + func (i *Integration) CommandDefinitions(_ context.Context, _ iruntime.CommandScope) []iruntime.CommandDefinition + func (i *Integration) ExecuteCommand(ctx context.Context, call iruntime.CommandCall) (bool, error) + func (i *Integration) ExecuteTool(ctx context.Context, call iruntime.ToolCall) (bool, string, error) + func (i *Integration) Name() string + func (i *Integration) OnCompactionLifecycle(ctx context.Context, evt iruntime.CompactionLifecycleEvent) + func (i *Integration) OnContextOverflow(ctx context.Context, call iruntime.ContextOverflowCall) + func (i *Integration) OnFileChanged(_ context.Context, evt iruntime.FileChangedEvent) + func (i *Integration) OnSessionMutation(ctx context.Context, evt iruntime.SessionMutationEvent) + func (i *Integration) PurgeForLogin(ctx context.Context, scope iruntime.LoginScope) error + func (i *Integration) StopForLogin(bridgeID, loginID string) + func (i *Integration) ToolApprovalRequirement(toolName string, args map[string]any) (handled bool, required bool, action string) + func (i *Integration) ToolAvailability(_ context.Context, scope iruntime.ToolScope, toolName string) (bool, bool, iruntime.SettingSource, string) + func (i *Integration) ToolDefinitions(_ context.Context, _ iruntime.ToolScope) []iruntime.ToolDefinition + type MemorySearchCacheStatus struct + Enabled bool + Entries int + MaxEntries int + type MemorySearchFTSStatus struct + Available bool + Enabled bool + Error string + type MemorySearchManager struct + func GetMemorySearchManager(host iruntime.Host, agentID string) (*MemorySearchManager, string) + func (m *MemorySearchManager) Close() + func (m *MemorySearchManager) NotifyFileChanged(path string) + func (m *MemorySearchManager) NotifySessionChanged(ctx context.Context, sessionKey string, force bool) + func (m *MemorySearchManager) ReadFile(ctx context.Context, relPath string, from, lines *int) (map[string]any, error) + func (m *MemorySearchManager) Search(ctx context.Context, query string, opts memorycore.SearchOptions) ([]memorycore.SearchResult, error) + func (m *MemorySearchManager) Status() memorycore.ProviderStatus + func (m *MemorySearchManager) StatusDetails(ctx context.Context) (*MemorySearchStatus, error) + func (m *MemorySearchManager) SyncWithProgress(ctx context.Context, onProgress func(completed, total int, label string)) error + type MemorySearchSourceCount struct + Chunks int + Files int + Source string + type MemorySearchStatus struct + Cache *MemorySearchCacheStatus + Chunks int + DBPath string + Dirty bool + ExtraPaths []string + FTS *MemorySearchFTSStatus + Fallback *memorycore.FallbackStatus + Files int + Model string + Provider string + SourceCounts []MemorySearchSourceCount + Sources []string + WorkspaceDir string + type ModelToolCall struct + ArgsJSON string + ID string + Name string + type OverflowDeps struct + AlreadyFlushed func(call any) bool + ContextWindow func(call any) int + EffectiveModel func(call any) string + EstimateTokens func(prompt []openai.ChatCompletionMessageParamUnion, model string) int + IsSimpleMode func(call any) bool + MarkFlushed func(ctx context.Context, call any) + OnError func(ctx context.Context, err error) + ReserveTokens func() int + ResolveSettings func() *FlushSettings + RunFlushToolLoop func(ctx context.Context, call any, model string, ...) (bool, error) + TrimPrompt func(prompt []openai.ChatCompletionMessageParamUnion) []openai.ChatCompletionMessageParamUnion + type PromptAugmentDeps struct + MarkBootstrapped func(ctx context.Context, scope iruntime.PromptScope) + ReadSection func(ctx context.Context, scope iruntime.PromptScope, path string) string + ResolveBootstrapPaths func(scope iruntime.PromptScope) []string + ShouldBootstrap func(scope iruntime.PromptScope) bool + ShouldInjectContext func(scope iruntime.PromptScope) bool + type ProviderStatus = memorycore.ProviderStatus + type QueryConfig = memorycore.QueryConfig + type ResolvedConfig = memorycore.ResolvedConfig + func MergeSearchConfig(defaults *agents.MemorySearchConfig, overrides *agents.MemorySearchConfig) *ResolvedConfig + type SearchOptions = memorycore.SearchOptions + type SearchResult = memorycore.SearchResult + type SessionSyncConfig = memorycore.SessionSyncConfig + type StoreConfig = memorycore.StoreConfig + type SyncConfig = memorycore.SyncConfig + type ToolExecDeps struct + GetManager func(scope iruntime.ToolScope) (execManager, string) + ResolveCitationsMode func(scope iruntime.ToolScope) string + ResolveSessionKey func(scope iruntime.ToolScope) string + ShouldIncludeCitations func(ctx context.Context, scope iruntime.ToolScope, mode string) bool