Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Harshitk-cp/engram
/ functions
Functions
2,051 in github.com/Harshitk-cp/engram
⨍
Functions
2,051
◇
Types & classes
484
↓ 1 callers
Method
IncrementAccessAndBoost
(ctx context.Context, id uuid.UUID, boost float32)
internal/domain/stores.go:134
↓ 1 callers
Method
IncrementContradiction
(ctx context.Context, id uuid.UUID)
internal/domain/stores.go:339
↓ 1 callers
Method
IncrementMemories
IncrementMemories atomically adds to the current month's memory write count.
internal/domain/billing.go:94
↓ 1 callers
Method
IncrementRecalls
IncrementRecalls atomically adds to the current month's recall count.
internal/domain/billing.go:96
↓ 1 callers
Method
IngestConversation
(ctx context.Context, messages []Message)
internal/domain/stores.go:226
↓ 1 callers
Function
IsInternal
IsInternal reports whether ctx was tagged by WithInternal.
internal/api/middleware/internal.go:19
↓ 1 callers
Function
IsLoopbackAddr
IsLoopbackAddr reports whether a listen address binds only the loopback interface.
mcp/transports/guard.go:45
↓ 1 callers
Method
IsNotification
()
mcp/jsonrpc.go:23
↓ 1 callers
Method
IsStale
()
internal/domain/memory.go:128
↓ 1 callers
Method
KeyID
KeyID returns the public Razorpay key id, safe to hand to the browser to open the Checkout modal.
internal/billing/razorpay.go:72
↓ 1 callers
Function
LLMAPIKey
LLMAPIKey returns the API key for the configured LLM provider.
internal/config/config.go:103
↓ 1 callers
Method
ListAgents
ListAgents returns the agents for the authenticated tenant.
mcp/client.go:181
↓ 1 callers
Method
ListAnchors
(ctx context.Context, tenantID uuid.UUID, entityType domain.EntityType, limit int)
internal/store/entity.go:86
↓ 1 callers
Method
ListByAgent
(ctx context.Context, agentID, tenantID uuid.UUID, limit int)
internal/domain/stores.go:194
↓ 1 callers
Method
ListByAgentFiltered
(ctx context.Context, agentID, tenantID uuid.UUID, f MemoryFilter, limit, offset int)
internal/domain/stores.go:123
↓ 1 callers
Method
ListCanon
(ctx context.Context, tenantID uuid.UUID, limit int)
internal/store/memory.go:376
↓ 1 callers
Method
ListExpired
(ctx context.Context, limit int)
internal/domain/session.go:38
↓ 1 callers
Method
ListOldestByAgentAndType
(ctx context.Context, agentID uuid.UUID, memType MemoryType, limit int)
internal/domain/stores.go:104
↓ 1 callers
Method
ListQuarantined
Provenance Firewall
internal/domain/stores.go:131
↓ 1 callers
Function
Load
Load reads the .env file specified by ENGRAM_ENV (or .env by default), then loads the corresponding .secret file if it exists. All config is flat env
internal/config/config.go:37
↓ 1 callers
Method
MarkExpired
(ctx context.Context, id uuid.UUID)
internal/domain/session.go:39
↓ 1 callers
Function
NewAPIKeyStore
(db *pgxpool.Pool)
internal/store/api_key.go:17
↓ 1 callers
Function
NewAdminHandler
(svc *service.AdminService)
internal/api/handlers/admin.go:20
↓ 1 callers
Function
NewAdminService
(ms domain.MemoryStore, ec domain.EmbeddingClient, uow *store.UnitOfWork, logger *zap.Logger)
internal/service/admin.go:30
↓ 1 callers
Function
NewAgentHandler
(svc *service.AgentService)
internal/api/handlers/agent.go:20
↓ 1 callers
Function
NewAgentStore
(db *pgxpool.Pool)
internal/store/agent.go:18
↓ 1 callers
Function
NewAnchorHandler
(anchors *store.EntityStore, memories *store.MemoryStore)
internal/api/handlers/anchor.go:22
↓ 1 callers
Function
NewAnthropicClient
(apiKey string)
internal/llm/anthropic.go:28
↓ 1 callers
Function
NewAuditHandler
(s *store.MutationLogStore, signingKey string)
internal/api/handlers/audit.go:24
↓ 1 callers
Function
NewAuthHandler
(svc *service.AuthService, sessionTTL time.Duration)
internal/api/handlers/auth.go:21
↓ 1 callers
Function
NewAuthService
(users domain.UserStore, oauth domain.OAuthAccountStore, memberships domain.MembershipStore, sessions domain.C
internal/service/auth.go:39
↓ 1 callers
Function
NewBillingHandler
(store domain.BillingStore, rzp *billing.Client, baseURL string, logger *zap.Logger)
internal/api/handlers/billing.go:25
↓ 1 callers
Function
NewBillingStore
(db *pgxpool.Pool)
internal/store/billing.go:27
↓ 1 callers
Function
NewCalibrationService
(mutations domain.MutationLogStore, logger *zap.Logger)
internal/service/calibration.go:17
↓ 1 callers
Function
NewCanonHandler
(svc *service.MemoryService, memories *store.MemoryStore)
internal/api/handlers/canon.go:23
↓ 1 callers
Function
NewCerebrasClient
(apiKey string)
internal/llm/cerebras.go:31
↓ 1 callers
Function
NewClient
NewClient creates an LLM client based on the provider name. Returns an error if the provider is unknown or the API key is empty (except for mock).
internal/llm/provider.go:43
↓ 1 callers
Function
NewClient
NewClient creates an embedding client from cfg. OpenAI is routed through the OpenAI-compatible client (its API is the reference format), so EMBEDDING_
internal/embedding/provider.go:31
↓ 1 callers
Function
NewClientWithHTTP
NewClientWithHTTP is like NewClient but uses the supplied *http.Client. The embedded MCP endpoint passes a client backed by an in-process transport so
mcp/client.go:38
↓ 1 callers
Function
NewCognitiveHandler
(ds *service.DecayService, cs *service.ConsolidationService, as domain.AgentStore)
internal/api/handlers/cognitive.go:21
↓ 1 callers
Function
NewConsoleHandler
(svc *service.ConsoleService)
internal/api/handlers/console.go:19
↓ 1 callers
Function
NewConsoleService
(ms domain.MemoryStore, cs domain.ContradictionStore, lss domain.LearningStatsStore, logger *zap.Logger)
internal/service/console.go:22
↓ 1 callers
Function
NewConsoleSessionStore
(db *pgxpool.Pool)
internal/store/auth.go:139
↓ 1 callers
Function
NewContradictionStore
(db *pgxpool.Pool)
internal/store/contradiction.go:18
↓ 1 callers
Function
NewConversationHandler
(svc *service.ConversationService, anchors *store.EntityStore, sessions *store.SessionStore)
internal/api/handlers/conversation.go:23
↓ 1 callers
Function
NewConversationService
(memorySvc *MemoryService, llm domain.LLMClient, logger *zap.Logger)
internal/service/conversation.go:27
↓ 1 callers
Function
NewEmbeddingHandler
()
internal/api/handlers/embedding.go:14
↓ 1 callers
Function
NewEntityStore
(db *pgxpool.Pool)
internal/store/entity.go:18
↓ 1 callers
Function
NewEpisodeHandler
(svc *service.EpisodeService)
internal/api/handlers/episode.go:21
↓ 1 callers
Function
NewEpisodeMemoryUsageStore
(db *pgxpool.Pool)
internal/store/learning.go:239
↓ 1 callers
Function
NewEpisodeStore
(db *pgxpool.Pool)
internal/store/episode.go:21
↓ 1 callers
Function
NewExpirerService
(ms domain.MemoryStore, ps domain.PolicyStore, fs domain.FeedbackStore, logger *zap.Logger)
internal/service/expirer.go:32
↓ 1 callers
Function
NewFeedbackHandler
(svc *service.FeedbackService)
internal/api/handlers/feedback.go:18
↓ 1 callers
Function
NewFeedbackStore
(db *pgxpool.Pool)
internal/store/feedback.go:15
↓ 1 callers
Function
NewGeminiClient
(apiKey string)
internal/llm/gemini.go:24
↓ 1 callers
Function
NewGraphBuilderService
( memoryStore domain.MemoryStore, graphStore domain.GraphStore, entityStore domain.EntityStore, embeddingC
internal/service/graph_builder.go:25
↓ 1 callers
Function
NewGraphHandler
( hybridSvc *service.HybridRecallService, graphSvc *service.GraphBuilderService, graphStore domain.GraphSto
internal/api/handlers/graph.go:23
↓ 1 callers
Function
NewGraphStore
(db *pgxpool.Pool)
internal/store/graph.go:18
↓ 1 callers
Function
NewHybridDetector
(llm domain.LLMClient)
internal/service/contradiction/hybrid_detector.go:24
↓ 1 callers
Function
NewImplicitFeedbackDetector
( llmClient domain.LLMClient, feedbackStore domain.FeedbackStore, memoryStore domain.MemoryStore, logger *
internal/service/implicit_feedback.go:19
↓ 1 callers
Function
NewLLMDetector
(client domain.LLMClient)
internal/service/contradiction/llm_detector.go:15
↓ 1 callers
Function
NewLearningHandler
( learningSvc *service.LearningService, implicitFeedbackSvc *service.ImplicitFeedbackDetector, mutationLogS
internal/api/handlers/learning.go:23
↓ 1 callers
Function
NewLearningStatsStore
(db *pgxpool.Pool)
internal/store/learning.go:303
↓ 1 callers
Function
NewMembershipStore
(db *pgxpool.Pool)
internal/store/auth.go:85
↓ 1 callers
Function
NewMemoryAssociationStore
(db *pgxpool.Pool)
internal/store/working_memory.go:316
↓ 1 callers
Function
NewMemoryHandler
(svc *service.MemoryService, hybridSvc *service.HybridRecallService, anchors *store.EntityStore, sessions *sto
internal/api/handlers/memory.go:27
↓ 1 callers
Function
NewMemoryStore
(db *pgxpool.Pool)
internal/store/memory.go:22
↓ 1 callers
Function
NewMetacognitiveHandler
NewMetacognitiveHandler creates a new metacognitive handler.
internal/api/handlers/metacognitive.go:18
↓ 1 callers
Function
NewMindHandler
( ms domain.MemoryStore, es domain.EpisodeStore, ps domain.ProcedureStore, ss domain.SchemaStore, as doma
internal/api/handlers/mind.go:22
↓ 1 callers
Function
NewMockClient
()
internal/llm/mock.go:58
↓ 1 callers
Function
NewMockClientDim
NewMockClientDim builds a mock client producing vectors of the given width, so it can stand in for any configured embedding dimension.
internal/embedding/mock.go:29
↓ 1 callers
Function
NewMutationLogStore
(db *pgxpool.Pool)
internal/store/learning.go:19
↓ 1 callers
Function
NewOAuthAccountStore
(db *pgxpool.Pool)
internal/store/auth.go:55
↓ 1 callers
Function
NewOpenAIClient
(apiKey string)
internal/llm/openai.go:25
↓ 1 callers
Function
NewPolicyHandler
(svc *service.PolicyService)
internal/api/handlers/policy.go:19
↓ 1 callers
Function
NewPolicyStore
(db *pgxpool.Pool)
internal/store/policy.go:17
↓ 1 callers
Function
NewProcedureHandler
(svc *service.ProceduralService)
internal/api/handlers/procedure.go:19
↓ 1 callers
Function
NewProcedureStore
(db *pgxpool.Pool)
internal/store/procedure.go:20
↓ 1 callers
Function
NewRateLimiter
NewRateLimiter creates a rate limiter with the given requests per second and burst size.
internal/api/middleware/ratelimit.go:29
↓ 1 callers
Function
NewSSEServer
NewSSEServer creates an SSEServer wrapping the given MCP server.
mcp/transports/sse.go:29
↓ 1 callers
Function
NewSchemaHandler
(svc *service.SchemaService)
internal/api/handlers/schema.go:19
↓ 1 callers
Function
NewSchemaStore
(db *pgxpool.Pool)
internal/store/schema.go:20
↓ 1 callers
Function
NewSessionHandler
(sessions *store.SessionStore, anchors *store.EntityStore, agents domain.AgentStore, ttl time.Duration)
internal/api/handlers/session.go:23
↓ 1 callers
Function
NewSessionStore
(db *pgxpool.Pool)
internal/store/session.go:18
↓ 1 callers
Function
NewSettingsHandler
(store domain.TenantSettingsStore)
internal/api/handlers/settings.go:17
↓ 1 callers
Function
NewSetupHandler
(ts domain.TenantStore, aks domain.APIKeyStore, setupToken string)
internal/api/handlers/setup.go:24
↓ 1 callers
Function
NewTenantHandler
(ts domain.TenantStore, aks domain.APIKeyStore, setupToken string)
internal/api/handlers/tenant.go:19
↓ 1 callers
Function
NewTenantSettingsStore
(db *pgxpool.Pool)
internal/store/settings.go:19
↓ 1 callers
Function
NewTenantStore
(db *pgxpool.Pool)
internal/store/tenant.go:17
↓ 1 callers
Function
NewTierHandler
(memorySvc *service.MemoryService)
internal/api/handlers/tier.go:18
↓ 1 callers
Function
NewUnitOfWork
(pool *pgxpool.Pool, memory *MemoryStore, mutationLog *MutationLogStore, contradiction *ContradictionStore)
internal/store/uow.go:20
↓ 1 callers
Function
NewUserStore
(db *pgxpool.Pool)
internal/store/auth.go:18
↓ 1 callers
Function
NewWorkingMemoryHandler
(svc *service.WorkingMemoryService)
internal/api/handlers/working_memory.go:18
↓ 1 callers
Function
NewWorkingMemoryStore
(db *pgxpool.Pool)
internal/store/working_memory.go:19
↓ 1 callers
Method
OnMemoryCreated
(ctx context.Context, memory *domain.Memory)
internal/service/memory.go:129
↓ 1 callers
Method
PromoteSessionToAnchor
(ctx context.Context, id uuid.UUID)
internal/domain/stores.go:143
↓ 1 callers
Method
PruneGraph
(ctx context.Context, agentID uuid.UUID, rules PruningRules)
internal/domain/graph.go:179
↓ 1 callers
Method
PurgeByAnchor
(ctx context.Context, anchorID, tenantID uuid.UUID)
internal/store/memory.go:219
↓ 1 callers
Method
PurgeSubjectGraphLinks
PurgeSubjectGraphLinks deletes the structural traces of the given (erased) memories: entity↔memory links, knowledge-graph edges, and spreading-activat
internal/store/memory.go:333
↓ 1 callers
Method
Rank
(memories []ScoredMemory)
internal/service/recall.go:88
← previous
next →
501–600 of 2,051, ranked by callers