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
↓ 1 callers
Method
drainRemainingMessages
()
src/common/aliyun_sls.go:166
↓ 1 callers
Method
enhanceMessageWithProjectNodeSequence
enhanceMessageWithProjectNodeSequence adds ProjectNodeSequence and output metadata to the message
src/output/output.go:465
↓ 1 callers
Function
ensureOIDCVerifier
(ctx context.Context)
src/api/auth.go:33
↓ 1 callers
Function
estimateProjectDataVolume
(proj *project.Project)
src/api/sample_data_intelligent.go:340
↓ 1 callers
Method
evaluateEventDefChecksOnly
evaluateEventDefChecksOnly evaluates an event definition's checks and checklists only, WITHOUT evaluating thresholds. Used in the first-pass correlati
src/rules_engine/engine_core.go:1572
↓ 1 callers
Function
evaluateStageExpr
evaluateStageExpr evaluates a within-stage expression against a boolean match map. Handles and/or/! logic on a single event's match results.
src/rules_engine/cep_condition.go:510
↓ 1 callers
Method
executeCheck
executeCheck executes a standalone check operation
src/rules_engine/engine_core.go:1006
↓ 1 callers
Method
executeFunctionCall
(call ToolCall)
src/agent/agent.go:464
↓ 1 callers
Method
executeIterator
executeIterator executes an iterator operation
src/rules_engine/engine_core.go:2207
↓ 1 callers
Function
executePlugin
(name string, args map[string]interface{})
src/agent/agent_tools.go:107
↓ 1 callers
Method
executeProjectRefreshPlans
(plans map[string]*projectRefreshPlan)
src/cluster/sync_listener.go:654
↓ 1 callers
Method
executeRuleOperations
executeRuleOperations executes all operations in a rule according to the Queue order
src/rules_engine/engine_core.go:861
↓ 1 callers
Method
executeSequence
Returns (completed bool, enrichedData map) where enrichedData is non-nil when the sequence completes.
src/rules_engine/engine_core.go:1270
↓ 1 callers
Function
expiryIndexUpperBound
(nowNs int64)
src/rules_engine/cep_value_store.go:350
↓ 1 callers
Function
expiryPrefix
()
src/rules_engine/cep_value_store.go:341
↓ 1 callers
Function
extractAffectedProjectsAndSource
(instruction Instruction)
src/cluster/sync_listener.go:504
↓ 1 callers
Function
extractComponentInfo
extractComponentInfo extracts component type and ID from a file path Returns (componentType, componentId)
src/api/file_operations.go:139
↓ 1 callers
Function
extractComponentsFromProject
extractComponentsFromProject extracts component information from an existing project
src/api/testing.go:1590
↓ 1 callers
Method
extractEventTimestamp
extractEventTimestamp extracts the event timestamp from data based on event_time configuration. Returns unix nanoseconds. When event_time is not speci
src/rules_engine/engine_core.go:1809
↓ 1 callers
Function
extractInputsFromProject
extractInputsFromProject extracts input information from an existing project
src/api/testing.go:1258
↓ 1 callers
Function
extractJSON
extractJSON tries to extract a JSON object or array from LLM output that may contain markdown fences or extra text.
src/agent/agent_loop.go:482
↓ 1 callers
Function
extractLineFromXMLError
extractLineFromXMLError extracts line number from XML parsing error message
src/rules_engine/engine_struct.go:458
↓ 1 callers
Method
extractParameterNamesFromSource
extractParameterNamesFromSource tries to extract parameter names from plugin source code
src/plugin/plugin.go:573
↓ 1 callers
Function
extractParseJSONFunction
extractParseJSONFunction extracts the parseJSON function from local_plugin.go
src/api/components.go:2261
↓ 1 callers
Function
extractPluginNamesFromValue
(value string, knownPlugins map[string]struct{})
src/api/component_usage_indexes.go:101
↓ 1 callers
Function
extractSequencesFromProject
extractSequencesFromProject extracts sequence information from an existing project
src/api/testing.go:1980
↓ 1 callers
Function
extractTargetComponent
Extract target component from request context
src/api/sample_data_intelligent.go:689
↓ 1 callers
Function
extractTargetRulesetFromRequest
Extract target ruleset from field requirements or rule purpose
src/api/sample_data_intelligent.go:798
↓ 1 callers
Method
fallbackANDLogic
fallbackANDLogic handles cases where SIMD optimization is not applicable
src/rules_engine/simd_integration.go:244
↓ 1 callers
Method
fallbackORLogic
fallbackORLogic handles cases where SIMD optimization is not applicable
src/rules_engine/simd_integration.go:233
↓ 1 callers
Method
findAbsencePathFromStage
(state *SequenceState, stageIdx int, prevTimestamp int64, path *CompletionPath)
src/rules_engine/cep_condition.go:850
↓ 1 callers
Method
findPathFromStage
(state *SequenceState, stageIdx int, prevTimestamp int64, path *CompletionPath)
src/rules_engine/cep_condition.go:795
↓ 1 callers
Function
findProjectsUsingComponent
Find projects that use a specific component
src/api/sample_data_intelligent.go:746
↓ 1 callers
Function
findThresholdElementLine
findThresholdElementLine finds the exact line number of the threshold element
src/rules_engine/engine_struct.go:570
↓ 1 callers
Function
flattenSequence
============================================================================ AST Flattener: Extract stages from -> chain =============================
src/rules_engine/cep_condition.go:360
↓ 1 callers
Function
flattenSequenceRecursive
(ast ExprAST, stages *[]CEPStage)
src/rules_engine/cep_condition.go:366
↓ 1 callers
Method
flushPendingWrites
()
src/rules_engine/cep_value_store.go:230
↓ 1 callers
Function
forbiddenError
(c echo.Context, message string)
src/api/http_helpers.go:25
↓ 1 callers
Function
formatMapToReadableString
formatMapToReadableString converts map to pretty JSON
config/plugin/pushMsgToLark.go:17
↓ 1 callers
Function
formatMapToReadableString
formatMapToReadableString converts map into a formatted JSON string
config/plugin/pushMsgToDiscord.go:15
↓ 1 callers
Function
formatMapToReadableString
formatMapToReadableString converts map[string]interface{} to a formatted JSON string
config/plugin/pushMsgToDingDing.go:22
↓ 1 callers
Function
formatMapToReadableString
(data map[string]interface{})
config/plugin/pushMsgToTelegram.go:13
↓ 1 callers
Function
formatMapToReadableString
(data map[string]interface{})
config/plugin/pushMsgToTeams.go:12
↓ 1 callers
Function
formatNumber
(num)
web/src/utils/common.js:87
↓ 1 callers
Method
formatTypeString
formatTypeString converts reflect.Type to a readable string
src/plugin/plugin.go:627
↓ 1 callers
Function
generateDataRecommendations
(quality DataQualityAnalysis, fieldAnalysis FieldUsageAnalysis, context ProjectContextInfo)
src/api/sample_data_intelligent.go:536
↓ 1 callers
Function
generateInputTemplate
(id)
web/src/utils/templateGenerator.js:59
↓ 1 callers
Method
generateKey
(date, nodeID, projectID, projectNodeSequence string)
src/common/daily_stats_manager.go:165
↓ 1 callers
Function
generateOutputTemplate
(id)
web/src/utils/templateGenerator.js:105
↓ 1 callers
Function
generatePluginTemplate
(id)
web/src/utils/templateGenerator.js:208
↓ 1 callers
Function
generateProjectTemplate
(id, store)
web/src/utils/templateGenerator.js:170
↓ 1 callers
Function
generateRelevanceReasoning
(proj *project.Project, rulePurpose string)
src/api/sample_data_intelligent.go:303
↓ 1 callers
Function
generateRulesetTemplate
(id)
web/src/utils/templateGenerator.js:12
↓ 1 callers
Function
generateSessionID
generateSessionID generates an 8-character random session identifier
src/cluster/instruction_sync.go:89
↓ 1 callers
Method
generate_message
Generate a test message with variations
docs/kafka_producer_perf_test.py:83
↓ 1 callers
Method
genericBatchCompare
Generic batch compare for non-SIMD platforms
src/rules_engine/simd_generic.go:29
↓ 1 callers
Function
getAllSamplerNames
()
src/api/sample_data_intelligent.go:354
↓ 1 callers
Function
getCPULimit
()
src/common/system_monitor.go:254
↓ 1 callers
Function
getCachedResult
getCachedResult retrieves cached result from Redis
src/local_plugin/threatbook/threatbook.go:208
↓ 1 callers
Function
getCachedResult
getCachedResult retrieves cached result from Redis
src/local_plugin/virustotal/virustotal.go:114
↓ 1 callers
Function
getCachedResult
getCachedResult retrieves cached result from Redis
src/local_plugin/shodan/shodan.go:120
↓ 1 callers
Function
getComponentTypeLabel
(type)
web/src/utils/common.js:55
↓ 1 callers
Function
getCurrentProcessCPUTime
getCurrentProcessCPUTime gets the current process CPU time (user + system time)
src/common/system_monitor.go:203
↓ 1 callers
Method
getDailyStatsLegacy
(date, projectID, nodeID string)
src/common/daily_stats_manager.go:203
↓ 1 callers
Function
getErrorLogs
getErrorLogs handles GET /error-logs - unified endpoint for all nodes
src/api/error_logs.go:159
↓ 1 callers
Method
getExpiredAbsenceKeysRedis
getExpiredAbsenceKeysRedis scans Redis for expired absence tracking keys. This enables any node in the cluster to detect absence timeouts.
src/rules_engine/cep_state.go:438
↓ 1 callers
Function
getFallbackSampleData
Get fallback sample data from any available source
src/api/sample_data_intelligent.go:780
↓ 1 callers
Function
getKnownPluginNames
()
src/api/component_usage_indexes.go:129
↓ 1 callers
Function
getMaxPoolSize
getMaxPoolSize returns the maximum pool size based on CPU count Scales with CPU count for better resource utilization
src/rules_engine/engine_struct.go:96
↓ 1 callers
Function
getMostCommonType
(typeMap map[string]int)
src/api/sample_data_intelligent.go:631
↓ 1 callers
Method
getOrCreateRedisStateAtomic
getOrCreateRedisStateAtomic uses a Lua script for atomic get-or-create.
src/rules_engine/cep_state.go:721
↓ 1 callers
Method
getPNS
()
src/project/project.go:942
↓ 1 callers
Function
getPackageName
getPackageName safely extracts the package name
src/plugin/plugin.go:893
↓ 1 callers
Function
getPendingPluginChange
Helper functions for safe access to plugin data
src/api/pending_changes.go:244
↓ 1 callers
Function
getProcessRSSMB
getProcessRSSMB gets the current process RSS (Resident Set Size) memory in MB
src/common/system_monitor.go:219
↓ 1 callers
Function
getProjectsUsingRulesets
(rulesetIDs []string, shouldInclude func(projectID string, p *Project) bool)
src/project/project.go:119
↓ 1 callers
Method
getRedisAbsenceTracker
getRedisAbsenceTracker reads an absence tracking key from Redis.
src/rules_engine/cep_state.go:514
↓ 1 callers
Method
getSamplesFromKey
getSamplesFromKey retrieves samples from a specific Redis key
src/common/redis_sample_manager.go:180
↓ 1 callers
Function
getShodanAPIKey
getShodanAPIKey gets the API key from environment variable
src/local_plugin/shodan/shodan.go:157
↓ 1 callers
Function
getSystemMemoryMB
getSystemMemoryMB attempts to get system total memory in MB
src/common/system_monitor.go:294
↓ 1 callers
Function
getTenantAccessToken
(app_id string, app_secret string)
config/plugin/pushUrentAlertByLark.go:15
↓ 1 callers
Function
getThreatBookAPIKey
getThreatBookAPIKey gets the API key from environment variable
src/local_plugin/threatbook/threatbook.go:245
↓ 1 callers
Function
getURL
(AccessToken string, Secret string)
config/plugin/pushMsgToDingDing.go:86
↓ 1 callers
Function
getUnifiedErrorLogs
getUnifiedErrorLogs gets error logs from Redis for all nodes (leader only)
src/api/error_logs.go:108
↓ 1 callers
Function
getVirusTotalAPIKey
getVirusTotalAPIKey gets the API key from environment variable
src/local_plugin/virustotal/virustotal.go:151
↓ 1 callers
Function
handleError
(error)
web/src/composables/useSmartRefresh.js:38
↓ 1 callers
Method
handleSyncCommand
handleSyncCommand handles a sync command
src/cluster/sync_listener.go:255
↓ 1 callers
Function
hmacSha256
(stringToSign string, secret string)
config/plugin/pushMsgToDingDing.go:80
↓ 1 callers
Function
initAgentLoggerWithRedis
(redisWriter func(entry RedisErrorLogEntry) error)
src/logger/logger.go:265
↓ 1 callers
Method
initComponents
()
src/project/project.go:2330
↓ 1 callers
Function
initLoggerWithRedis
(redisWriter func(entry RedisErrorLogEntry) error)
src/logger/logger.go:86
↓ 1 callers
Function
initOidc
()
web/src/api/oidc.js:7
↓ 1 callers
Method
initPlatformSpecific
ARM64-optimized implementations
src/rules_engine/simd_arm64.go:26
↓ 1 callers
Function
initPluginLoggerWithRedis
(redisWriter func(entry RedisErrorLogEntry) error)
src/logger/logger.go:172
↓ 1 callers
Function
initProjectTestOutputResults
(outputChannels map[string]chan map[string]interface{})
src/api/testing.go:866
↓ 1 callers
Method
initialize
* Initialize event manager (only once)
web/src/utils/eventManager.js:18
↓ 1 callers
Function
initializeApp
()
web/src/main.js:10
↓ 1 callers
Function
irisSeverityID
(data map[string]interface{})
config/plugin/pushAlertToIris.go:284
↓ 1 callers
Function
isPseudoVariadicPlugin
isPseudoVariadicPlugin checks if a plugin is pseudo-variadic (uses variadic syntax but only handles specific argument counts)
src/rules_engine/engine_struct.go:1765
↓ 1 callers
Function
isStandardLibraryPackage
isStandardLibraryPackage checks if a package is part of Go standard library
src/plugin/plugin.go:901
← previous
next →
801–900 of 2,165, ranked by callers