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
↓ 141 callers
Method
Error
()
pkg/runtime/agent_test.go:226
↓ 39 callers
Method
Execute
(context string, task string)
pkg/runtime/agent.go:15
↓ 35 callers
Method
Record
Record records an observation and updates the model's profile.
pkg/governor/registry.go:122
↓ 35 callers
Method
remember
Store a memory. Persists immediately to disk. Args: content: The text to remember. namespace: Isolation grou
ark-memory/ark_memory/agent.py:58
↓ 33 callers
Function
NewRegistry
NewRegistry creates an empty registry.
pkg/governor/registry.go:97
↓ 30 callers
Method
SetStep
(step int, stepType string)
pkg/runtime/agent.go:40
↓ 24 callers
Method
RegisterTool
(tool Tool)
pkg/tools/http.go:64
↓ 24 callers
Method
RegisterTool
(id, name, description string, fullSchema string)
pkg/context/manager.go:112
↓ 23 callers
Method
RecordStep
(step int, inputTokens, outputTokens int, action, toolName string, latency time.Duration)
pkg/cost/cost.go:163
↓ 22 callers
Method
recall
Recall memories relevant to a query. Semantic search with time decay. Args: query: What to search for (natural language)
ark-memory/ark_memory/agent.py:102
↓ 21 callers
Method
count
Count memories in a namespace.
ark-memory/ark_memory/agent.py:215
↓ 20 callers
Function
NewRouterWithExecutor
(exec Executor)
pkg/tools/http.go:51
↓ 17 callers
Function
DefaultBudget
(totalTokens int)
pkg/context/manager.go:21
↓ 17 callers
Function
NewManager
(budget TokenBudget)
pkg/context/manager.go:97
↓ 17 callers
Function
NewTracker
(pricing TokenPrice)
pkg/cost/cost.go:134
↓ 17 callers
Method
Record
(model string, kind string, stepType string, toolName string, latencyMs float64, cost float64, errorClass stri
pkg/runtime/agent.go:119
↓ 16 callers
Function
ModelPricing
(provider, model string)
pkg/cost/cost.go:59
↓ 16 callers
Method
_make_agent
(self)
ark-memory/tests/test_memory.py:193
↓ 15 callers
Method
AdaptContext
(plan *ContextPlan, result ExecutionResult)
pkg/context/engine.go:173
↓ 14 callers
Method
Handle
(call *ToolCall)
pkg/runtime/agent.go:35
↓ 14 callers
Method
PrepareContext
(taskID, query string)
pkg/context/engine.go:114
↓ 14 callers
Function
clamp
(v float64)
pkg/governor/registry.go:521
↓ 13 callers
Function
DefaultVerifierConfig
DefaultVerifierConfig returns production-safe defaults.
pkg/governor/verifier.go:55
↓ 13 callers
Method
GetProfile
GetProfile returns a copy of a model's profile.
pkg/governor/registry.go:347
↓ 13 callers
Function
NewVerifier
NewVerifier creates a verifier linked to the capability registry.
pkg/governor/verifier.go:81
↓ 13 callers
Method
Report
()
pkg/cost/cost.go:220
↓ 13 callers
Method
_make
(self)
ark-memory/tests/test_experience.py:11
↓ 13 callers
Method
store
Store a memory. Generates embedding if not present.
ark-memory/ark_memory/store.py:74
↓ 12 callers
Method
Load
(id string)
pkg/context/manager.go:128
↓ 12 callers
Function
New
(cfg Config, fast, strong runtime.Executor)
pkg/router/router.go:97
↓ 11 callers
Method
Add
(report *CostReport)
pkg/cost/cost.go:346
↓ 11 callers
Method
embed
(self, text: str)
ark-memory/ark_memory/embeddings.py:34
↓ 11 callers
Function
registerTestTools
(mgr *Manager)
pkg/context/engine_test.go:415
↓ 10 callers
Function
NewJSONFileStore
(path string)
pkg/store/store.go:72
↓ 10 callers
Method
String
()
pkg/context/engine.go:95
↓ 10 callers
Method
_make
(self)
ark-memory/tests/test_collector.py:13
↓ 10 callers
Method
close
Close database connection.
ark-memory/ark_memory/store.py:480
↓ 10 callers
Method
strategy_learned
Record a strategy or pattern that was discovered.
ark-memory/ark_memory/experience.py:206
↓ 10 callers
Method
tool_succeeded
Record a successful tool execution.
ark-memory/ark_memory/experience.py:79
↓ 9 callers
Method
Close
()
pkg/store/store.go:232
↓ 9 callers
Method
Run
(taskID, task string)
pkg/runtime/agent.go:340
↓ 9 callers
Method
SetTaskID
(taskID string)
pkg/cost/cost.go:157
↓ 8 callers
Function
DefaultEngineConfig
()
pkg/context/engine.go:30
↓ 8 callers
Function
NewEngine
(mgr *Manager, config EngineConfig)
pkg/context/engine.go:40
↓ 8 callers
Function
NewHTTPExecutor
(allowedDomains []string)
pkg/tools/http.go:178
↓ 8 callers
Method
Rank
(query string, mgr *Manager)
pkg/context/engine.go:472
↓ 8 callers
Function
RegisterCustomHTTP
(router *Router, cfg CustomToolConfig)
pkg/tools/custom.go:24
↓ 8 callers
Method
ShouldEscalate
ShouldEscalate checks if a failed verification should trigger escalation to a stronger model.
pkg/governor/verifier.go:393
↓ 8 callers
Method
Validate
()
pkg/config/config.go:293
↓ 8 callers
Method
ingest_file
Ingest events from a JSONL file. Each line is one JSON event. Args: path: Path to the JSONL event log file.
ark-memory/ark_memory/collector.py:65
↓ 7 callers
Function
DefaultConfig
()
pkg/config/config.go:67
↓ 7 callers
Method
Evict
(id string)
pkg/context/manager.go:314
↓ 7 callers
Function
Load
(path string)
pkg/config/config.go:96
↓ 7 callers
Function
NewAgent
(engine *ctx.Engine, executor Executor, tools ToolHandler, config AgentConfig)
pkg/runtime/agent.go:172
↓ 7 callers
Method
Register
(block *ContextBlock)
pkg/context/manager.go:106
↓ 7 callers
Method
headers
()
pkg/tools/github.go:117
↓ 7 callers
Method
prompt_worked
Record a prompt/task that produced good results.
ark-memory/ark_memory/experience.py:142
↓ 7 callers
Function
stripNulls
(m map[string]interface{})
pkg/tools/github.go:1008
↓ 7 callers
Method
tool_failed
Record a failed tool execution.
ark-memory/ark_memory/experience.py:112
↓ 7 callers
Function
validatePath
(path string)
pkg/tools/filesystem.go:71
↓ 6 callers
Method
BudgetExceeded
()
pkg/cost/cost.go:201
↓ 6 callers
Function
ClassifyTask
(query string)
pkg/governor/intelligence.go:18
↓ 6 callers
Function
CleanResponse
(raw string, taskType string, config QualityConfig)
pkg/runtime/quality.go:117
↓ 6 callers
Method
Decisions
()
pkg/router/router.go:325
↓ 6 callers
Function
DefaultQualityConfig
()
pkg/runtime/quality.go:16
↓ 6 callers
Function
DetermineEffort
model history, and the last verification confidence.
pkg/governor/intelligence.go:200
↓ 6 callers
Method
RecordSuccess
(toolID string, latency time.Duration)
pkg/context/engine.go:639
↓ 6 callers
Method
TracerRef
()
pkg/context/engine.go:66
↓ 6 callers
Method
VerifyToolCall
(model string, toolName string, call *runtime.ToolCall, response *runtime.ModelResponse)
pkg/governor/verifier.go:89
↓ 6 callers
Method
_make_store
(self)
ark-memory/tests/test_memory.py:70
↓ 6 callers
Function
cleanCompilerError
(raw string)
pkg/runtime/verify.go:783
↓ 6 callers
Function
findScore
(scores []toolScore, prefix string)
cmd/ark/main.go:1051
↓ 5 callers
Method
Emit
Emit writes a single event as a JSON line.
pkg/runtime/events.go:43
↓ 5 callers
Method
Flush
()
pkg/store/store.go:224
↓ 5 callers
Method
Save
(record ToolStatsRecord)
pkg/store/store.go:184
↓ 5 callers
Method
SetAttribution
(userID, featureID, sessionID string)
pkg/cost/cost.go:147
↓ 5 callers
Method
SetBudget
(maxUSD float64)
pkg/cost/cost.go:141
↓ 5 callers
Method
Strategy
()
pkg/router/router.go:364
↓ 5 callers
Function
clamp
(v, lo, hi float64)
pkg/context/engine.go:838
↓ 5 callers
Function
contains
helper
pkg/config/config_test.go:361
↓ 5 callers
Function
containsFlag
(flags []string, flag string)
pkg/governor/governor_test.go:534
↓ 5 callers
Method
recordPerf
this is for performance recording i mean self improving
pkg/router/router.go:291
↓ 5 callers
Function
structuralLint
Phase 2: Structural Lint
pkg/runtime/verify.go:179
↓ 5 callers
Method
successRate
()
pkg/router/router.go:72
↓ 5 callers
Method
what_worked_for
Get strategies that worked for a specific task type.
ark-memory/ark_memory/experience.py:338
↓ 5 callers
Function
writeTestConfig
(t *testing.T, content string)
pkg/config/config_test.go:12
↓ 4 callers
Function
CheckDisagreement
CheckDisagreement compares two model outputs to detect if they fundamentally disagree. Simple version: Jaccard similarity on word sets.
pkg/governor/intelligence.go:299
↓ 4 callers
Method
Close
()
pkg/store/store.go:36
↓ 4 callers
Method
GetExecutor
()
pkg/tools/http.go:143
↓ 4 callers
Method
GetTool
(name string)
pkg/tools/http.go:142
↓ 4 callers
Method
LoadAll
()
pkg/store/store.go:203
↓ 4 callers
Method
LoadRelevant
(query string, maxBlocks int)
pkg/context/manager.go:189
↓ 4 callers
Function
NewToolRanker
()
pkg/context/engine.go:411
↓ 4 callers
Function
OptimizePrompt
(raw string, taskType string)
pkg/runtime/quality.go:26
↓ 4 callers
Method
PredictFailure
(model string, taskType TaskType, toolName string)
pkg/governor/intelligence.go:94
↓ 4 callers
Method
PrintTrace
(traceID string)
pkg/context/engine.go:949
↓ 4 callers
Method
Render
()
pkg/context/manager.go:260
↓ 4 callers
Method
VerifyReasoning
VerifyReasoning checks a final reasoning/completion response.
pkg/governor/verifier.go:248
↓ 4 callers
Method
best_tool_for
Find the best tool for a task based on past experience. Returns tool recommendations with success rates and performance data.
ark-memory/ark_memory/experience.py:276
↓ 4 callers
Function
containsStr
(s, substr string)
pkg/governor/governor_test.go:523
next →
1–100 of 715, ranked by callers