MCPcopy Create free account

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

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

FunctionDeleteSkill
(id string)
src/project/project_struct.go:919
FunctionDeleteSkillNew
(id string)
src/project/project_struct.go:957
FunctionDeleteTempFile
DeleteTempFile deletes component's temporary file
src/api/pending_changes.go:1145
FunctionDemoteCurrentNode
DemoteCurrentNode clears local leader state for fail-stop scenarios.
src/common/cluster_state.go:42
MethodDescription
()
src/skill/skill_knowledge.go:23
MethodDescription
()
src/agent/skill.go:17
FunctionEND
(data string, ruleData string)
src/rules_engine/engine_utils.go:317
FunctionEQU
(data string, ruleData string)
src/rules_engine/engine_utils.go:508
MethodEnabled
Enabled implements slog.Handler
src/logger/logger.go:507
FunctionError
(msg string, args ...any)
src/logger/logger.go:451
FunctionErrorLogs
()
web/src/router/index.js:7
FunctionEval
Eval decodes base64 string. Args: encoded string.
src/local_plugin/encoding/base64_decode/base64_decode.go:9
FunctionEval
(args ...interface{})
src/local_plugin/encoding/hash_sha1/hash_sha1.go:9
FunctionEval
Eval encodes input string to base64. Args: plain string.
src/local_plugin/encoding/base64_encode/base64_encode.go:9
FunctionEval
Eval returns MD5 hex of string. Args: input string.
src/local_plugin/encoding/hash_md5/hash_md5.go:10
FunctionEval
(args ...interface{})
src/local_plugin/encoding/hash_sha256/hash_sha256.go:9
FunctionEval
parseJSONData parses JSON string and returns parsed data (for testing interface{} return type)
src/local_plugin/parse_json_data/parse_json_data.go:9
FunctionEval
Eval performs a single LLM call with system prompt as parameter. apiKey and baseURL are read from config (llm_api_key, llm_base_url); plugin is only r
src/local_plugin/llm_call/llm_call.go:125
FunctionEval
Eval implements a suppression plugin: for the same key, return true only once within the provided time window (seconds). Args: 0: key string / any c
src/local_plugin/suppress_once/suppress_once.go:18
FunctionEval
Eval returns true if ipStr geo country ISO matches expectedCountry (case-insensitive). Args: ipStr, expectedCountryISO (e.g., "US").
src/local_plugin/geo_match/geo_match.go:27
FunctionEval
Eval returns true if the given IP string is a private / RFC1918 / link-local / loopback address. Usage in ruleset: <node id="check_private" type="PL
src/local_plugin/is_private_ip/is_private_ip.go:12
FunctionEval
Eval parses user agent string and returns map with browser, version, os, platform.
src/local_plugin/user_agent/parse_user_agent/parse_user_agent.go:10
FunctionEval
Eval returns TLD for a domain.
src/local_plugin/url/extract_tld/extract_tld.go:11
FunctionEval
Eval parses URI string and returns JSON object with path and query parameters. Args: uri string. Returns: map[string]interface{} containing parsed URI
src/local_plugin/url/parse_uri/parse_uri.go:13
FunctionEval
Eval returns subdomain part (everything before first dot).
src/local_plugin/url/extract_subdomain/extract_subdomain.go:9
FunctionEval
Eval returns registered domain (domain.tld) from URL or hostname. Args: urlOrHost string.
src/local_plugin/url/extract_domain/extract_domain.go:11
FunctionEval
Eval calls the Hub API to add a rule to a ruleset. Args: rulesetId string — target ruleset ID ruleContent string — a single <rule>...</rule> XML
src/local_plugin/add_rule/add_rule.go:27
FunctionEval
Eval replaces all occurrences of old substring with new substring. Args: input string, old substring, new substring.
src/local_plugin/string/replace/replace.go:10
FunctionEval
Eval returns true if ipStr is within cidrStr. Usage: <node type="PLUGIN" func="cidr_match" args="{ip},{cidr}"/>
src/local_plugin/cidr_match/cidr_match.go:12
FunctionEval
Eval replaces text matching a regular expression pattern with a replacement string. Supports capture group references in replacement (e.g., $1, $2). A
src/local_plugin/regex/replace/regex_replace.go:11
FunctionEval
Eval extracts text using a regular expression pattern. Returns the first match if no capture groups, or an array of capture groups. Args: input string
src/local_plugin/regex/extract/regex_extract.go:11
FunctionEval
Eval converts unix timestamp to RFC3339 date string. Args: timestamp(int64)
src/local_plugin/time/timestamp_to_date/timestamp_to_date.go:10
FunctionEval
Eval returns day of week (0=Sunday) of provided timestamp or current time. Args: optional timestamp(int64 seconds). If omitted uses now.
src/local_plugin/time/dayofweek/dayofweek.go:10
FunctionEval
Eval returns current Unix timestamp in seconds. Args: none.
src/local_plugin/time/now/now.go:7
FunctionEval
Eval returns hour of day (0-23). Args: optional timestamp(int64 sec).
src/local_plugin/time/hourofday/hourofday.go:10
FunctionEval
Eval implements a suppression plugin: for the same key, return true only once within the provided time window (seconds). Args: 0: window — suppressi
src/local_plugin/suppress/suppress.go:18
FunctionEval
Eval reads component configuration directly from in-process memory (no HTTP). Usage: getConfig(componentType, id) → returns the raw config string f
src/local_plugin/get_config/get_config.go:19
FunctionEval
Eval pushes message to Lark/Feishu via webhook. Param1: WebhookURL (the url without timestamp&sign) Param2: Secret (optional)
config/plugin/pushMsgToLark.go:32
FunctionEval
Eval sends a map payload to a Discord channel via Webhook. Param1: WebhookURL (required) Param2: (unused, keep for signature compatibility)
config/plugin/pushMsgToDiscord.go:30
FunctionEval
Eval sends formatted message data to DingTalk
config/plugin/pushMsgToDingDing.go:42
FunctionEval
(ip string)
config/plugin/checkSuspiciousIPs.go:28
FunctionEval
Eval sends a message via Telegram bot. Param1: BotToken Param2: ChatID (string)
config/plugin/pushMsgToTelegram.go:21
FunctionEval
(ip string)
config/plugin/addAssetInfo.go:3
FunctionEval
(BaseURL string, APIKey string, CustomerID int, ClassificationID int, data map[string]interface{})
config/plugin/pushAlertToIris.go:30
FunctionEval
(args ...interface{})
config/plugin/pushUrentAlertByLark.go:321
FunctionEval
Eval pushes message to Microsoft Teams via Incoming Webhook Param1: WebhookURL
config/plugin/pushMsgToTeams.go:26
MethodExecute
(functionName string, args map[string]interface{})
src/skill/skill_knowledge.go:41
MethodExecute
(functionName string, arguments map[string]interface{})
src/agent/skill.go:35
MethodExecuteCommand
(projectID, action string)
src/project/project.go:357
MethodExecuteCommand
(projectID, action string)
src/cluster/refactor_regression_test.go:15
MethodExecuteCommand
(projectID, action string)
src/cluster/cluster.go:201
FunctionFindAgentLogByID
FindAgentLogByID locates an agent log by ID from the agent's Redis list.
src/common/agent_log_redis.go:122
FunctionForEachInput
(fn func(id string, inp *input.Input) bool)
src/project/project_struct.go:1181
FunctionForEachOutput
(fn func(id string, out *output.Output) bool)
src/project/project_struct.go:1192
FunctionForEachRawConfig
ForEachRawConfig safely iterates over all raw configurations for a specific type
src/common/global.go:177
FunctionForEachSkill
(fn func(id string, s *skill.Skill) bool)
src/project/project_struct.go:973
MethodFunctions
()
src/skill/skill_knowledge.go:25
MethodFunctions
()
src/agent/skill.go:19
FunctionGenerateMemorySummary
GenerateMemorySummary performs a full review of existing agent memory_notes together with user comments on a log run, and returns the complete replace
src/agent/llm.go:309
MethodGet
Get returns the current value and whether the key exists and has not expired.
src/rules_engine/engine_threshold_cache.go:54
MethodGet
Get returns a copy of the key set and whether the entry exists and has not expired. A copy is returned to allow the caller to mutate it safely.
src/rules_engine/engine_threshold_cache.go:179
MethodGetActiveUpdates
GetActiveUpdates returns a copy of active update operations
src/common/operations.go:405
FunctionGetAffectedProjects
GetAffectedProjects returns the list of project IDs affected by component changes
src/project/project.go:258
FunctionGetAgentDailyStats
GetAgentDailyStats returns daily stats for a specific agent on a given date (YYYY-MM-DD). If date is empty, today's date is used.
src/common/agent_stats.go:51
FunctionGetAgentLogger
GetAgentLogger returns the agent tool-call logger instance
src/logger/logger.go:337
FunctionGetAgentNew
Agent New accessors
src/project/project_struct.go:587
FunctionGetAgentsCount
()
src/project/project_struct.go:557
FunctionGetAggregatedAgentDailyStats
GetAggregatedAgentDailyStats returns aggregated daily call count and average latency (ms) for the given agent id, based on Redis-stored per-agent dail
src/project/project_struct.go:831
FunctionGetAggregatedAgentStatus
GetAggregatedAgentStatus returns the local-node view aggregated across the template agent and this process's PNS agent instances. It is kept for local
src/project/project_struct.go:760
FunctionGetAliyunSLSProjectInfo
GetAliyunSLSProjectInfo gets basic information about the SLS project
src/common/aliyun_sls.go:372
FunctionGetAllAgents
()
src/project/project_struct.go:547
FunctionGetAllAgentsDailyStats
GetAllAgentsDailyStats returns daily stats for all agents on a given date (YYYY-MM-DD). If date is empty, today's date is used.
src/common/agent_stats.go:97
FunctionGetAllAgentsNew
()
src/project/project_struct.go:609
FunctionGetAllInputs
()
src/project/project_struct.go:399
FunctionGetAllInputsNew
GetAllInputsNew returns a copy of all inputs new map
src/project/project_struct.go:1274
MethodGetAllMetrics
GetAllMetrics returns system metrics for all nodes
src/common/system_monitor.go:564
FunctionGetAllOutputs
()
src/project/project_struct.go:433
FunctionGetAllOutputsNew
GetAllOutputsNew returns a copy of all outputs new map
src/project/project_struct.go:1286
FunctionGetAllPluginsNew
()
src/plugin/plugin.go:1168
FunctionGetAllProjectRealStates
GetAllProjectRealStates gets all actual states for a specific node Returns map of projectID -> actualState
src/common/redis.go:679
FunctionGetAllProjectStateTimestamps
GetAllProjectStateTimestamps gets all state change timestamps for a node
src/common/redis.go:695
FunctionGetAllProjects
()
src/project/project_struct.go:359
FunctionGetAllProjectsNew
GetAllProjectsNew returns a copy of all projects new map
src/project/project_struct.go:1262
FunctionGetAllRulesets
()
src/project/project_struct.go:467
FunctionGetAllRulesetsNew
GetAllRulesetsNew returns a copy of all rulesets new map
src/project/project_struct.go:1298
FunctionGetAllSkills
()
src/project/project_struct.go:925
FunctionGetAllSkillsNew
()
src/project/project_struct.go:963
FunctionGetBatchPluginParameters
GetBatchPluginParameters returns parameter information for multiple plugins
src/api/components.go:2964
FunctionGetBatchRulesetFields
GetBatchRulesetFields returns field information for multiple rulesets
src/api/components.go:3009
FunctionGetCheckDataWithType
GetCheckDataWithType traverses a nested map[string]interface{} using a key path (checkKeyList). Returns the original typed value and whether it exists
src/common/utils.go:291
FunctionGetClickHouseServerInfo
GetClickHouseServerInfo returns basic server information from ClickHouse
src/common/clickhouse.go:411
FunctionGetClusterAggregatedAgentStatus
GetClusterAggregatedAgentStatus derives an agent's cluster-wide runtime status from project real-state hashes in Redis. This avoids mixing local in-me
src/project/project_struct.go:767
FunctionGetClusterOperationsHistory
GetClusterOperationsHistory handles GET /cluster-operations-history - DEPRECATED but kept for backward compatibility
src/api/operations_history.go:246
FunctionGetClusterStatus
GetClusterStatus returns cluster status Returns both old format (is_leader, node_id) and new format (self_id, self_address, status) for compatibility
src/cluster/cluster.go:95
MethodGetComponentHealth
GetComponentHealth returns health information for all components
src/common/component_monitor.go:130
FunctionGetComponentUsage
GetComponentUsage returns usage information for a component
src/api/utils.go:25
FunctionGetConfigPath
GetConfigPath returns the full path for a specific config file It ensures the directory exists and creates it if necessary
src/common/utils.go:369
MethodGetCurrentVersion
GetCurrentVersion returns current version string
src/cluster/instruction_sync.go:123
FunctionGetElasticsearchClusterInfo
GetElasticsearchClusterInfo gets basic cluster information version: "v7", "v8", or "v9" (empty => auto-detect, fallback v8)
src/common/elasticsearch.go:807
FunctionGetEnhancedPendingChanges
GetEnhancedPendingChanges returns all pending changes with enhanced status information
src/api/pending_changes.go:236
← previousnext →1,101–1,200 of 2,165, ranked by callers