Versions in this module Expand all Collapse all v0 v0.8.0 Mar 29, 2026 Changes in this version + const RefetchImmediateThreshold + const SignalWeightCorrectionDelayed + const SignalWeightCorrectionImmediate + const SignalWeightEscalation + const SignalWeightTaskAbandoned + const SignalWeightTaskCancelled + const SignalWeightTaskDone + type AgentLLMUsageEvent struct + AgentID string + CacheCreationInputTokens int + CacheReadInputTokens int + CostReported bool + CostUSD float64 + InputTokens int + Model string + OutputTokens int + ProjectID string + Provider string + SessionID string + ToolCallID string + type BrainUsageEvent struct + AgentID string + CompletionTokens int + CostUSD float64 + DurationMs int64 + Endpoint string + FallbackUsed bool + Model string + ProjectID string + PromptTokens int + QualityScore float64 + SessionID string + Success bool + TargetEntity string + Tier string + func (e *BrainUsageEvent) TotalTokens() int + type ConfigReloadEvent struct + ChangedFields []string + ProjectID string + Success bool + type ContextDeliveryEvent struct + AgentID string + AnnotationsIncluded bool + BaselineTokens int + BrainEnriched bool + CacheHit bool + CacheSize int + DepthAchieved int + DepthRequested int + DetailLevel string + DurationMs int64 + EdgeTypesDist string + EdgesDelivered int + Entity string + EntityFound bool + File string + GraphSizeAtTraversal int + Intent string + MinRelevanceHits int + NodesDelivered int + NodesPruned int + NodesVisited int + OutputFormat string + ProjectID string + Refetched bool + ResponseBytes int + ResponseTokens int + RulesMatched int + SessionID string + TokenBudgetHit bool + ToolName string + TraversalDurationMs float64 + Truncated bool + ViolationsFound int + type DailyEffectiveness struct + AvgContextHitRate float64 + AvgTaskCompletion float64 + Day string + Sessions int + TotalKnowledgeGrowth int + TotalTokensSaved int + type DecayStats struct + HitRate7to30d float64 + HitRateOver30d float64 + HitRateUnder7d float64 + type DeliveryOutcome struct + DeliveryID int + Entity string + OutcomeAt string + OutcomeSignalType string + SessionID string + Success int + ToolsBetween int + type DurationBuckets struct + P50 float64 + P95 float64 + P99 float64 + type EmbeddingEvent struct + Count int + CoveragePct float64 + DurationMs int64 + EmbedPoolContention int + Errors int + EventType string + Model string + ModelStatus string + ProjectID string + StaleCount int + Success bool + Trigger string + type EnrichmentEvent struct + DurationMs int64 + EnrichmentType string + ProjectID string + Success bool + type EntityEffectiveness struct + Entity string + Negatives int + Positives int + Score float64 + Signals int + Suggestion string + type EntityQuality struct + Entity string + LastUpdated string + NegativeSignals int + PositiveSignals int + ProjectID string + QualityScore float64 + type FederationDetectEvent struct + AgentID string + DepsFound int + DurationMs float64 + EventType string + ProjectID string + SiblingProject string + Tier int + type GraphSnapshotEvent struct + CrossFileEdgePct float64 + Density float64 + EdgeTypeDist string + EdgesCalls int + EdgesTotal int + FanInP50 int + FanInP95 int + FanOutP50 int + FanOutP95 int + MaxFanin int + MaxFanout int + NodeTypeDistJSON string + NodesTotal int + OrphanNodes int + ProjectID string + ProvenanceDist string + RebuildDurationMs float64 + RebuildTrigger string + SnapshotType string + TombstoneRatio float64 + type GuardEvent struct + AgentID string + Category string + GuardType string + ProjectID string + SessionID string + ToolName string + type IndexEvent struct + CallSitesResolved int + CallSitesUnresolved int + CoverageJSON string + DurationMs int64 + FilesIndexed int + FilesSkipped int + HeritageEdgesCreated int + ImplementsEdgesCreated int + LanguageDistJSON string + ProjectID string + ResolutionByLangJSON string + ResolutionRate float64 + ResolverDurationMs float64 + TotalEdges int + TotalNodes int + WorkItemTypeDist string + type MemoryOperationEvent struct + AgentID string + Count int + Operation string + ProjectID string + ResultCount int + SessionID string + Source string + Tier string + TopChannel string + TopChannelScore float64 + VectorSearchMs float64 + type MonthlyROI struct + AvgContextHitRate float64 + AvgDailyAgents float64 + BestWeek string + TotalCostSavedUSD float64 + TotalSessions int + TotalTasksCompleted int + TotalTokensSaved int64 + WorstWeek string + type OutcomeSignalEvent struct + AgentID string + Count int + Entity string + Priority string + ProjectID string + SessionID string + SignalType string + SignalWeight float64 + TimeToOutcomeMs int64 + ToolCallsBetween int + type ParseEvent struct + CallSitesProduced int + DurationMs int64 + EdgesProduced int + ErrorType string + File string + Language string + NodesProduced int + ProjectID string + TsErrorNodes int + type PersistenceEvent struct + BytesWritten int64 + DurationMs float64 + ProjectID string + type ReparseEvent struct + CrossProjectDetectionMs float64 + DebounceHits int + DeltaBytes int64 + DeltaRows int + DurationMs int64 + EdgesDelta int + ErrorAction string + File string + Language string + MemoriesStaled int + NodesAfter int + NodesBefore int + ProjectID string + type RuleEvalEvent struct + ProjectID string + RulesEvaluated int + ViolationsFound int + type SearchEvent struct + AgentID string + CacheHit bool + DurationMs int64 + MatchedTools int + MatchedWorkflows int + Mode string + ProjectID string + Query string + ResultCount int + SessionID string + type SessionEffectiveness struct + AgentID string + ContextHitRate float64 + CreatedAt string + DurationMs int64 + KnowledgeGrowth int + ProjectID string + SessionID string + TaskCompletionRate float64 + TokensSaved int + ToolCalls int + type SessionEvent struct + AgentID string + AgentVersion string + Event string + ProjectID string + SessionID string + type SessionPercentiles struct + CallsP50 float64 + CallsP95 float64 + CallsP99 float64 + ToolsP50 float64 + ToolsP95 float64 + ToolsP99 float64 + type SessionPerformance struct + SessionNum int + TasksCompleted int + TokensSaved int + ToolCalls int + ToolCallsPerTask float64 + type ToolCallEvent struct + AgentID string + DurationMs int64 + Entity string + ErrorMessage string + InputBytes int + ProjectID string + RequestParams string + ResponseBytes int + ResponseType string + RetryCount int + SessionID string + Success bool + ToolName string + type ToolSequenceEntry struct + Position int + SessionID string + Success bool + ToolName string + type ValidationEvent struct + AgentID string + ProjectID string + RuleIDs string + SafetyStatus string + Status string + ToolName string + ViolationCount int + type WeeklyEfficiency struct + TasksPerSession float64 + ToolCallsPerTask float64 + WeekStart string