MCPcopy Create free account

hub / github.com/Harshitk-cp/engram / functions

Functions2,051 in github.com/Harshitk-cp/engram

↓ 2 callersFunctiontoProcedureResponse
Helper to convert domain.Procedure to API response.
internal/api/handlers/procedure.go:221
↓ 2 callersFunctiontokenMatches
tokenMatches compares a presented secret against the configured one in constant time.
internal/api/handlers/tenant.go:81
↓ 2 callersMethodtraverseGraph
(ctx context.Context, seeds []domain.MemoryWithScore, maxHops int)
internal/service/hybrid_recall.go:256
↓ 2 callersFunctiontruncate
truncate shortens a string to maxLen characters, adding "..." if truncated.
internal/api/handlers/mind.go:283
↓ 2 callersFunctiontruncate
(s string, n int)
examples/01_learning_agent/main.go:172
↓ 2 callersFunctionuseClickOutside
(onClose: () => void)
console/src/components/Layout.tsx:25
↓ 2 callersFunctionuserView
(u *domain.User)
internal/api/handlers/auth.go:171
↓ 2 callersFunctionwriteQuotaError
writeQuotaError emits a 402 with the structured upgrade hint the console reads.
internal/api/middleware/quota.go:32
↓ 1 callersMethodAddAlias
(ctx context.Context, id uuid.UUID, alias string)
internal/domain/graph.go:190
↓ 1 callersFunctionAllTiers
()
internal/domain/tier.go:110
↓ 1 callersMethodAllow
Allow checks if a request from the given key should be allowed.
internal/api/middleware/ratelimit.go:67
↓ 1 callersFunctionAnthropicAPIKey
()
internal/config/config.go:68
↓ 1 callersMethodApplyCurrencyDelta
(ctx context.Context, id uuid.UUID, delta float32)
internal/service/decay.go:223
↓ 1 callersMethodApplyDecay
Decay
internal/domain/stores.go:279
↓ 1 callersMethodApplyEdgeDecay
(ctx context.Context, agentID uuid.UUID, decayRate float64)
internal/domain/graph.go:177
↓ 1 callersMethodArchiveExpiredSessionMemories
Binding lifecycle
internal/domain/stores.go:142
↓ 1 callersFunctionAuditSigningKey
AuditSigningKey is an optional HMAC secret used to sign audit exports so a recipient can confirm an export came from this server. Empty = unsigned exp
internal/config/config.go:273
↓ 1 callersMethodBeliefsAsOf
(ctx context.Context, agentID, tenantID uuid.UUID, at time.Time, limit int)
internal/domain/stores.go:124
↓ 1 callersFunctionBillingEnabled
BillingEnabled reports whether managed-cloud billing + quota enforcement is on. Gated on a Razorpay key id + secret being configured; when unset the c
internal/config/config.go:292
↓ 1 callersMethodCalibrationSamples
(ctx context.Context, tenantID uuid.UUID, agentID *uuid.UUID)
internal/domain/stores.go:385
↓ 1 callersFunctionCerebrasAPIKey
()
internal/config/config.go:76
↓ 1 callersMethodChainEntries
ChainEntries returns recent audit-log rows for a tenant — including the tamper-evident chain fields (seq, prev_hash, row_hash) — for visualizing the h
internal/store/learning.go:122
↓ 1 callersMethodClassify
(ctx context.Context, content string)
internal/domain/stores.go:224
↓ 1 callersMethodCleanup
Cleanup evicts limiters not used within maxAge. Buckets in active use are kept, so legitimate clients never lose their limiter state to a flush.
internal/api/middleware/ratelimit.go:73
↓ 1 callersMethodClearActivations
(ctx context.Context, sessionID uuid.UUID)
internal/domain/stores.go:359
↓ 1 callersMethodClearSchemaActivations
(ctx context.Context, sessionID uuid.UUID)
internal/domain/stores.go:365
↓ 1 callersMethodClearSession
ClearSession clears the working memory session for an agent.
internal/service/working_memory.go:762
↓ 1 callersMethodConfidenceRange
()
internal/domain/memory.go:27
↓ 1 callersMethodCount
(ctx context.Context, tenantID uuid.UUID)
internal/service/agent.go:78
↓ 1 callersMethodCountByAgentID
(ctx context.Context, agentID uuid.UUID)
internal/domain/stores.go:249
↓ 1 callersMethodCountByTenant
(ctx context.Context, tenantID uuid.UUID)
internal/domain/stores.go:34
↓ 1 callersMethodCountNeedsReview
(ctx context.Context, agentID, tenantID uuid.UUID)
internal/domain/stores.go:122
↓ 1 callersMethodCreate
(ctx context.Context, p *domain.Procedure)
internal/service/procedural_test.go:22
↓ 1 callersMethodCreate
(ctx context.Context, p *domain.Procedure)
internal/service/consolidation_test.go:336
↓ 1 callersMethodCreate
(ctx context.Context, p *domain.Procedure)
internal/store/procedure.go:24
↓ 1 callersMethodCreateActivation
Memory activations
internal/domain/stores.go:357
↓ 1 callersMethodCreateAssociation
CreateAssociation creates a memory association for spreading activation.
internal/service/working_memory.go:778
↓ 1 callersMethodCreateAssociation
Associations
internal/domain/stores.go:291
↓ 1 callersMethodCreateCanon
(ctx context.Context, m *domain.Memory)
internal/service/memory.go:286
↓ 1 callersMethodCreateMention
(ctx context.Context, m *EntityMention)
internal/domain/graph.go:193
↓ 1 callersMethodCreateSchemaActivation
Schema activations
internal/domain/stores.go:363
↓ 1 callersMethodCreateSession
Session management
internal/domain/stores.go:349
↓ 1 callersMethodCurrentUser
CurrentUser returns the session's user, the session, and the user's orgs.
internal/service/auth.go:205
↓ 1 callersFunctionDBMaxConnIdleTime
DBMaxConnIdleTime closes a connection idle this long, returning it to Postgres. Override with DB_MAX_CONN_IDLE_SECS. Default 30m.
internal/config/config.go:332
↓ 1 callersFunctionDBMaxConnLifetime
DBMaxConnLifetime recycles a connection after this long (guards against server-side connection state drift / load-balancer staleness). Override with D
internal/config/config.go:328
↓ 1 callersFunctionDBMaxConns
---- Database connection pool ---- pgx's default pool maxes at 4 connections, which starves a busy server (every recall, decay pass, and background w
internal/config/config.go:319
↓ 1 callersFunctionDBMinConns
DBMinConns is the warm floor of connections kept open. Override with DB_MIN_CONNS. Default 2.
internal/config/config.go:323
↓ 1 callersFunctionDatabaseURL
()
internal/config/config.go:60
↓ 1 callersFunctionDefaultPruningRules
()
internal/domain/graph.go:157
↓ 1 callersFunctionDefaultTenantID
---- Control plane (console auth) ---- DefaultTenantID, if set, is the org that newly-signed-up users auto-join (instead of getting a fresh org). Used
internal/config/config.go:208
↓ 1 callersFunctionDefaultTenantRole
DefaultTenantRole is the role new users get when auto-joining the default org. Product default is "member"; set to "admin" in a demo so signups can ma
internal/config/config.go:213
↓ 1 callersMethodDeleteByRetention
(ctx context.Context, agentID uuid.UUID, memType MemoryType, retentionDays int)
internal/domain/stores.go:106
↓ 1 callersMethodDeleteEdgesByMemory
(ctx context.Context, memoryID uuid.UUID)
internal/domain/graph.go:173
↓ 1 callersMethodDeleteExpired
(ctx context.Context)
internal/domain/stores.go:105
↓ 1 callersMethodDeleteMentionsByMemory
(ctx context.Context, memoryID uuid.UUID)
internal/domain/graph.go:196
↓ 1 callersMethodDeleteRaw
DeleteRaw performs a DELETE and returns the raw JSON response (if any).
mcp/client.go:233
↓ 1 callersMethodDeleteSession
(ctx context.Context, agentID uuid.UUID, tenantID uuid.UUID)
internal/domain/stores.go:353
↓ 1 callersMethodDetectAndApply
DetectAndApply analyzes a conversation for implicit feedback signals and applies them. Returns the detected implicit feedbacks.
internal/service/implicit_feedback.go:47
↓ 1 callersMethodDetectImplicitFeedback
(ctx context.Context, memories []Memory, conversation []Message)
internal/domain/stores.go:233
↓ 1 callersMethodDetectRelationships
(ctx context.Context, memory *Memory, similarMemories []MemoryWithScore)
internal/domain/stores.go:235
↓ 1 callersFunctionEmbeddingAPIKey
EmbeddingAPIKey returns the API key for the configured embedding provider. A generic EMBEDDING_API_KEY takes precedence (for self-hosted / non-OpenAI
internal/config/config.go:121
↓ 1 callersMethodEnd
(ctx context.Context, id, tenantID uuid.UUID, expiresAt time.Time)
internal/domain/session.go:37
↓ 1 callersFunctionEnforceAgentQuota
EnforceAgentQuota blocks agent creation once the org hits its plan's agent cap.
internal/api/middleware/quota.go:83
↓ 1 callersFunctionEnsureEmbeddingDimension
EnsureEmbeddingDimension reconciles the vector columns with the configured embedding dimension. It is a no-op when they already match. When they diffe
internal/store/embeddingdim.go:30
↓ 1 callersMethodExportByTenant
ExportByTenant returns the full audit trail for a tenant ordered by chain seq, including the hash-chain fields, for signed export.
internal/store/learning.go:214
↓ 1 callersMethodExtract
(ctx context.Context, conversation []domain.Message)
internal/llm/cerebras.go:139
↓ 1 callersMethodExtract
(ctx context.Context, conversation []domain.Message)
internal/llm/gemini.go:121
↓ 1 callersMethodExtract
(ctx context.Context, conversation []domain.Message)
internal/llm/anthropic.go:122
↓ 1 callersMethodExtract
(ctx context.Context, conversation []domain.Message)
internal/llm/openai.go:115
↓ 1 callersMethodExtractEntities
(ctx context.Context, content string)
internal/domain/stores.go:234
↓ 1 callersMethodFindByEmbeddingSimilarity
(ctx context.Context, agentID uuid.UUID, entityType EntityType, embedding []float32, threshold float32, limit
internal/domain/graph.go:188
↓ 1 callersMethodFindByName
(ctx context.Context, agentID uuid.UUID, name string)
internal/service/hybrid_recall_test.go:124
↓ 1 callersMethodFindCanonByContent
(ctx context.Context, tenantID uuid.UUID, content string)
internal/store/memory.go:404
↓ 1 callersMethodForget
Forget deletes a memory by ID.
mcp/client.go:160
↓ 1 callersFunctionGeminiAPIKey
()
internal/config/config.go:72
↓ 1 callersMethodGetActivations
(ctx context.Context, sessionID uuid.UUID)
internal/domain/stores.go:358
↓ 1 callersMethodGetAgentsNeedingConsolidation
GetAgentsNeedingConsolidation returns agent IDs that have unprocessed episodes.
internal/service/consolidation.go:1031
↓ 1 callersMethodGetAggregatesByAgentID
(ctx context.Context, agentID uuid.UUID)
internal/domain/stores.go:248
↓ 1 callersMethodGetByConsolidationStatus
(ctx context.Context, agentID uuid.UUID, tenantID uuid.UUID, status ConsolidationStatus, limit int)
internal/domain/stores.go:274
↓ 1 callersMethodGetByConversationID
Retrieval
internal/domain/stores.go:267
↓ 1 callersMethodGetByIDOnly
(ctx context.Context, id uuid.UUID)
internal/domain/stores.go:133
↓ 1 callersMethodGetByImportance
(ctx context.Context, agentID uuid.UUID, tenantID uuid.UUID, minImportance float32, limit int)
internal/domain/stores.go:269
↓ 1 callersMethodGetByMemoryID
(ctx context.Context, memoryID uuid.UUID)
internal/domain/stores.go:247
↓ 1 callersMethodGetByProvider
(ctx context.Context, provider, providerUserID string)
internal/domain/auth.go:64
↓ 1 callersMethodGetBySource
(ctx context.Context, tenantID uuid.UUID, sourceType ActivatedMemoryType, sourceID uuid.UUID)
internal/domain/stores.go:374
↓ 1 callersMethodGetByTier
Tier methods
internal/domain/stores.go:136
↓ 1 callersMethodGetLearningStats
GetLearningStats returns aggregated learning statistics for an agent. Returns (nil, nil) when no stats exist yet.
internal/service/learning.go:279
↓ 1 callersMethodGetMemoriesForEntity
(ctx context.Context, entityID uuid.UUID, limit int)
internal/domain/graph.go:197
↓ 1 callersMethodGetMemoryHealth
GetMemoryHealth returns statistics about the memory system health for an agent.
internal/service/consolidation.go:938
↓ 1 callersMethodGetNeedsReview
(ctx context.Context, agentID uuid.UUID, tenantID uuid.UUID, limit int)
internal/domain/stores.go:140
↓ 1 callersMethodGetRecentByType
(ctx context.Context, agentID uuid.UUID, tenantID uuid.UUID, memType MemoryType, limit int)
internal/domain/stores.go:109
↓ 1 callersMethodGetSchemaActivations
(ctx context.Context, sessionID uuid.UUID)
internal/domain/stores.go:364
↓ 1 callersMethodGetStats
(ctx context.Context, memoryID uuid.UUID, tenantID uuid.UUID)
internal/service/confidence.go:181
↓ 1 callersMethodGetStats
GetStats handles GET /v1/agents/:id/learning/stats
internal/api/handlers/learning.go:174
↓ 1 callersMethodGetTypeWeights
(ctx context.Context, agentID uuid.UUID)
internal/service/memory.go:829
↓ 1 callersMethodGetWeakMemories
(ctx context.Context, agentID uuid.UUID, threshold float32)
internal/domain/stores.go:280
↓ 1 callersFunctionGuard
Guard wraps an MCP network transport with the protections a privileged local server needs. The transport holds the operator's ENGRAM_API_KEY, so reach
mcp/transports/guard.go:17
↓ 1 callersFunctionHandler
Handler returns an http.Handler that serves the console SPA at the site root. Static assets are served from the embedded filesystem; any unmatched pat
console/embed.go:22
↓ 1 callersMethodHandler
Handler returns an http.Handler that mounts the SSE transport.
mcp/transports/sse.go:37
↓ 1 callersMethodHasPlan
HasPlan reports whether a self-serve Razorpay plan is configured for the tier.
internal/billing/razorpay.go:75
← previousnext →401–500 of 2,051, ranked by callers