Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atripati/ark
/ functions
Functions
715 in github.com/atripati/ark
⨍
Functions
715
◇
Types & classes
146
↓ 4 callers
Method
effectiveTokens
(block *ContextBlock)
pkg/context/manager.go:481
↓ 4 callers
Function
extractCodeBlocks
(text string)
pkg/runtime/verify.go:797
↓ 4 callers
Method
flushLocked
()
pkg/store/store.go:282
↓ 4 callers
Function
hasConfabulationMarkers
hasConfabulationMarkers checks for common patterns when models make things up.
pkg/governor/verifier.go:499
↓ 4 callers
Method
modelName
(tier Tier)
pkg/router/router.go:418
↓ 4 callers
Method
recordDecision
(d Decision)
pkg/router/router.go:319
↓ 4 callers
Function
repetitionRatio
repetitionRatio detects if the model is stuck in a loop by checking for repeated phrases.
pkg/governor/verifier.go:467
↓ 4 callers
Function
simplifyRepoList
(raw string)
pkg/tools/github.go:754
↓ 4 callers
Function
truncate
(s string, maxLen int)
pkg/models/providers.go:398
↓ 4 callers
Function
verifyCodeResponse
(response string)
pkg/runtime/verify.go:63
↓ 3 callers
Method
ActiveBlocks
()
pkg/context/manager.go:351
↓ 3 callers
Method
AllProfiles
AllProfiles returns profiles for all known models.
pkg/governor/registry.go:376
↓ 3 callers
Method
BudgetRemaining
()
pkg/cost/cost.go:207
↓ 3 callers
Method
BuildExperienceContext
BuildExperienceContext generates a prompt injection that tells the model about past failures. This is the Teacher sharing experience with the student.
pkg/governor/intelligence.go:250
↓ 3 callers
Function
CustomPricing
(provider, model string, inputPerMillion, outputPerMillion float64)
pkg/cost/cost.go:77
↓ 3 callers
Function
DeduplicateResponse
DeduplicateResponse removes lines that are substantially repeated.
pkg/runtime/quality.go:382
↓ 3 callers
Function
DefaultAgentConfig
()
pkg/runtime/agent.go:163
↓ 3 callers
Function
EnhanceSystemPrompt
(basePrompt string, taskType string)
pkg/runtime/quality.go:321
↓ 3 callers
Function
EstimateTokens
(s string)
pkg/context/manager.go:513
↓ 3 callers
Method
ExportLearning
()
pkg/router/router.go:447
↓ 3 callers
Method
ImportLearning
(snapshots []PerfSnapshot)
pkg/router/router.go:463
↓ 3 callers
Method
IsActive
(id string)
pkg/context/engine.go:985
↓ 3 callers
Method
Load
Load reads the registry from a JSON file.
pkg/governor/registry.go:500
↓ 3 callers
Method
Manager
()
pkg/context/engine.go:70
↓ 3 callers
Function
New
(provider, model, apiKey, baseURL string, maxTokens int)
pkg/models/providers.go:33
↓ 3 callers
Function
NewContextMemory
()
pkg/context/engine.go:757
↓ 3 callers
Method
RecordFailure
(toolID string, errType ErrorType)
pkg/context/engine.go:657
↓ 3 callers
Function
RegisterGitHub
(router *Router, token string)
pkg/tools/github.go:15
↓ 3 callers
Method
RunningCost
()
pkg/cost/cost.go:195
↓ 3 callers
Method
ShouldEscalate
(taskID string, passed bool)
pkg/runtime/agent.go:130
↓ 3 callers
Method
TaskCount
()
pkg/cost/cost.go:398
↓ 3 callers
Method
TokenUsage
()
pkg/context/manager.go:361
↓ 3 callers
Method
ToolCount
()
pkg/tools/http.go:141
↓ 3 callers
Function
abs
(f float64)
pkg/cost/cost_test.go:316
↓ 3 callers
Method
budgetFor
(bt BlockType)
pkg/context/manager.go:400
↓ 3 callers
Function
buildSystemPrompt
(toolContext string, loadedTools []string)
pkg/runtime/agent.go:1020
↓ 3 callers
Function
cosine_similarity
Compute cosine similarity between two vectors.
ark-memory/ark_memory/embeddings.py:125
↓ 3 callers
Function
defaultValue
defaultValue returns a zero/default value for a Go type.
pkg/runtime/verify.go:719
↓ 3 callers
Function
doWithRetry
(client *http.Client, req *http.Request, body []byte, provider string)
pkg/models/providers.go:91
↓ 3 callers
Function
enforceConstraints
Phase 3: Constraint Enforcement
pkg/runtime/verify.go:259
↓ 3 callers
Method
execution_recorded
Record a complete execution trace summary.
ark-memory/ark_memory/experience.py:234
↓ 3 callers
Function
generateFuncTest
(fn FuncSignature)
pkg/runtime/verify.go:596
↓ 3 callers
Method
getOrCreate
(id string)
pkg/context/engine.go:702
↓ 3 callers
Function
getRanking
(engine *ctx.Engine, mgr *ctx.Manager, query string)
cmd/ark/main.go:986
↓ 3 callers
Function
isFilePathParam
isFilePathParam checks if a parameter name suggests it's a file path.
pkg/runtime/verify.go:689
↓ 3 callers
Function
max
(a, b int)
cmd/ark/main.go:358
↓ 3 callers
Function
parsePct
(s string)
pkg/config/config.go:409
↓ 3 callers
Function
perfKey
(stepType StepType, tier Tier)
pkg/router/router.go:435
↓ 3 callers
Function
printRanking
(label string, scores []toolScore)
cmd/ark/main.go:1014
↓ 3 callers
Function
printUsage
()
cmd/ark/main.go:90
↓ 3 callers
Method
prompt_failed
Record a prompt/task that failed.
ark-memory/ark_memory/experience.py:175
↓ 3 callers
Method
readFile
(params map[string]interface{})
pkg/tools/filesystem.go:103
↓ 3 callers
Function
resolveEnvHeaders
(headers map[string]string)
pkg/tools/custom.go:126
↓ 3 callers
Function
runWithTimeout
Utilities
pkg/runtime/verify.go:747
↓ 3 callers
Function
splitKV
(s string)
pkg/config/config.go:389
↓ 3 callers
Method
stats
Get memory statistics.
ark-memory/ark_memory/agent.py:219
↓ 3 callers
Function
stripBoilerplate
stripBoilerplate removes common AI preamble that adds no value.
pkg/runtime/quality.go:153
↓ 3 callers
Method
summary
Get a summary of all accumulated experience.
ark-memory/ark_memory/experience.py:419
↓ 3 callers
Function
toFloat
(v interface{})
pkg/tools/github.go:853
↓ 3 callers
Method
totalUsage
()
pkg/context/manager.go:417
↓ 3 callers
Function
verifyRankingResponse
Data/Ranking Verification
pkg/runtime/verify.go:841
↓ 3 callers
Function
verifyReasoningResponse
(response string)
pkg/runtime/verify.go:880
↓ 2 callers
Method
AllBlocks
()
pkg/context/engine.go:997
↓ 2 callers
Function
AutoFixGoCode
(code string)
pkg/runtime/quality.go:494
↓ 2 callers
Method
BestModelFor
(stepType string, toolName string, candidates []string)
pkg/governor/registry.go:263
↓ 2 callers
Method
BuildExperienceContext
(model string, toolName string)
pkg/runtime/agent.go:123
↓ 2 callers
Function
BuildRetryPrompt
Self-Correction: Build retry prompt from verification failure
pkg/runtime/verify.go:963
↓ 2 callers
Function
CustomToolDef
(name, description string, params []string)
pkg/tools/custom.go:103
↓ 2 callers
Method
Decay
()
pkg/store/store.go:253
↓ 2 callers
Function
DefaultWeights
()
pkg/context/engine.go:350
↓ 2 callers
Method
EmitToolCall
── Convenience methods for common events ── EmitToolCall records a tool execution.
pkg/runtime/events.go:72
↓ 2 callers
Method
FormatDecisions
()
pkg/router/router.go:368
↓ 2 callers
Method
FormatReport
()
pkg/runtime/agent.go:121
↓ 2 callers
Method
GetTrace
(traceID string)
pkg/context/engine.go:933
↓ 2 callers
Function
NewAggregate
()
pkg/cost/cost.go:342
↓ 2 callers
Function
NewRuntimeMetrics
()
pkg/runtime/agent.go:233
↓ 2 callers
Function
NewSingle
(executor runtime.Executor)
pkg/router/router.go:114
↓ 2 callers
Function
NewTracer
()
pkg/context/engine.go:896
↓ 2 callers
Method
PredictFailure
(model string, taskType string, toolName string)
pkg/runtime/agent.go:122
↓ 2 callers
Method
RecordContext
(query string, successfulTools []string)
pkg/context/engine.go:671
↓ 2 callers
Function
RegisterFileSystem
(router *Router)
pkg/tools/filesystem.go:16
↓ 2 callers
Function
RegisterWebSearch
(router *Router, apiKey string)
pkg/tools/websearch.go:17
↓ 2 callers
Method
ResetEscalations
(taskID string)
pkg/runtime/agent.go:131
↓ 2 callers
Method
Save
(path string)
pkg/governor/registry.go:487
↓ 2 callers
Method
SavePattern
(record QueryPatternRecord)
pkg/store/store.go:194
↓ 2 callers
Method
ShouldDemote
(model, toolName string)
pkg/governor/registry.go:329
↓ 2 callers
Method
Stats
()
pkg/context/manager.go:320
↓ 2 callers
Method
Stats
()
pkg/router/router.go:339
↓ 2 callers
Method
Summary
()
pkg/cost/cost.go:261
↓ 2 callers
Method
TotalCost
()
pkg/cost/cost.go:352
↓ 2 callers
Function
ValidateCodeResponse
ValidateCodeResponse checks if a code response has basic quality signals.
pkg/runtime/quality.go:409
↓ 2 callers
Method
VerifyReasoning
(model string, response *ModelResponse, toolsAvailable bool, toolsCalled bool)
pkg/runtime/agent.go:129
↓ 2 callers
Method
VerifyToolCall
(model string, toolName string, call *ToolCall, response *ModelResponse)
pkg/runtime/agent.go:128
↓ 2 callers
Method
_deduplicate
Anti-redundancy: remove near-duplicate memories from results. If two memories have >80% content overlap, keep the higher-scored one.
ark-memory/ark_memory/store.py:265
↓ 2 callers
Method
_embed_local
Hash-based embedding. Fast, deterministic, zero external dependencies. Method: Extract character n-grams (3, 4, 5), hash each to a p
ark-memory/ark_memory/embeddings.py:44
↓ 2 callers
Method
_get_openai_client
(self)
ark-memory/ark_memory/embeddings.py:107
↓ 2 callers
Method
_score_rows
Score and rank memory rows against a query embedding.
ark-memory/ark_memory/store.py:190
↓ 2 callers
Method
age_hours
(self)
ark-memory/ark_memory/types.py:27
↓ 2 callers
Method
age_seconds
(self)
ark-memory/ark_memory/types.py:24
↓ 2 callers
Method
applyScalar
(section, key, val string)
pkg/config/config.go:178
← previous
next →
101–200 of 715, ranked by callers