MCPcopy Create free account

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

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

↓ 466 callersFunctionwriteError
(w http.ResponseWriter, status int, msg string)
internal/api/handlers/response.go:19
↓ 169 callersMethodGet
(ctx context.Context, userID, tenantID uuid.UUID)
internal/domain/auth.go:69
↓ 142 callersMethodCreate
(ctx context.Context, u *User)
internal/domain/auth.go:57
↓ 132 callersMethodQuery
(ctx context.Context, sql string, args ...any)
internal/store/dbtx.go:16
↓ 96 callersFunctionTenantFromContext
(ctx context.Context)
internal/api/middleware/auth.go:31
↓ 85 callersMethodExec
(ctx context.Context, sql string, args ...any)
internal/store/dbtx.go:15
↓ 85 callersFunctionwriteJSON
(w http.ResponseWriter, status int, v any)
internal/api/handlers/response.go:13
↓ 70 callersMethodGetByID
(ctx context.Context, id uuid.UUID)
internal/domain/auth.go:59
↓ 70 callersMethodQueryRow
(ctx context.Context, sql string, args ...any)
internal/store/dbtx.go:17
↓ 53 callersMethodHeader
()
internal/api/inprocess.go:58
↓ 50 callersMethodEncode
Encode creates a richly-encoded episode from raw input.
internal/service/episode.go:72
↓ 49 callersFunctionstrF
(desc string)
mcp/tools.go:434
↓ 42 callersFunctionreq
(path: string, opts: RequestInit = {})
console/src/api.ts:13
↓ 39 callersMethodInfo
Info handles GET /v1/embedding/info.
internal/api/handlers/embedding.go:17
↓ 38 callersFunctionstrArg
strArg returns a string argument or "".
mcp/tools.go:1042
↓ 37 callersMethodAddTool
AddTool registers an MCP tool.
mcp/server.go:113
↓ 36 callersFunctionNewClient
NewClient creates an Engram API client. agentID is the default agent used when the caller does not supply one.
mcp/client.go:25
↓ 33 callersFunctionnewServer
─── Helpers ───────────────────────────────────────────────────────────────────
mcp/mcp_test.go:101
↓ 32 callersFunctionobj
─── schema helpers (keep tool defs compact) ─────────────────────────────────
mcp/tools.go:427
↓ 31 callersFunctionrawResult
(raw json.RawMessage, err error)
mcp/tools.go:459
↓ 29 callersFunctionErrorResult
ErrorResult is a convenience constructor for an error tool result.
mcp/server.go:262
↓ 28 callersMethodDo
Do runs fn with transaction-bound stores; all writes commit or roll back together.
internal/store/uow.go:32
↓ 28 callersMethodWriteHeader
(code int)
internal/api/middleware/logging.go:21
↓ 27 callersFunctionnewMock
(t *testing.T)
mcp/mcp_test.go:45
↓ 27 callersMethodserver
()
mcp/mcp_test.go:58
↓ 26 callersMethodInitialConfidence
()
internal/domain/memory.go:71
↓ 25 callersMethodEmbed
(ctx context.Context, text string)
internal/domain/stores.go:220
↓ 25 callersFunctionassertText
(t *testing.T, result *mcp.CallToolResult, contains string)
mcp/mcp_test.go:137
↓ 25 callersFunctioncallTool
(t *testing.T, s *mcp.Server, name string, args map[string]interface{})
mcp/mcp_test.go:109
↓ 24 callersMethodDelete
(ctx context.Context, id uuid.UUID)
internal/domain/graph.go:185
↓ 22 callersFunctiontestLogger
()
internal/service/memory_test.go:413
↓ 20 callersMethodHandle
Handle dispatches a JSON-RPC request and returns the response. Returns nil for notifications (no ID) that require no response.
mcp/server.go:129
↓ 20 callersFunctionNewServer
(name, version string)
mcp/server.go:95
↓ 19 callersFunctionuseAsync
(loader: () => Promise<T>, deps: unknown[])
console/src/hooks.ts:12
↓ 18 callersMethodGetRaw
GetRaw performs a GET and returns the raw JSON body. Used by the broader tool surface where a typed struct adds no value over passing the structured r
mcp/client.go:223
↓ 18 callersMethodResolveAgent
ResolveAgent returns the given agent id or the client default if empty.
mcp/client.go:213
↓ 17 callersFunctionnewMockMemoryStore
()
internal/service/memory_test.go:19
↓ 17 callersFunctionsetupMemoryTest
()
internal/service/memory_test.go:418
↓ 16 callersMethodWriteHeader
(code int)
internal/api/inprocess.go:60
↓ 15 callersFunctionApplyLogOddsDelta
(confidence float32, logOddsDelta float64)
internal/service/confidence.go:30
↓ 15 callersMethodPostRaw
PostRaw performs a POST with a JSON body and returns the raw JSON response.
mcp/client.go:228
↓ 15 callersMethodRecall
(ctx context.Context, embedding []float32, agentID uuid.UUID, tenantID uuid.UUID, opts RecallOpts)
internal/domain/stores.go:100
↓ 15 callersFunctionprotect
(el: React.ReactNode)
console/src/App.tsx:40
↓ 15 callersFunctionsetupSchemaTest
()
internal/service/schema_test.go:290
↓ 14 callersFunctionComputeTier
(confidence float64)
internal/domain/tier.go:18
↓ 14 callersFunctioncreateTestMemory
createTestMemory creates a memory with specified parameters for testing
internal/service/decay_test.go:41
↓ 14 callersFunctionnewMockAgentStore
()
internal/service/agent_test.go:18
↓ 13 callersMethodGetByAgentForDecay
(ctx context.Context, agentID uuid.UUID)
internal/domain/stores.go:127
↓ 13 callersFunctionNewDecayService
NewDecayService creates a new decay service
internal/service/decay.go:86
↓ 12 callersMethodApplyDecay
ApplyDecay applies decay to a single memory using the service defaults.
internal/service/decay.go:302
↓ 12 callersMethodEnabled
Enabled reports whether Razorpay API credentials are configured.
internal/billing/razorpay.go:68
↓ 12 callersMethodWrite
(b []byte)
internal/api/inprocess.go:66
↓ 12 callersFunctioncosineSimilarity
cosineSimilarity calculates cosine similarity between two vectors.
internal/service/schema.go:527
↓ 11 callersMethodGetByAgent
(ctx context.Context, agentID uuid.UUID)
internal/domain/graph.go:189
↓ 11 callersFunctionNewWorkingMemoryService
NewWorkingMemoryService creates a new working memory service.
internal/service/working_memory.go:49
↓ 11 callersMethodUpsert
(ctx context.Context, p *Policy)
internal/domain/stores.go:239
↓ 11 callersMethodcomplete
(ctx context.Context, messages []cerebrasMessage, temp float32)
internal/llm/cerebras.go:62
↓ 11 callersMethodcomplete
(ctx context.Context, prompt string)
internal/llm/gemini.go:59
↓ 11 callersMethodcomplete
(ctx context.Context, messages []anthropicMessage, maxTokens int)
internal/llm/anthropic.go:62
↓ 11 callersMethodcomplete
(ctx context.Context, messages []chatMessage, temp float32)
internal/llm/openai.go:55
↓ 11 callersFunctionnewDecayMockStore
()
internal/service/decay_test.go:20
↓ 11 callersFunctionsetupMetacognitiveTest
()
internal/service/metacognitive_test.go:58
↓ 11 callersFunctionsetupPolicyTest
()
internal/service/policy_test.go:51
↓ 10 callersMethodGetByAgentIDAndType
(ctx context.Context, agentID uuid.UUID, memType MemoryType)
internal/domain/stores.go:241
↓ 10 callersFunctionTextResult
TextResult is a convenience constructor for a successful text tool result.
mcp/server.go:257
↓ 10 callersMethodUpdateReinforcement
(ctx context.Context, id uuid.UUID, confidence float32, reinforcementCount int)
internal/domain/stores.go:110
↓ 10 callersMethodUpsertPolicies
(ctx context.Context, agentID uuid.UUID, tenantID uuid.UUID, policies []domain.Policy)
internal/service/policy.go:60
↓ 10 callersFunctionintArg
(args map[string]interface{}, key string, defaultVal int)
mcp/tools.go:408
↓ 10 callersFunctionsetupProceduralTest
()
internal/service/procedural_test.go:120
↓ 9 callersMethodFindSimilar
Belief system methods
internal/domain/stores.go:108
↓ 9 callersFunctionLimitsFor
LimitsFor returns the caps for a plan, falling back to the free tier for any unknown value so a malformed plan column never grants unlimited usage.
internal/domain/billing.go:45
↓ 9 callersFunctionNew
New builds a Razorpay client. planIDs is keyed by plan tier name (developer/team/growth). When keyID or keySecret is empty the client reports Enabled(
internal/billing/razorpay.go:56
↓ 9 callersFunctionNewConfidenceService
(store domain.MemoryStore, logger *zap.Logger)
internal/service/confidence.go:59
↓ 9 callersFunctionassertNoError
(t *testing.T, result *mcp.CallToolResult)
mcp/mcp_test.go:155
↓ 9 callersFunctioncreateTestMemoryWithEmbedding
createTestMemoryWithEmbedding creates a memory with a specific embedding
internal/service/decay_test.go:59
↓ 9 callersMethodget
(ctx context.Context, path string, result interface{})
mcp/client.go:301
↓ 9 callersFunctionnewMockLLMClient
()
internal/service/memory_test.go:329
↓ 9 callersFunctionrequireAgentInTenant
(w http.ResponseWriter, r *http.Request, agents domain.AgentStore, agentID, tenantID uuid.UUID)
internal/api/handlers/response.go:38
↓ 9 callersFunctionwriteError
(w http.ResponseWriter, status int, msg string)
internal/api/middleware/auth.go:195
↓ 8 callersMethodAssessConfidence
AssessConfidence evaluates how confident we should be in a memory.
internal/service/metacognitive.go:129
↓ 8 callersMethodGetBilling
GetBilling returns the org's current plan + Razorpay references.
internal/domain/billing.go:83
↓ 8 callersMethodIsValid
IsValid checks if the schema type is valid.
internal/domain/schema.go:28
↓ 8 callersFunctionNewLearningService
( memoryStore domain.MemoryStore, episodeStore domain.EpisodeStore, logger *zap.Logger, )
internal/service/learning.go:39
↓ 8 callersFunctionNewTunerService
(fs domain.FeedbackStore, ps domain.PolicyStore, logger *zap.Logger)
internal/service/tuner.go:45
↓ 8 callersMethodUpdateConfidence
(ctx context.Context, id uuid.UUID, confidence float32)
internal/domain/stores.go:111
↓ 8 callersFunctionValidMemoryType
(t string)
internal/domain/memory.go:88
↓ 8 callersFunctionnewMockFeedbackStore
()
internal/service/tuner_test.go:17
↓ 8 callersFunctionnewMockMemoryStoreForConfidence
()
internal/service/confidence_test.go:22
↓ 8 callersFunctionnewMockPolicyStore
()
internal/service/policy_test.go:17
↓ 8 callersFunctionparseUUID
(s string)
internal/llm/provider.go:10
↓ 8 callersFunctionprovenanceTag
(p domain.Provenance)
internal/llm/provider.go:14
↓ 8 callersFunctionsetupEpisodeTest
()
internal/service/episode_test.go:209
↓ 8 callersFunctionuseAuth
()
console/src/auth.tsx:17
↓ 7 callersFunctionAuthFromContext
(ctx context.Context)
internal/api/middleware/auth.go:38
↓ 7 callersMethodCreate
(ctx context.Context, a *domain.Agent)
internal/service/agent.go:26
↓ 7 callersFunctionEmbeddingDim
()
internal/config/config.go:141
↓ 7 callersFunctionGetTierBehavior
(tier MemoryTier)
internal/domain/tier.go:82
↓ 7 callersFunctionNewAgentService
(s domain.AgentStore)
internal/service/agent.go:17
↓ 7 callersFunctionNewRecallScorer
()
internal/service/recall.go:42
↓ 7 callersMethodRunForAgent
RunForAgent analyzes feedback for a single agent and adjusts policies.
internal/service/tuner.go:117
next →1–100 of 2,051, ranked by callers