MCPcopy Create free account

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

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

↓ 1 callersFunctionRateLimitBurst
RateLimitBurst returns the burst size for rate limiting. Defaults to 20 if not set.
internal/config/config.go:179
↓ 1 callersFunctionRateLimitRPS
RateLimitRPS returns requests per second limit. Defaults to 100 if not set.
internal/config/config.go:169
↓ 1 callersFunctionRazorpayPlanIDs
RazorpayPlanIDs maps the self-serve plan names to their Razorpay Plan IDs, created in the Razorpay dashboard. Plans without a configured plan id can't
internal/config/config.go:297
↓ 1 callersMethodRecallExhaustive
(ctx context.Context, queryEmbedding []float32, agentID uuid.UUID, tenantID uuid.UUID, opts RecallOpts)
internal/domain/stores.go:101
↓ 1 callersMethodRecallHybrid
(ctx context.Context, query string, queryEmbedding []float32, agentID uuid.UUID, tenantID uuid.UUID, opts Reca
internal/domain/stores.go:102
↓ 1 callersMethodRecordTraversal
(ctx context.Context, edgeID uuid.UUID, strengthBoost float32)
internal/domain/graph.go:175
↓ 1 callersMethodRedactMemory
RedactMemory replaces a memory's content with a tombstone and clears its embedding (GDPR redaction). The audit row keeps the original content hash as
internal/service/admin.go:129
↓ 1 callersMethodReembedAgent
ReembedAgent recomputes the vector for every memory of an agent using the currently configured embedding model. Use it after switching to a different
internal/service/admin.go:239
↓ 1 callersMethodRejectQuarantine
RejectQuarantine permanently deletes a quarantined trace, recording the rejection (with a content snapshot) in the audit chain first.
internal/service/memory.go:578
↓ 1 callersMethodRemember
Remember stores a memory in Engram. confidence=0 lets the server assign the default. anchor is the caller's own id for who/what the memory is about; w
mcp/client.go:85
↓ 1 callersMethodReport
Report computes the calibration report for a tenant,
internal/service/calibration.go:26
↓ 1 callersFunctionRequestIDFromContext
RequestIDFromContext returns the request ID from context.
internal/api/middleware/requestid.go:17
↓ 1 callersMethodResolveSessionAuth
(ctx context.Context, rawToken string)
internal/api/middleware/auth.go:28
↓ 1 callersMethodRevoke
Revoke sets revoked_at immediately, invalidating the key on the next request.
internal/domain/stores.go:24
↓ 1 callersMethodRunDecayForAgent
RunDecayForAgent runs decay for a specific agent
internal/service/decay.go:553
↓ 1 callersMethodRunStats
(ctx context.Context)
internal/service/learning.go:125
↓ 1 callersMethodScrubAnchorEntity
ScrubAnchorEntity erases the subject entity's identity in place: name, aliases, metadata, external id and embedding are cleared (the row remains for a
internal/store/memory.go:361
↓ 1 callersFunctionServerAddr
()
internal/config/config.go:163
↓ 1 callersFunctionSessionTTLHours
SessionTTLHours is how long a console session lasts. Default 7 days. A shorter lifetime narrows the window during which a stolen session token is usab
internal/config/config.go:226
↓ 1 callersMethodSetCalibrationService
(cs *service.CalibrationService)
internal/api/handlers/cognitive.go:29
↓ 1 callersMethodSetConfidenceService
(cs *service.ConfidenceService)
internal/api/handlers/cognitive.go:25
↓ 1 callersMethodSetContradictionStore
(cs domain.ContradictionStore)
internal/service/memory.go:191
↓ 1 callersMethodSetEpisodeMemoryUsageStore
(store domain.EpisodeMemoryUsageStore)
internal/service/learning.go:60
↓ 1 callersMethodSetGraphBuilder
(gb GraphBuilder)
internal/service/memory.go:261
↓ 1 callersMethodSetGraphStore
SetGraphStore sets the graph store for edge decay and pruning.
internal/service/consolidation.go:126
↓ 1 callersMethodSetInterval
SetInterval sets the consolidation interval.
internal/service/consolidation.go:117
↓ 1 callersMethodSetMemoryStore
(ms domain.MemoryStore)
internal/service/episode.go:57
↓ 1 callersMethodSetMutationLogStore
(mls domain.MutationLogStore)
internal/service/decay.go:105
↓ 1 callersMethodSetMutationLogStore
(mls domain.MutationLogStore)
internal/service/memory.go:195
↓ 1 callersMethodSetMutationLogStore
(mls domain.MutationLogStore)
internal/service/implicit_feedback.go:33
↓ 1 callersMethodSetPlan
SetPlan sets the plan directly without Razorpay (manual/enterprise contracts).
internal/domain/billing.go:89
↓ 1 callersMethodSetPolicyEnforcer
(pe PolicyEnforcer)
internal/service/memory.go:257
↓ 1 callersMethodSetRazorpayCustomer
SetRazorpayCustomer records the Razorpay customer id seen on a webhook.
internal/domain/billing.go:85
↓ 1 callersMethodSetSessionStore
(ss domain.SessionStore)
internal/service/hybrid_recall.go:37
↓ 1 callersMethodSetSessionStore
SetSessionStore enables the session-memory expiry sweep (optional).
internal/service/expirer.go:28
↓ 1 callersMethodSetSettingsStore
SetSettingsStore wires per-tenant engine tuning. When set, BatchDecay uses the tenant's configured decay rate / floor / archive threshold / competitio
internal/service/decay.go:112
↓ 1 callersMethodSetSettingsStore
SetSettingsStore wires per-tenant engine tuning. When set, Reinforce/Penalize use the tenant's configured log-odds deltas instead of the service defau
internal/service/confidence.go:73
↓ 1 callersMethodSetUnitOfWork
(uow *store.UnitOfWork)
internal/service/decay.go:152
↓ 1 callersMethodSetUnitOfWork
(uow *store.UnitOfWork)
internal/service/feedback.go:41
↓ 1 callersMethodSetUnitOfWork
(uow *store.UnitOfWork)
internal/service/learning.go:72
↓ 1 callersMethodSetUnitOfWork
(uow *store.UnitOfWork)
internal/service/memory.go:206
↓ 1 callersMethodShouldQuarantine
ShouldQuarantine decides whether an incoming write must be held by the firewall. An explicit caller flag always quarantines (e.g. content from an untr
internal/domain/settings.go:44
↓ 1 callersMethodSnapshotAsOf
SnapshotAsOf reconstructs what the agent believed at `at` (transaction time).
internal/service/console.go:105
↓ 1 callersMethodStart
Start begins the background consolidation worker.
internal/service/consolidation.go:131
↓ 1 callersFunctionStdio
This is the transport used by Claude Desktop and most local MCP hosts.
mcp/transports/stdio.go:16
↓ 1 callersMethodStop
()
internal/service/learning.go:107
↓ 1 callersMethodStop
Stop gracefully stops the tuner, cancelling any in-flight run.
internal/service/tuner.go:90
↓ 1 callersMethodStop
Stop gracefully stops the expirer, cancelling any in-flight sweep.
internal/service/expirer.go:74
↓ 1 callersFunctionTrustProxyHeaders
TrustProxyHeaders controls whether client-IP headers (X-Real-IP / X-Forwarded-For) are honored. Default false: on a directly-exposed server those head
internal/config/config.go:244
↓ 1 callersMethodUpdateGoal
UpdateGoal updates the current goal in working memory.
internal/service/working_memory.go:767
↓ 1 callersMethodUpdateSubscriptionPlan
UpdateSubscriptionPlan changes the plan on an existing subscription in place. When atCycleEnd is true the change applies at the end of the current bil
internal/billing/razorpay.go:122
↓ 1 callersMethodUpdateValidation
(ctx context.Context, id uuid.UUID)
internal/domain/stores.go:340
↓ 1 callersFunctionValidEvidenceType
(e string)
internal/domain/memory.go:45
↓ 1 callersMethodVerifyChain
VerifyChain walks the tenant's audit hash chain in the DB and reports whether it is intact, how many rows verified, the first broken seq (nil if intac
internal/store/learning.go:191
↓ 1 callersMethodWrite
(b []byte)
internal/api/middleware/logging.go:26
↓ 1 callersMethodWriteHeader
(code int)
internal/api/middleware/quota.go:18
↓ 1 callersFunctionacceptJSON
(r *http.Request)
internal/api/metrics_test.go:74
↓ 1 callersFunctionactivateContextHandler
(c *Client)
mcp/tools.go:982
↓ 1 callersFunctionactivateContextTool
─── working memory, schemas, knowledge graph ─────────────────────────────────
mcp/tools.go:970
↓ 1 callersMethodactivateFromCues
activateFromCues activates memories based on semantic similarity to cues.
internal/service/working_memory.go:207
↓ 1 callersMethodactivateFromGoal
activateFromGoal activates memories relevant to the current goal.
internal/service/working_memory.go:283
↓ 1 callersMethodactivateFromSchema
activateFromSchema activates memories related to an active schema.
internal/service/working_memory.go:408
↓ 1 callersMethodactivateRecent
activateRecent activates recently accessed memories.
internal/service/working_memory.go:451
↓ 1 callersMethodanalyzeFailurePatterns
analyzeFailurePatterns identifies common patterns in failed episodes.
internal/service/metacognitive.go:456
↓ 1 callersMethodapplyFeedbackEffect
(ctx context.Context, f *domain.Feedback, memory *domain.Memory, effect domain.FeedbackEffect)
internal/service/feedback.go:90
↓ 1 callersMethodapplyForgetting
(ctx context.Context, agentID uuid.UUID, tenantID uuid.UUID, fullPrune bool)
internal/service/consolidation.go:795
↓ 1 callersMethodapplyOutcomeEffect
(ctx context.Context, tenantID uuid.UUID, memID uuid.UUID, effect domain.FeedbackEffect, feedbackType domain.F
internal/service/learning.go:215
↓ 1 callersMethodapplyStatus
applyStatus flags a payment-trouble state (pending/halted) without changing the plan, so quota stays enforced while Razorpay retries collection.
internal/api/handlers/billing.go:359
↓ 1 callersFunctionassessConfidenceHandler
(c *Client)
mcp/tools.go:725
↓ 1 callersFunctionassessConfidenceTool
()
mcp/tools.go:721
↓ 1 callersMethodassessSourceReliability
assessSourceReliability returns a reliability factor based on memory source.
internal/service/metacognitive.go:222
↓ 1 callersFunctionauditIntegrityResource
(client *Client)
mcp/resources.go:111
↓ 1 callersFunctionbuildDecayMutation
(mem *domain.Memory, dr *DecayResult, flagged bool)
internal/service/decay.go:156
↓ 1 callersMethodcalculateOverallHealthScore
calculateOverallHealthScore computes a 0-1 health score.
internal/service/metacognitive.go:609
↓ 1 callersMethodcalculateRecencyFactor
calculateRecencyFactor computes the recency decay factor.
internal/service/metacognitive.go:192
↓ 1 callersMethodcalculateReinforcementFactor
calculateReinforcementFactor computes bonus from reinforcement.
internal/service/metacognitive.go:209
↓ 1 callersMethodcalculateUncertaintyLevel
calculateUncertaintyLevel computes the overall uncertainty 0-1.
internal/service/metacognitive.go:348
↓ 1 callersFunctioncalibrationResource
(client *Client)
mcp/resources.go:97
↓ 1 callersMethodclearSessionCookie
(w http.ResponseWriter)
internal/api/handlers/auth.go:37
↓ 1 callersFunctionclientIP
clientIP keys the limiter on the connection's remote address. Any proxy-supplied client IP must come via r.RemoteAddr (chi's RealIP is mounted only wh
internal/api/middleware/ratelimit.go:90
↓ 1 callersMethodclusterMemories
clusterMemories groups memories by semantic similarity.
internal/service/schema.go:307
↓ 1 callersMethodcomposedRecall
(ctx context.Context, req domain.HybridRecallRequest, embedding []float32, base domain.RecallOpts)
internal/service/hybrid_recall.go:178
↓ 1 callersFunctionconsolidateHandler
(c *Client)
mcp/tools.go:777
↓ 1 callersFunctionconsolidateTool
()
mcp/tools.go:770
↓ 1 callersMethodcontradictionDelta
(ctx context.Context, tenantID uuid.UUID)
internal/service/confidence.go:89
↓ 1 callersFunctioncosineSimilarity
cosineSimilarity computes the cosine similarity between two equal-length vectors. Returns 0 if either vector is zero-length or they have different dim
internal/service/contradiction/embedding_detector.go:132
↓ 1 callersFunctioncosineSimilarity
(a, b []float32)
internal/store/memory.go:780
↓ 1 callersFunctioncountMastered
(learned map[string]int)
examples/03_benchmark_mistake_reduction/main.go:121
↓ 1 callersFunctioncountsTowardLearning
ComputeLearningStats computes and stores learning statistics for an agent over a time period. countsTowardLearning reports whether a mutation type ref
internal/service/learning.go:297
↓ 1 callersFunctioncreateAgent
API
examples/01_learning_agent/main.go:110
↓ 1 callersFunctioncreateAgent
API
examples/02_memory_evolution_demo/main.go:200
↓ 1 callersFunctioncreateAgent
API
examples/03_benchmark_mistake_reduction/main.go:178
↓ 1 callersFunctioncreateAgentHandler
(c *Client)
mcp/tools.go:893
↓ 1 callersFunctioncreateAgentTool
─── agents & canon ──────────────────────────────────────────────────────────
mcp/tools.go:886
↓ 1 callersFunctioncreateAnchorHandler
(c *Client)
mcp/tools.go:798
↓ 1 callersFunctioncreateAnchorTool
─── multi-subject (anchors) ─────────────────────────────────────────────────
mcp/tools.go:789
↓ 1 callersMethodcreateAssociations
createAssociations finds similar episodes and creates associations.
internal/service/episode.go:165
↓ 1 callersMethodcreateEpisodeAssociations
createEpisodeAssociations creates cross-memory associations for an episode.
internal/service/consolidation.go:340
↓ 1 callersFunctioncreateOrg
(name: string)
console/src/auth.tsx:66
↓ 1 callersFunctioncreateSessionHandler
(c *Client)
mcp/tools.go:857
← previousnext →601–700 of 2,051, ranked by callers