Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EBWi11/AgentSmith-HUB
/ functions
Functions
2,165 in github.com/EBWi11/AgentSmith-HUB
⨍
Functions
2,165
◇
Types & classes
243
↓ 3 callers
Function
SetProject
(id string, project *Project)
src/project/project_struct.go:347
↓ 3 callers
Method
SetState
SetState stores a SequenceState with the given TTL.
src/rules_engine/cep_state.go:250
↓ 3 callers
Method
SetTestMode
SetTestMode configures the ruleset for test mode by disabling sampling and other global state interactions Note: isTestMode flag is automatically set
src/rules_engine/engine_struct.go:2127
↓ 3 callers
Method
StartConverged
StartConverged starts the project and retries until all components reach running state or the retry budget is exhausted.
src/project/project.go:1418
↓ 3 callers
Method
StartForTesting
(beforeRun func(*Project) error)
src/project/project.go:1149
↓ 3 callers
Method
Stop
Stop gracefully stops the agent. Safe to call even if Start was never called.
src/agent/agent_loop.go:260
↓ 3 callers
Method
StopWithTimeout
(timeout time.Duration)
src/agent/agent_loop.go:264
↓ 3 callers
Method
StoreSample
StoreSample stores a sample in Redis with TTL and size limits
src/common/redis_sample_manager.go:66
↓ 3 callers
Method
SyncInstructions
(toVersion string)
src/cluster/sync_listener.go:274
↓ 3 callers
Method
UpdateState
UpdateState atomically updates the state after modifications. Applies memory control before persisting. IMPORTANT: The caller MUST hold the per-key lo
src/rules_engine/cep_state.go:669
↓ 3 callers
Function
Verify
(path string, raw string, name string)
src/plugin/plugin.go:174
↓ 3 callers
Function
acquireAgentMemoryWriteLock
agentID -> *sync.Mutex
src/api/agent_memory_update.go:15
↓ 3 callers
Method
buildAbsenceResult
buildAbsenceResult constructs the result data for a sequence triggered by absence timeout.
src/rules_engine/engine_core.go:458
↓ 3 callers
Function
buildDeferredProjectCommands
(instructions []Instruction)
src/cluster/sync_listener.go:603
↓ 3 callers
Function
buildProjectUsageIndex
()
src/api/component_usage_indexes.go:17
↓ 3 callers
Function
buildTestHTTPClient
--- Connection test utilities --- buildTestHTTPClient creates a temporary HTTP client for connection testing
src/common/clickhouse.go:320
↓ 3 callers
Function
buildVerifyFailure
(message)
web/src/api/index.js:143
↓ 3 callers
Function
callTestPluginHandler
(t *testing.T, id string, body map[string]interface{})
src/api/plugin_testing_test.go:24
↓ 3 callers
Function
checkNodeLogic
checkNodeLogic executes the check logic for a single check node.
src/rules_engine/engine_core.go:2402
↓ 3 callers
Method
cleanup
cleanup performs cleanup when normal stop fails or panic occurs
src/output/output.go:391
↓ 3 callers
Function
cloneEventForReplay
cloneEventForReplay copies a payload so repeated pipeline runs do not alias nested maps/slices mutated or reused by the engine (shallow map + meta + t
src/rules_engine/engine_testdata_test.go:104
↓ 3 callers
Method
collectExpiredFromWheelSlot
collectExpiredFromWheelSlot collects expired entries from a given slot into expired map. Uses absenceKeys as canonical source to prevent stale wheel e
src/rules_engine/cep_state.go:300
↓ 3 callers
Method
deleteComponentInstance
deleteComponentInstance deletes actual component instances
src/cluster/sync_listener.go:955
↓ 3 callers
Function
detectLocalIP
detectLocalIP returns first non-loopback IPv4 address or "unknown"
src/logger/logger.go:43
↓ 3 callers
Method
disconnectInputsFromDownstream
disconnectInputsFromDownstream safely disconnects all input components from their downstream channels This should be called before waiting for data pr
src/project/project.go:2173
↓ 3 callers
Function
dispatchComponentChanged
(action, type, id)
web/src/api/index.js:133
↓ 3 callers
Function
drainProjectTestOutputChannels
(outputChannels map[string]chan map[string]interface{}, outputResults map[string][]map[string]interface{})
src/api/testing.go:874
↓ 3 callers
Method
emit
* Trigger event callbacks * @param {string} eventType - Event type * @param {any} eventData - Event data
web/src/utils/eventManager.js:76
↓ 3 callers
Method
evaluateEventDef
evaluateEventDef checks if the incoming data matches a single event definition. All checks within an event must pass (AND logic).
src/rules_engine/engine_core.go:1591
↓ 3 callers
Method
executeThreshold
executeThreshold executes a threshold operation
src/rules_engine/engine_core.go:1063
↓ 3 callers
Method
extractCorrelateValues
extractCorrelateValues extracts correlation values from the event data based on group_by configuration.
src/rules_engine/engine_core.go:1658
↓ 3 callers
Method
extractCorrelateValuesForStateLookup
extractCorrelateValuesForStateLookup extracts group_by values without relying on stage match results, so sequence state can be loaded before "_@"-depe
src/rules_engine/engine_core.go:1700
↓ 3 callers
Method
extractCorrelateValuesForStateLookupWithSequenceFallback
extractCorrelateValuesForStateLookupWithSequenceFallback attempts to extract group_by using sequence-level configuration when per-event extraction fai
src/rules_engine/engine_core.go:1757
↓ 3 callers
Function
extractKeysFromMap
extractKeysFromMap recursively extracts keys from a nested map structure
src/api/components.go:2093
↓ 3 callers
Function
extractLineFromEnhancedError
extractLineFromEnhancedError extracts line number from enhanced error message
src/rules_engine/engine_struct.go:471
↓ 3 callers
Function
formatMessageAsJSON
(msg map[string]interface{})
src/agent/agent_loop.go:445
↓ 3 callers
Method
getCacheStats
getCacheStats returns current cache size for monitoring.
src/rules_engine/regex_cache.go:99
↓ 3 callers
Method
getCurrentVersionUnsafe
getCurrentVersionUnsafe returns version string without locking (must be called with lock held)
src/cluster/instruction_sync.go:130
↓ 3 callers
Function
getErrorHash
(errors, warnings)
web/src/composables/useComponentValidation.js:30
↓ 3 callers
Function
getExpectedArgumentCount
getExpectedArgumentCount returns the expected argument count for known pseudo-variadic plugins
src/rules_engine/engine_struct.go:1779
↓ 3 callers
Function
getLocalAggregatedAgentStatus
(agentID string)
src/project/project_struct.go:690
↓ 3 callers
Function
getNodeFromKey
(node FlowNode)
src/project/project.go:852
↓ 3 callers
Function
getNodeToKey
(node FlowNode)
src/project/project.go:848
↓ 3 callers
Function
getRelatedProjectSamples
(componentType, componentID string)
src/api/sample_data_intelligent.go:882
↓ 3 callers
Function
getSampleDataForRuleset
Get sample data for a specific ruleset (simplified using PNS)
src/api/sample_data_intelligent.go:813
↓ 3 callers
Method
getTestCollectionChan
()
src/output/output.go:489
↓ 3 callers
Function
intFromField
(data map[string]interface{}, key string)
config/plugin/pushAlertToIris.go:369
↓ 3 callers
Function
loadAgentYAMLForMemoryUpdates
loadAgentYAMLForMemoryUpdates returns the YAML string used for agent memory edits. Prefers the pending .new file when present, matching other agent up
src/api/agent_memory_update.go:25
↓ 3 callers
Function
newSLSHubLogger
()
src/common/aliyun_sls.go:50
↓ 3 callers
Function
normalizeDynamicRefKey
(checkKey string)
src/rules_engine/engine_utils.go:299
↓ 3 callers
Method
on
* Register event listener * @param {string} eventType - Event type * @param {Function} callback - Callback function * @returns {Function} - F
web/src/utils/eventManager.js:36
↓ 3 callers
Method
parseContent
parseContent parses the project content to build the data flow graph
src/project/project.go:752
↓ 3 callers
Function
parseOutputType
parseOutputType extracts the type field from output YAML configuration
src/api/components.go:503
↓ 3 callers
Function
parseValue
(s string)
src/rules_engine/engine_struct.go:2289
↓ 3 callers
Method
prepareMessage
(msg map[string]interface{})
src/input/input.go:560
↓ 3 callers
Method
resetToStoppedForRestart
()
src/output/output.go:430
↓ 3 callers
Method
resetToStoppedForRestart
()
src/input/input.go:318
↓ 3 callers
Method
resetToStoppedForRestart
()
src/agent/agent.go:311
↓ 3 callers
Method
resetToStoppedForRestart
()
src/rules_engine/engine_core.go:281
↓ 3 callers
Method
resolvedLingerDur
()
src/output/output.go:201
↓ 3 callers
Method
rollbackCompactionLocked
(originalVersion int64, appliedWrites []compactionWrite, snapshots []instructionSnapshot, cause error)
src/cluster/instruction_sync.go:450
↓ 3 callers
Method
scanAbsenceTimeouts
scanAbsenceTimeouts checks for expired absence sequences and triggers them.
src/rules_engine/engine_core.go:347
↓ 3 callers
Method
sendToDownstream
(msg map[string]interface{})
src/rules_engine/engine_struct.go:269
↓ 3 callers
Method
sendToTestCollection
(ch *chan map[string]interface{}, msg map[string]interface{}, testCollectorType string)
src/output/output.go:495
↓ 3 callers
Method
setLocalState
(key string, state *SequenceState, ttlSeconds int)
src/rules_engine/cep_state.go:545
↓ 3 callers
Method
setRedisState
setRedisState writes state to Redis as zstd-compressed JSON.
src/rules_engine/cep_state.go:591
↓ 3 callers
Function
setSequenceContextValue
(ctx map[string]interface{}, path []string, value interface{})
src/rules_engine/engine_core.go:1444
↓ 3 callers
Method
storeSample
storeSample stores sample data to Redis only
src/common/sampler.go:159
↓ 3 callers
Method
sweepExpiredLocked
(now time.Time)
src/rules_engine/engine_threshold_cache.go:38
↓ 3 callers
Function
syncProjectOperationToFollowers
syncProjectOperationToFollowers syncs a successful local project operation to follower nodes.
src/api/project_control.go:16
↓ 3 callers
Function
testdataJoin
(elem ...string)
src/rules_engine/engine_testdata_test.go:25
↓ 3 callers
Function
timingWheelSlot
(expiresAtMs int64)
src/rules_engine/cep_state.go:267
↓ 3 callers
Method
toStr
()
src/rules_engine/engine_condition.go:45
↓ 3 callers
Function
trimStageMatches
trimStageMatches enforces the MaxStageMatchesPerStage limit. Keeps the most recent matches (highest timestamps) for each stage.
src/rules_engine/cep_state.go:683
↓ 3 callers
Function
validatePluginCall
validatePluginCall validates plugin function call syntax and parameters
src/rules_engine/engine_struct.go:1614
↓ 3 callers
Function
waitForFollowerToken
(maxAttempts int, retryInterval time.Duration)
src/api/follower_server.go:25
↓ 2 callers
Method
AddSystemMetrics
AddSystemMetrics adds or updates system metrics for a node
src/common/system_monitor.go:530
↓ 2 callers
Method
AddTokenVal
(data map[string]int)
src/rules_engine/engine_condition.go:247
↓ 2 callers
Function
AuthenticateRequest
AuthenticateRequest allows either legacy token header or OIDC Bearer token
src/api/auth.go:104
↓ 2 callers
Method
BatchStringCompare
BatchStringCompare performs multiple string comparisons in parallel using SIMD
src/rules_engine/simd_optimizations.go:129
↓ 2 callers
Function
CheckAllProjectComponents
CheckAllProjectComponents calls the registered project component checker
src/common/global.go:245
↓ 2 callers
Method
ClearFollowerExecutionFlag
ClearFollowerExecutionFlag clears the execution flag for a follower
src/cluster/sync_listener.go:489
↓ 2 callers
Method
DeleteDownstream
(downstreamID string)
src/agent/agent.go:274
↓ 2 callers
Method
DeleteDownstream
(downstreamID string)
src/rules_engine/engine_struct.go:255
↓ 2 callers
Function
DeleteRawConfig
DeleteRawConfig removes raw configuration by type and ID
src/common/global.go:120
↓ 2 callers
Method
DeleteSnapshot
(ref string)
src/rules_engine/cep_value_store.go:175
↓ 2 callers
Function
ErrPos
(s string, pos int)
src/rules_engine/engine_condition.go:34
↓ 2 callers
Method
Execute
(functionName string, arguments map[string]interface{})
src/skill/skill.go:37
↓ 2 callers
Method
ExprASTResult
(e ExprAST, tokenVal map[string]bool)
src/rules_engine/engine_condition.go:219
↓ 2 callers
Method
Functions
()
src/skill/skill.go:36
↓ 2 callers
Method
GetAllMetrics
GetAllMetrics returns all stored system metrics
src/common/system_monitor.go:418
↓ 2 callers
Function
GetAllProjectUserIntentions
GetAllProjectUserIntentions gets all user intentions (GLOBAL state) Returns map of projectID -> bool (true=running, false=stopped)
src/common/redis.go:640
↓ 2 callers
Function
GetComponentTypeFromSequence
GetComponentTypeFromSequence extracts the component type from the LAST part of ProjectNodeSequence Examples: - "INPUT.kafka1" -> "input" (last compone
src/common/daily_stats_manager.go:74
↓ 2 callers
Method
GetConsumeTotal
QPS calculation and GetConsumeQPS method removed Message statistics are now handled by Daily Stats Manager GetConsumeTotal returns the total consumed
src/input/input.go:782
↓ 2 callers
Method
GetPendingMessageCount
GetPendingMessageCount returns the total number of pending messages in all channels This includes upstream channels and internal producer channels
src/output/output.go:1437
↓ 2 callers
Function
GetRedisClient
GetRedisClient returns underlying redis client for advanced operations
src/common/redis.go:387
↓ 2 callers
Function
GetRedisPipeline
===================== Pipeline Operations ===================== GetRedisPipeline returns a new Redis pipeline for batch operations
src/common/redis.go:456
↓ 2 callers
Function
GetRulesetFieldsForID
GetRulesetFieldsForID is a helper function to get field keys for a specific ruleset
src/api/components.go:3051
↓ 2 callers
Method
GetRunningTaskCount
GetRunningTaskCount returns the number of currently running tasks in the thread pool Returns 0 if the thread pool is not initialized
src/rules_engine/engine_core.go:2675
↓ 2 callers
Function
GetSamplerData
GetSamplerData retrieves sample data from project components
src/api/components.go:1809
← previous
next →
301–400 of 2,165, ranked by callers