MCPcopy Create free account

hub / github.com/EBWi11/AgentSmith-HUB / functions

Functions2,165 in github.com/EBWi11/AgentSmith-HUB

↓ 4 callersFunctionGetRegexCacheStats
GetRegexCacheStats returns the current number of cached patterns.
src/rules_engine/regex_cache.go:127
↓ 4 callersMethodGetSamples
GetSamples returns all collected samples from Redis
src/common/sampler.go:168
↓ 4 callersMethodGetStats
GetStats returns sampling statistics from Redis
src/common/sampler.go:183
↓ 4 callersMethodLocalCacheFRQSum
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 callersFunctionNewInput
NewInput creates an Input from config and downstreams.
src/input/input.go:173
↓ 4 callersFunctionRedisFRQSum
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 callersFunctionRedisHGetAll
RedisHGetAll returns all field-value pairs of a hash
src/common/redis.go:377
↓ 4 callersFunctionRedisLRange
RedisLRange returns list range
src/common/redis.go:405
↓ 4 callersMethodRelease
Release releases the distributed lock
src/common/redis.go:544
↓ 4 callersFunctionSetRawConfig
SetRawConfig stores raw configuration by type and ID
src/common/global.go:76
↓ 4 callersMethodStageCount
StageCount returns the number of stages in the condition.
src/rules_engine/cep_condition.go:900
↓ 4 callersMethodStop
Stop stops the project and all its components in proper order
src/project/project.go:1260
↓ 4 callersMethodStop
Stop stops the input component and its consumers
src/input/input.go:657
↓ 4 callersMethodUntrackAbsenceKey
UntrackAbsenceKey removes a key from absence scanning.
src/rules_engine/cep_state.go:358
↓ 4 callersFunctionVerify
(path string, raw string)
src/output/output.go:212
↓ 4 callersFunctionWriteComponentFile
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 callersMethodattachLlmError
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 callersMethodavx2ContainsCaseInsensitive
(data, pattern string)
src/rules_engine/simd_amd64.go:113
↓ 4 callersMethodcleanup
cleanup performs cleanup when normal stop fails or panic occurs
src/input/input.go:275
↓ 4 callersMethodcleanupStateValueRefs
cleanupStateValueRefs deletes external snapshot references associated with a sequence state.
src/rules_engine/engine_core.go:1555
↓ 4 callersMethodclearAllLocalComponents
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 callersFunctiondataKey
(ref string)
src/rules_engine/cep_value_store.go:337
↓ 4 callersFunctiondetectOrDefaultElasticsearchVersion
detectOrDefaultElasticsearchVersion returns: - normalized explicit version if provided - otherwise, tries to detect from cluster root - on detection f
src/common/elasticsearch.go:189
↓ 4 callersMethoddispatchMessage
(msg map[string]interface{})
src/input/input.go:568
↓ 4 callersFunctiondoClickHouseQuery
doClickHouseQuery executes a simple query against a ClickHouse host and returns the response body
src/common/clickhouse.go:325
↓ 4 callersFunctionensureLogDir
ensureLogDir creates the log directory if it doesn't exist
src/logger/logger.go:32
↓ 4 callersMethodexecuteIteratorThreshold
executeIteratorThreshold executes a threshold check within an iterator context
src/rules_engine/engine_core.go:2331
↓ 4 callersMethodflush
flush batch writes to ES
src/common/elasticsearch.go:509
↓ 4 callersMethodflush
flush batch writes to ClickHouse
src/common/clickhouse.go:305
↓ 4 callersFunctiongetCacheKey
getCacheKey generates a cache key for the given query
src/local_plugin/threatbook/threatbook.go:203
↓ 4 callersFunctiongetCacheKey
getCacheKey generates a cache key for the given hash
src/local_plugin/virustotal/virustotal.go:109
↓ 4 callersFunctiongetCacheKey
getCacheKey generates a cache key for the given IP
src/local_plugin/shodan/shodan.go:115
↓ 4 callersMethodgetCompiledRegex
getCompiledRegex retrieves a compiled regex from cache or compiles and caches it.
src/rules_engine/regex_cache.go:67
↓ 4 callersFunctiongetErrorLogsFromKey
getErrorLogsFromKey retrieves error logs from a specific Redis key
src/common/error_log_redis.go:252
↓ 4 callersFunctiongetExistingPluginContent
(id string)
src/api/pending_changes_sync.go:207
↓ 4 callersMethodgetKey
(changeType, id string)
src/api/pending_changes.go:92
↓ 4 callersFunctiongetRulesetFolderFromPath
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 callersMethodhasEventGroupBy
hasEventGroupBy checks if any event in the sequence has a per-event group_by.
src/rules_engine/engine_core.go:1797
↓ 4 callersFunctioninternalServerError
(c echo.Context, message string)
src/api/http_helpers.go:37
↓ 4 callersFunctionjsonError
(msg string)
src/agent/agent.go:459
↓ 4 callersFunctionloadEventsFromTestdataJSON
loadEventsFromTestdataJSON loads testdata/events/*.json with top-level "events" array.
src/rules_engine/engine_testdata_test.go:56
↓ 4 callersFunctionlogWithCaller
logWithCaller adds caller information to log entries
src/logger/logger.go:456
↓ 4 callersFunctionmergeEventIDs
(a, b []string)
src/rules_engine/cep_condition.go:588
↓ 4 callersFunctionnewTestStateManager
============================================================ cep_state.go — SetState, String, removeFromWheelSlot ====================================
src/rules_engine/engine_cep_extra_test.go:49
↓ 4 callersFunctionparseCheckNode
(element xml.StartElement, decoder *XMLDecoder, elementLine int)
src/rules_engine/engine_parser.go:680
↓ 4 callersMethodparsePluginParameters
parsePluginParameters extracts parameter information from the plugin function
src/plugin/plugin.go:526
↓ 4 callersFunctionparsePositiveDuration
(fieldName string, raw string, fallback time.Duration)
src/output/output.go:148
↓ 4 callersFunctionparsePositiveOptionalInt
(fieldName string, value int, fallback int)
src/output/output.go:163
↓ 4 callersFunctionparseRFC3339Time
(raw string)
src/api/error_logs.go:94
↓ 4 callersFunctionparseThreshold
(element xml.StartElement, decoder *XMLDecoder, elementLine int)
src/rules_engine/engine_parser.go:780
↓ 4 callersFunctionperformRefresh
()
web/src/composables/useSmartRefresh.js:144
↓ 4 callersMethodplatformOptimizedContains
ARM64-optimized SIMDContains using NEON concepts
src/rules_engine/simd_arm64.go:32
↓ 4 callersMethodprocessBatch
processBatch processes a batch of samples efficiently using Redis pipeline
src/common/redis_sample_manager.go:370
↓ 4 callersFunctionprojectErrorResponse
Helper function to return appropriate error format based on call mode
src/api/testing.go:831
↓ 4 callersFunctionrecordPluginValue
(usedPlugins map[string]struct{}, knownPlugins map[string]struct{}, value string)
src/api/component_usage_indexes.go:92
↓ 4 callersFunctionreloadComponentUnified
reloadComponentUnified provides unified component reload logic for all sources
src/api/pending_changes.go:508
↓ 4 callersMethodresolvedBatchCount
()
src/output/output.go:193
↓ 4 callersMethodresolvedBatchSizeBytes
()
src/output/output.go:197
↓ 4 callersFunctionsetRefreshInterval
(interval)
web/src/composables/useSmartRefresh.js:128
↓ 4 callersMethodshouldCompactLocked
()
src/cluster/instruction_sync.go:288
↓ 4 callersFunctionsortUsageIndex
(index map[string][]string)
src/api/component_usage_indexes.go:149
↓ 4 callersMethodsse42ContainsCaseInsensitive
(data, pattern string)
src/rules_engine/simd_amd64.go:159
↓ 4 callersFunctionstandardContainsCaseInsensitive
(data, pattern string)
src/rules_engine/simd_optimizations.go:227
↓ 4 callersMethodstartProducerBridge
(msgChan chan map[string]interface{}, producerType string, hasTestCollector bool)
src/output/output.go:529
↓ 4 callersFunctiontruncateForLog
truncateForLog limits long argument / result payloads so logs remain readable.
src/agent/agent.go:559
↓ 4 callersFunctiontruncateMemoryContextField
(s string)
src/agent/llm.go:255
↓ 4 callersMethodupdateComponentInstance
updateComponentInstance updates existing component instances with new configuration
src/cluster/sync_listener.go:1005
↓ 4 callersMethodyaegiLoad
()
src/plugin/plugin.go:279
↓ 3 callersFunctionAnyToString
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 callersFunctionCachedRegexMatchWithPrecompiled
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 callersMethodCheckConnectivity
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 callersFunctionCompactAgentLogTraceJSON
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 callersMethodCopyDownstream
()
src/agent/agent.go:253
↓ 3 callersFunctionDeletePNSAgent
(pns string)
src/project/project_struct.go:580
↓ 3 callersFunctionDeletePNSOutput
(pns string)
src/project/project_struct.go:495
↓ 3 callersFunctionDeletePNSRuleset
(pns string)
src/project/project_struct.go:518
↓ 3 callersFunctionGetAgent
Agent accessors
src/project/project_struct.go:525
↓ 3 callersFunctionGetCheckData
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 callersFunctionGetDeletedIntentionsString
()
src/cluster/instruction_sync.go:41
↓ 3 callersFunctionGetNodeID
GetNodeID returns the current node ID
src/common/cluster_state.go:56
↓ 3 callersFunctionGetPluginLogger
GetPluginLogger returns the plugin logger instance
src/logger/logger.go:246
↓ 3 callersFunctionGetRegexResultCacheStats
GetRegexResultCacheStats returns cache statistics for monitoring
src/rules_engine/regex_result_cache.go:183
↓ 3 callersMethodGetSuccessIncrementAndUpdate
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 callersMethodLockKey
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 callersFunctionMapDeepCopyAction
(m interface{})
src/common/utils.go:117
↓ 3 callersFunctionNOTNULL
(data string, _ string)
src/rules_engine/engine_utils.go:500
↓ 3 callersFunctionNewFromExisting
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 callersFunctionParseCheckNodePluginCall
ParseCheckNodePluginCall parses a plugin call for check nodes, supporting negation with ! prefix
src/rules_engine/engine_struct.go:2182
↓ 3 callersMethodProcessMessageWithTrace
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 callersFunctionRedisHGet
RedisHGet gets a field from a Redis hash
src/common/redis.go:363
↓ 3 callersFunctionRedisHSet
===================== Hash and Pub/Sub Helpers ===================== RedisHSet sets a field in a Redis hash (no expiration)
src/common/redis.go:358
↓ 3 callersMethodRemoveChange
RemoveChange removes a pending change
src/api/pending_changes.go:153
↓ 3 callersMethodResetConsumeTotal
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 callersMethodResetDownstream
()
src/input/input.go:628
↓ 3 callersFunctionSafeDeleteAgentDownstream
(agentPNS, downstreamID string)
src/project/project_struct.go:619
↓ 3 callersFunctionSafeDeleteInputDownstream
Helper function to safely access input downstream
src/project/project_struct.go:1215
↓ 3 callersMethodSetDownstream
(downstreamID string, ch *chan map[string]interface{})
src/agent/agent.go:264
↓ 3 callersMethodSetDownstream
(downstreamID string, ch *chan map[string]interface{})
src/rules_engine/engine_struct.go:245
↓ 3 callersFunctionSetPNSAgent
(pns string, a *agent.Agent)
src/project/project_struct.go:571
↓ 3 callersFunctionSetPNSRuleset
(pns string, rs *rules_engine.Ruleset)
src/project/project_struct.go:509
← previousnext →201–300 of 2,165, ranked by callers