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
↓ 4 callers
Function
GetRegexCacheStats
GetRegexCacheStats returns the current number of cached patterns.
src/rules_engine/regex_cache.go:127
↓ 4 callers
Method
GetSamples
GetSamples returns all collected samples from Redis
src/common/sampler.go:168
↓ 4 callers
Method
GetStats
GetStats returns sampling statistics from Redis
src/common/sampler.go:183
↓ 4 callers
Method
LocalCacheFRQSum
LocalCacheFRQSum performs frequency sum aggregation using local cache. groupByKey: Cache key for grouping sumData: Value to add to the sum rangeInt: T
src/rules_engine/engine_utils.go:49
↓ 4 callers
Function
NewInput
NewInput creates an Input from config and downstreams.
src/input/input.go:173
↓ 4 callers
Function
RedisFRQSum
RedisFRQSum performs frequency sum aggregation using Redis groupByKey: Redis key for grouping sumData: Value to add to the sum rangeInt: Time range in
src/rules_engine/engine_utils.go:20
↓ 4 callers
Function
RedisHGetAll
RedisHGetAll returns all field-value pairs of a hash
src/common/redis.go:377
↓ 4 callers
Function
RedisLRange
RedisLRange returns list range
src/common/redis.go:405
↓ 4 callers
Method
Release
Release releases the distributed lock
src/common/redis.go:544
↓ 4 callers
Function
SetRawConfig
SetRawConfig stores raw configuration by type and ID
src/common/global.go:76
↓ 4 callers
Method
StageCount
StageCount returns the number of stages in the condition.
src/rules_engine/cep_condition.go:900
↓ 4 callers
Method
Stop
Stop stops the project and all its components in proper order
src/project/project.go:1260
↓ 4 callers
Method
Stop
Stop stops the input component and its consumers
src/input/input.go:657
↓ 4 callers
Method
UntrackAbsenceKey
UntrackAbsenceKey removes a key from absence scanning.
src/rules_engine/cep_state.go:358
↓ 4 callers
Function
Verify
(path string, raw string)
src/output/output.go:212
↓ 4 callers
Function
WriteComponentFile
WriteComponentFile writes content to a component file It also updates the in-memory cache for temporary files Parameters: - path: full file path to wr
src/api/file_operations.go:97
↓ 4 callers
Method
attachLlmError
attachLlmError annotates the message with an llm error block for this agent. The message is still forwarded to downstream components so the pipeline c
src/agent/agent_loop.go:432
↓ 4 callers
Method
avx2ContainsCaseInsensitive
(data, pattern string)
src/rules_engine/simd_amd64.go:113
↓ 4 callers
Method
cleanup
cleanup performs cleanup when normal stop fails or panic occurs
src/input/input.go:275
↓ 4 callers
Method
cleanupStateValueRefs
cleanupStateValueRefs deletes external snapshot references associated with a sequence state.
src/rules_engine/engine_core.go:1555
↓ 4 callers
Method
clearAllLocalComponents
clearAllLocalComponents clears all local components and projects when leader session changes This function never fails - it will try best effort to cl
src/cluster/sync_listener.go:786
↓ 4 callers
Function
dataKey
(ref string)
src/rules_engine/cep_value_store.go:337
↓ 4 callers
Function
detectOrDefaultElasticsearchVersion
detectOrDefaultElasticsearchVersion returns: - normalized explicit version if provided - otherwise, tries to detect from cluster root - on detection f
src/common/elasticsearch.go:189
↓ 4 callers
Method
dispatchMessage
(msg map[string]interface{})
src/input/input.go:568
↓ 4 callers
Function
doClickHouseQuery
doClickHouseQuery executes a simple query against a ClickHouse host and returns the response body
src/common/clickhouse.go:325
↓ 4 callers
Function
ensureLogDir
ensureLogDir creates the log directory if it doesn't exist
src/logger/logger.go:32
↓ 4 callers
Method
executeIteratorThreshold
executeIteratorThreshold executes a threshold check within an iterator context
src/rules_engine/engine_core.go:2331
↓ 4 callers
Method
flush
flush batch writes to ES
src/common/elasticsearch.go:509
↓ 4 callers
Method
flush
flush batch writes to ClickHouse
src/common/clickhouse.go:305
↓ 4 callers
Function
getCacheKey
getCacheKey generates a cache key for the given query
src/local_plugin/threatbook/threatbook.go:203
↓ 4 callers
Function
getCacheKey
getCacheKey generates a cache key for the given hash
src/local_plugin/virustotal/virustotal.go:109
↓ 4 callers
Function
getCacheKey
getCacheKey generates a cache key for the given IP
src/local_plugin/shodan/shodan.go:115
↓ 4 callers
Method
getCompiledRegex
getCompiledRegex retrieves a compiled regex from cache or compiles and caches it.
src/rules_engine/regex_cache.go:67
↓ 4 callers
Function
getErrorLogsFromKey
getErrorLogsFromKey retrieves error logs from a specific Redis key
src/common/error_log_redis.go:252
↓ 4 callers
Function
getExistingPluginContent
(id string)
src/api/pending_changes_sync.go:207
↓ 4 callers
Method
getKey
(changeType, id string)
src/api/pending_changes.go:92
↓ 4 callers
Function
getRulesetFolderFromPath
getRulesetFolderFromPath extracts the folder name from a ruleset's full file path. Returns "" if the ruleset is in the root directory.
src/api/ruleset_folders.go:35
↓ 4 callers
Method
hasEventGroupBy
hasEventGroupBy checks if any event in the sequence has a per-event group_by.
src/rules_engine/engine_core.go:1797
↓ 4 callers
Function
internalServerError
(c echo.Context, message string)
src/api/http_helpers.go:37
↓ 4 callers
Function
jsonError
(msg string)
src/agent/agent.go:459
↓ 4 callers
Function
loadEventsFromTestdataJSON
loadEventsFromTestdataJSON loads testdata/events/*.json with top-level "events" array.
src/rules_engine/engine_testdata_test.go:56
↓ 4 callers
Function
logWithCaller
logWithCaller adds caller information to log entries
src/logger/logger.go:456
↓ 4 callers
Function
mergeEventIDs
(a, b []string)
src/rules_engine/cep_condition.go:588
↓ 4 callers
Function
newTestStateManager
============================================================ cep_state.go — SetState, String, removeFromWheelSlot ====================================
src/rules_engine/engine_cep_extra_test.go:49
↓ 4 callers
Function
parseCheckNode
(element xml.StartElement, decoder *XMLDecoder, elementLine int)
src/rules_engine/engine_parser.go:680
↓ 4 callers
Method
parsePluginParameters
parsePluginParameters extracts parameter information from the plugin function
src/plugin/plugin.go:526
↓ 4 callers
Function
parsePositiveDuration
(fieldName string, raw string, fallback time.Duration)
src/output/output.go:148
↓ 4 callers
Function
parsePositiveOptionalInt
(fieldName string, value int, fallback int)
src/output/output.go:163
↓ 4 callers
Function
parseRFC3339Time
(raw string)
src/api/error_logs.go:94
↓ 4 callers
Function
parseThreshold
(element xml.StartElement, decoder *XMLDecoder, elementLine int)
src/rules_engine/engine_parser.go:780
↓ 4 callers
Function
performRefresh
()
web/src/composables/useSmartRefresh.js:144
↓ 4 callers
Method
platformOptimizedContains
ARM64-optimized SIMDContains using NEON concepts
src/rules_engine/simd_arm64.go:32
↓ 4 callers
Method
processBatch
processBatch processes a batch of samples efficiently using Redis pipeline
src/common/redis_sample_manager.go:370
↓ 4 callers
Function
projectErrorResponse
Helper function to return appropriate error format based on call mode
src/api/testing.go:831
↓ 4 callers
Function
recordPluginValue
(usedPlugins map[string]struct{}, knownPlugins map[string]struct{}, value string)
src/api/component_usage_indexes.go:92
↓ 4 callers
Function
reloadComponentUnified
reloadComponentUnified provides unified component reload logic for all sources
src/api/pending_changes.go:508
↓ 4 callers
Method
resolvedBatchCount
()
src/output/output.go:193
↓ 4 callers
Method
resolvedBatchSizeBytes
()
src/output/output.go:197
↓ 4 callers
Function
setRefreshInterval
(interval)
web/src/composables/useSmartRefresh.js:128
↓ 4 callers
Method
shouldCompactLocked
()
src/cluster/instruction_sync.go:288
↓ 4 callers
Function
sortUsageIndex
(index map[string][]string)
src/api/component_usage_indexes.go:149
↓ 4 callers
Method
sse42ContainsCaseInsensitive
(data, pattern string)
src/rules_engine/simd_amd64.go:159
↓ 4 callers
Function
standardContainsCaseInsensitive
(data, pattern string)
src/rules_engine/simd_optimizations.go:227
↓ 4 callers
Method
startProducerBridge
(msgChan chan map[string]interface{}, producerType string, hasTestCollector bool)
src/output/output.go:529
↓ 4 callers
Function
truncateForLog
truncateForLog limits long argument / result payloads so logs remain readable.
src/agent/agent.go:559
↓ 4 callers
Function
truncateMemoryContextField
(s string)
src/agent/llm.go:255
↓ 4 callers
Method
updateComponentInstance
updateComponentInstance updates existing component instances with new configuration
src/cluster/sync_listener.go:1005
↓ 4 callers
Method
yaegiLoad
()
src/plugin/plugin.go:279
↓ 3 callers
Function
AnyToString
AnyToString converts various types to their string representation. Supports string, int, bool, float64, int64, and falls back to JSON for others.
src/common/utils.go:208
↓ 3 callers
Function
CachedRegexMatchWithPrecompiled
CachedRegexMatchWithPrecompiled performs regex matching using pre-compiled regex This is for static regex patterns that are already compiled NOTE: Cac
src/rules_engine/regex_result_cache.go:161
↓ 3 callers
Method
CheckConnectivity
CheckConnectivity performs a real connectivity test for the output component This method tests actual connection to external systems (Kafka, ES, etc.)
src/output/output.go:1018
↓ 3 callers
Function
CompactAgentLogTraceJSON
CompactAgentLogTraceJSON rewrites a trace JSON array: each llm step's input_messages becomes TraceInputMessagesPlaceholder. Tool rows and LLM outputs
src/common/agent_log_trace_compact.go:15
↓ 3 callers
Method
CopyDownstream
()
src/agent/agent.go:253
↓ 3 callers
Function
DeletePNSAgent
(pns string)
src/project/project_struct.go:580
↓ 3 callers
Function
DeletePNSOutput
(pns string)
src/project/project_struct.go:495
↓ 3 callers
Function
DeletePNSRuleset
(pns string)
src/project/project_struct.go:518
↓ 3 callers
Function
GetAgent
Agent accessors
src/project/project_struct.go:525
↓ 3 callers
Function
GetCheckData
GetCheckData traverses a nested map[string]interface{} using a key path (checkKeyList). Returns the string value and whether it exists. Handles map, s
src/common/utils.go:230
↓ 3 callers
Function
GetDeletedIntentionsString
()
src/cluster/instruction_sync.go:41
↓ 3 callers
Function
GetNodeID
GetNodeID returns the current node ID
src/common/cluster_state.go:56
↓ 3 callers
Function
GetPluginLogger
GetPluginLogger returns the plugin logger instance
src/logger/logger.go:246
↓ 3 callers
Function
GetRegexResultCacheStats
GetRegexResultCacheStats returns cache statistics for monitoring
src/rules_engine/regex_result_cache.go:183
↓ 3 callers
Method
GetSuccessIncrementAndUpdate
GetSuccessIncrementAndUpdate returns the increment in success count since last call and updates the baseline This method is thread-safe and designed f
src/plugin/plugin.go:1050
↓ 3 callers
Method
LockKey
LockKey acquires a per-key mutex, ensuring exclusive access to a SequenceState. Must be paired with UnlockKey. Used to protect the entire read-modify-
src/rules_engine/cep_state.go:197
↓ 3 callers
Function
MapDeepCopyAction
(m interface{})
src/common/utils.go:117
↓ 3 callers
Function
NOTNULL
(data string, _ string)
src/rules_engine/engine_utils.go:500
↓ 3 callers
Function
NewFromExisting
NewFromExisting creates a new Ruleset instance from an existing one with a different ProjectNodeSequence This is used when multiple projects use the s
src/rules_engine/engine_struct.go:2096
↓ 3 callers
Function
ParseCheckNodePluginCall
ParseCheckNodePluginCall parses a plugin call for check nodes, supporting negation with ! prefix
src/rules_engine/engine_struct.go:2182
↓ 3 callers
Method
ProcessMessageWithTrace
ProcessMessageWithTrace runs one message through the agent and returns the result plus a full trace: every LLM call (input_messages + model output) an
src/agent/agent_loop.go:342
↓ 3 callers
Function
RedisHGet
RedisHGet gets a field from a Redis hash
src/common/redis.go:363
↓ 3 callers
Function
RedisHSet
===================== Hash and Pub/Sub Helpers ===================== RedisHSet sets a field in a Redis hash (no expiration)
src/common/redis.go:358
↓ 3 callers
Method
RemoveChange
RemoveChange removes a pending change
src/api/pending_changes.go:153
↓ 3 callers
Method
ResetConsumeTotal
ResetConsumeTotal resets the total consumed count to zero. This should only be called during component cleanup or forced restart.
src/input/input.go:788
↓ 3 callers
Method
ResetDownstream
()
src/input/input.go:628
↓ 3 callers
Function
SafeDeleteAgentDownstream
(agentPNS, downstreamID string)
src/project/project_struct.go:619
↓ 3 callers
Function
SafeDeleteInputDownstream
Helper function to safely access input downstream
src/project/project_struct.go:1215
↓ 3 callers
Method
SetDownstream
(downstreamID string, ch *chan map[string]interface{})
src/agent/agent.go:264
↓ 3 callers
Method
SetDownstream
(downstreamID string, ch *chan map[string]interface{})
src/rules_engine/engine_struct.go:245
↓ 3 callers
Function
SetPNSAgent
(pns string, a *agent.Agent)
src/project/project_struct.go:571
↓ 3 callers
Function
SetPNSRuleset
(pns string, rs *rules_engine.Ruleset)
src/project/project_struct.go:509
← previous
next →
201–300 of 2,165, ranked by callers