MCPcopy Create free account

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

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

FunctionGetErrorLogStats
GetErrorLogStats returns statistics about error logs in Redis
src/common/error_log_redis.go:282
FunctionGetErrorLogsFromRedis
GetErrorLogsFromRedis retrieves error logs from Redis for all nodes or a specific node
src/common/error_log_redis.go:56
FunctionGetErrorLogsFromRedisWithFilter
GetErrorLogsFromRedisWithFilter retrieves error logs with server-side filtering. levelFilter: "error" = only ERROR/FATAL (default for Error Logs); "al
src/common/error_log_redis.go:127
FunctionGetFileNameWithoutExt
(path string)
src/common/utils.go:44
MethodGetIncrementAndUpdate
GetIncrementAndUpdate returns the increment since last call and updates the baseline. This method is thread-safe and designed for statistics collectio
src/output/output.go:964
MethodGetIncrementAndUpdate
GetIncrementAndUpdate returns the increment in processed messages since last call and updates the baseline. This mirrors the behavior of Input/Output/
src/agent/agent.go:373
FunctionGetInputNew
(id string)
src/project/project_struct.go:1072
FunctionGetInputsCount
GetInputsCount returns the count of inputs
src/project/project_struct.go:1310
FunctionGetKnownNodes
GetKnownNodes returns all known nodes that have been tracked by the leader
src/common/redis.go:712
FunctionGetLeaderAPIBaseURL
GetLeaderAPIBaseURL returns the base URL for the leader's API (e.g. http://<leader_ip>:8080). On leader: uses current node ID from memory. On follower
src/common/cluster_state.go:79
FunctionGetLocalIP
()
src/common/utils.go:58
FunctionGetOperationsFromRedisWithFilter
GetOperationsFromRedisWithFilter retrieves operations from Redis with server-side filtering and pagination
src/common/operations.go:452
FunctionGetOperationsHistoryNodes
GetOperationsHistoryNodes handles GET /operations-history/nodes - returns all nodes that have operations history
src/api/operations_history.go:305
FunctionGetOperationsStats
GetOperationsStats handles GET /operations-stats
src/api/operations_history.go:253
FunctionGetOutputNew
(id string)
src/project/project_struct.go:1094
FunctionGetOutputsCount
GetOutputsCount returns the count of outputs
src/project/project_struct.go:1317
FunctionGetPendingChanges
GetPendingChanges returns all components with pending changes (.new files) GetPendingChanges returns all pending changes (legacy format for backward c
src/api/pending_changes.go:214
FunctionGetPluginParameters
GetPluginParameters returns parameter information for a specific plugin
src/api/components.go:2145
FunctionGetPluginStats
GetPluginStats returns success/failure counts for plugins of the given date (default today) Optional query params: - date (YYYY-MM-DD): filter by date
src/api/plugin_stats.go:18
MethodGetProjectAgentsUnsafe
()
src/project/project_struct.go:653
FunctionGetProjectCommandHandler
GetProjectCommandHandler returns the project command handler for registration
src/project/project.go:443
FunctionGetProjectConfig
GetProjectConfig retrieves project configuration from Redis
src/common/redis.go:470
MethodGetProjectInputsUnsafe
GetProjectInputsUnsafe returns all inputs used by this project without acquiring locks
src/project/project_struct.go:276
FunctionGetProjectNew
New/Temporary content accessors
src/project/project_struct.go:1050
MethodGetProjectOutputsUnsafe
GetProjectOutputsUnsafe returns all outputs used by this project without acquiring locks
src/project/project_struct.go:307
FunctionGetProjectUserIntention
GetProjectUserIntention gets the user intention for a project with retry mechanism Returns true if user wants it running, false if stopped/not found T
src/common/redis.go:606
FunctionGetProjectsCount
()
src/project/project_struct.go:370
FunctionGetRawConfig
===================== AllRawConfig Accessor Functions ===================== GetRawConfig retrieves raw configuration by type and ID
src/common/global.go:44
FunctionGetRedisMetrics
GetRedisMetrics returns current Redis server metrics
src/common/redis.go:145
FunctionGetRefCount
GetRefCount is kept for backward compatibility, now uses dynamic calculation
src/project/project_struct.go:89
FunctionGetRulesetFields
GetRulesetFields extracts field keys from sample data for intelligent completion in ruleset editing
src/api/components.go:2020
FunctionGetRulesetNew
(id string)
src/project/project_struct.go:1116
FunctionGetRulesetsCount
GetRulesetsCount returns the count of rulesets
src/project/project_struct.go:1324
FunctionGetSIMDConfig
GetSIMDConfig returns the current SIMD configuration
src/rules_engine/simd_integration.go:296
FunctionGetSIMDPerformanceStats
GetSIMDPerformanceStats returns current SIMD performance statistics
src/rules_engine/simd_integration.go:265
FunctionGetSampler
GetSampler returns a sampler instance by name
src/common/sampler.go:254
FunctionGetSamplersDataIntelligent
===================================================== INTELLIGENT SAMPLE DATA API ===================================================== GetSamplersDat
src/api/sample_data_intelligent.go:100
MethodGetSamples
GetSamples retrieves all samples for a specific sampler
src/common/redis_sample_manager.go:144
FunctionGetSkillNew
(id string)
src/project/project_struct.go:941
FunctionGetSkillsCount
()
src/project/project_struct.go:935
MethodGetStats
GetStats returns statistics about the system monitor
src/common/system_monitor.go:429
MethodGetStats
GetStats returns statistics about the cluster system manager
src/common/system_monitor.go:660
MethodGetStats
GetStats retrieves statistics for a sampler
src/common/redis_sample_manager.go:208
MethodHandle
Handle implements slog.Handler
src/logger/logger.go:512
FunctionINCL
(data string, ruleData string)
src/rules_engine/engine_utils.go:365
FunctionIncrementAgentDailyStats
IncrementAgentDailyStats increments today's call count and latency sum (ns) for the given agent. This is safe to call from any node; Redis aggregates
src/common/agent_stats.go:21
FunctionInfo
(msg string, args ...any)
src/logger/logger.go:443
FunctionInitAgentLoggerWithRedisAndNodeID
InitAgentLoggerWithRedisAndNodeID initializes agent logger with Redis error log writing capability and specific NodeID
src/logger/logger.go:261
FunctionInitCluster
InitCluster initializes the cluster system
src/cluster/cluster.go:24
FunctionInitClusterSystemManager
InitClusterSystemManager initializes the global cluster system manager (only call on leader)
src/common/system_monitor.go:689
FunctionInitDailyStatsManager
InitDailyStatsManager initializes the global daily statistics manager
src/common/daily_stats_manager.go:364
FunctionInitLoggerWithRedisAndNodeID
InitLoggerWithRedisAndNodeID initializes logger with Redis error log writing capability and specific NodeID
src/logger/logger.go:82
FunctionInitPluginLoggerWithRedisAndNodeID
InitPluginLoggerWithRedisAndNodeID initializes plugin logger with Redis error log writing capability and specific NodeID
src/logger/logger.go:168
FunctionInitRedisSampleManager
InitRedisSampleManager initializes the global Redis sample manager
src/common/redis_sample_manager.go:451
FunctionInitSystemMonitor
InitSystemMonitor initializes the global system monitor
src/common/system_monitor.go:495
MethodIsEmpty
IsEmpty reports whether there is no stored guidance.
src/agent/memory_notes.go:15
MethodIsOpen
IsOpen returns true if circuit breaker is open
src/common/redis.go:78
FunctionLT
(data string, ruleData string)
src/rules_engine/engine_utils.go:466
FunctionMT
(data string, ruleData string)
src/rules_engine/engine_utils.go:449
FunctionMainLayout
()
web/src/router/index.js:4
FunctionMapDel
(data map[string]interface{}, key []string)
src/common/utils.go:154
MethodMarshalYAML
MarshalYAML writes memory_notes as a YAML sequence for readability.
src/agent/memory_notes.go:105
FunctionMemoryNotesFromSummaryText
MemoryNotesFromSummaryText splits model or API output into trimmed non-empty lines.
src/agent/memory_notes.go:28
FunctionNCS_END
(data string, ruleData string)
src/rules_engine/engine_utils.go:383
FunctionNCS_EQU
(data string, ruleData string)
src/rules_engine/engine_utils.go:516
FunctionNCS_INCL
(data string, ruleData string)
src/rules_engine/engine_utils.go:431
FunctionNCS_NEND
(data string, ruleData string)
src/rules_engine/engine_utils.go:407
FunctionNCS_NEQ
(data string, ruleData string)
src/rules_engine/engine_utils.go:520
FunctionNCS_NI
(data string, ruleData string)
src/rules_engine/engine_utils.go:442
FunctionNCS_NSTART
(data string, ruleData string)
src/rules_engine/engine_utils.go:419
FunctionNCS_START
(data string, ruleData string)
src/rules_engine/engine_utils.go:395
FunctionNEND
(data string, ruleData string)
src/rules_engine/engine_utils.go:341
FunctionNEQ
(data string, ruleData string)
src/rules_engine/engine_utils.go:512
FunctionNI
(data string, ruleData string)
src/rules_engine/engine_utils.go:376
FunctionNSTART
(data string, ruleData string)
src/rules_engine/engine_utils.go:353
MethodName
()
src/skill/skill_knowledge.go:22
MethodName
()
src/agent/skill.go:16
FunctionNewAgent
(filePath, raw, id string)
src/agent/agent.go:85
FunctionNewAliyunSLSConsumer
(endpoint, accessKeyID, accessKeySecret, project, logstore, consumerGroupName, consumerName, cursorPosition st
src/common/aliyun_sls.go:222
FunctionNewAliyunSLSProducer
( endpoint, accessKeyID, accessKeySecret, project, logstore string, topic, source, shardHash, topicField, so
src/common/aliyun_sls.go:55
FunctionNewClickHouseProducer
NewClickHouseProducer creates a new ClickHouse producer that batch-inserts via the HTTP interface
src/common/clickhouse.go:109
FunctionNewComponentMonitor
NewComponentMonitor creates a new component monitor instance
src/common/component_monitor.go:20
FunctionNewElasticsearchProducer
NewElasticsearchProducer creates a new Elasticsearch producer version: "v7", "v8", or "v9" (empty => auto-detect, fallback v8)
src/common/elasticsearch.go:202
FunctionNewFromExisting
NewFromExisting creates a new Output instance from an existing one with a different ProjectNodeSequence This is used when multiple projects use the sa
src/output/output.go:1395
FunctionNewFromExisting
NewFromExisting creates a new Input instance from an existing one with a different ProjectNodeSequence This is used when multiple projects use the sam
src/input/input.go:1008
FunctionNewKafkaConsumer
NewKafkaConsumer creates a new high-performance Kafka consumer with compression and SASL support.
src/common/kafka.go:334
FunctionNewKafkaProducer
NewKafkaProducer creates a new high-performance Kafka producer with compression, SASL, and key support.
src/common/kafka.go:97
FunctionNewOutput
NewOutput creates an Output from config and upstreams.
src/output/output.go:341
FunctionNewPlugin
(path string, raw string, name string, pluginType int)
src/plugin/plugin.go:198
FunctionNewProject
NewProject creates a new project instance from a configuration file pp: Path to the project configuration file
src/project/project.go:690
FunctionNewSkill
(filePath, raw, id string)
src/skill/skill.go:58
FunctionNewUUID
()
src/common/utils.go:53
FunctionNormalizeElasticsearchVersionForDisplay
NormalizeElasticsearchVersionForDisplay returns a user-friendly version string for UI / logs. It always returns one of: "v7", "v8", "v9".
src/common/elasticsearch.go:94
FunctionOidcCallback
()
web/src/router/index.js:3
FunctionParseDurationToSecondsInt
(input string)
src/common/utils.go:73
FunctionParseProjectNodeSequence
ParseProjectNodeSequence extracts all components from a ProjectNodeSequence Examples: - "INPUT.kafka1" -> [{Type: "input", ID: "kafka1"}] - "INPUT.kaf
src/common/daily_stats_manager.go:24
FunctionParseSkillIDsFromRaw
ParseSkillIDsFromRaw parses agent raw YAML and returns the skill ID list (for reference checks).
src/agent/agent.go:181
FunctionPluginError
Plugin-specific logging functions PluginError logs plugin errors to local file only (does not write to Redis). Uses Error level for proper visibility;
src/logger/logger.go:422
FunctionPluginErrorWithContext
PluginErrorWithContext logs plugin errors with full context to Redis This should be called from rules engine with project/ruleset/rule information
src/logger/logger.go:429
FunctionPluginWarn
(msg string, args ...any)
src/logger/logger.go:434
← previousnext →1,201–1,300 of 2,165, ranked by callers