MCPcopy Create free account

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

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

MethodPublishComponentAdd
PublishComponentAdd publishes component addition instruction
src/cluster/instruction_sync.go:546
MethodPublishComponentLocalPush
PublishComponentLocalPush publishes local push instruction
src/cluster/instruction_sync.go:559
FunctionReadContentFromPathOrRaw
ReadContentFromPathOrRaw reads content from file path or returns raw content This is a common utility function used by all component verification func
src/common/utils.go:347
FunctionReadLLMConfigFromRedis
ReadLLMConfigFromRedis reads LLM API key/base URL/model from Redis (called by followers). Overrides local config so cluster-wide LLM config is consist
src/api/token_sync.go:98
FunctionReadTokenFromRedis
ReadTokenFromRedis reads the token from Redis (called by follower on startup)
src/api/token_sync.go:53
FunctionRecordChangePush
RecordChangePush records a change push operation
src/common/operations.go:242
FunctionRecordClusterInstruction
RecordClusterInstruction records a cluster instruction operation to Redis
src/common/operations.go:61
FunctionRecordComponentAdd
RecordComponentAdd records a component addition operation
src/common/operations.go:119
FunctionRecordComponentDelete
RecordComponentDelete records a component deletion operation
src/common/operations.go:201
FunctionRecordComponentUpdate
RecordComponentUpdate records a component update operation
src/common/operations.go:160
FunctionRecordLocalPush
RecordLocalPush records a local push operation
src/common/operations.go:285
FunctionRecordProjectOperation
RecordProjectOperation records a project operation to Redis only
src/common/operations.go:13
FunctionRedisDel
(key string)
src/common/redis.go:332
FunctionRedisEval
RedisEval executes a Lua script on Redis.
src/common/redis.go:348
FunctionRedisIncrby
(key string, value int64)
src/common/redis.go:325
FunctionRedisInit
(addr string, passwd string)
src/common/redis.go:228
FunctionRedisPublish
RedisPublish publishes a message to a Redis channel
src/common/redis.go:372
FunctionRedisPublishWithRetry
RedisPublishWithRetry publishes a message with exponential backoff retry
src/common/redis.go:503
FunctionRedisSMembers
RedisSMembers returns all members of a set
src/common/redis.go:427
FunctionRedisSRem
RedisSRem removes a member from a set
src/common/redis.go:422
FunctionRedisSet
(key string, value interface{}, expiration int)
src/common/redis.go:311
FunctionRedisSetNX
(key string, value interface{}, expiration int)
src/common/redis.go:318
FunctionRedisZAdd
===================== Sorted Set Operations ===================== RedisZAdd adds a member to a sorted set
src/common/redis.go:434
FunctionRedisZRemRangeByRank
RedisZRemRangeByRank removes members by rank from a sorted set
src/common/redis.go:444
FunctionRegisterLLMCallIfConfigured
RegisterLLMCallIfConfigured registers the llmCall builtin plugin when config has llm_api_key set. Must be called after loadHubConfig (e.g. from main).
src/plugin/plugin.go:155
FunctionRegisterLLMCallIfConfigured
RegisterLLMCallIfConfigured registers the llmCall plugin when config has llm_api_key set. Called from plugin package after loadHubConfig. Not register
src/local_plugin/local_plugin.go:109
FunctionRegisterSkillResolver
RegisterSkillResolver sets the function used to look up skill components by ID.
src/agent/agent.go:23
FunctionRequireLeader
RequireLeader returns an error if current node is not the leader
src/common/cluster_state.go:63
MethodReset
Reset clears all samples for a sampler
src/common/redis_sample_manager.go:240
MethodResetDownstream
()
src/agent/agent.go:281
FunctionResetManagedPluginsForResync
ResetManagedPluginsForResync drops only leader-managed runtime plugins while preserving built-in local plugins registered at process startup.
src/plugin/plugin.go:1138
FunctionRestartProject
(c echo.Context)
src/api/project_control.go:151
MethodSIMDEnhancedExecuteCheckNode
SIMDEnhancedExecuteCheckNode optimizes the check node execution with SIMD
src/rules_engine/simd_integration.go:101
FunctionSIMDOptimizedNCS_INCL
Integration points for the existing rule engine SIMDOptimizedNCS_INCL is a SIMD-optimized version of NCS_INCL
src/rules_engine/simd_optimizations.go:282
FunctionSTART
(data string, ruleData string)
src/rules_engine/engine_utils.go:329
FunctionSafeDeleteAgentComponent
SafeDeleteAgent safely deletes an agent with all necessary validations and locking
src/project/project_struct.go:841
FunctionSafeDeleteInput
SafeDeleteInput safely deletes an input with all necessary validations and locking
src/project/project_struct.go:1398
FunctionSafeDeleteOutput
SafeDeleteOutput safely deletes an output with all necessary validations and locking
src/project/project_struct.go:1462
FunctionSafeDeletePlugin
SafeDeletePlugin safely deletes a plugin with all necessary validations and locking
src/plugin/plugin.go:1096
FunctionSafeDeleteProject
SafeDeleteProject safely deletes a project with all necessary validations and locking
src/project/project_struct.go:1526
FunctionSafeDeleteRuleset
===== Safe deletion functions with internal locking ===== SafeDeleteRuleset safely deletes a ruleset with all necessary validations and locking
src/project/project_struct.go:1333
FunctionSafeDeleteRulesetDownstream
Helper function to safely access input downstream
src/project/project_struct.go:1234
FunctionSafeDeleteSkillComponent
(id string)
src/project/project_struct.go:993
FunctionServerStart
(listener string)
src/api/server.go:12
FunctionServerStartFollower
ServerStartFollower starts the follower API server with read-only endpoints
src/api/follower_server.go:56
FunctionSetAgent
(id string, a *agent.Agent)
src/project/project_struct.go:532
FunctionSetAgentNew
(id string, content string)
src/project/project_struct.go:594
FunctionSetInputNew
(id string, content string)
src/project/project_struct.go:1079
MethodSetMaxSamplesPerKey
SetMaxSamplesPerKey sets the maximum number of samples per key
src/common/redis_sample_manager.go:282
FunctionSetNodeLeadership
SetNodeLeadership keeps the new and legacy leader state in sync.
src/common/cluster_state.go:36
FunctionSetOutput
(id string, out *output.Output)
src/project/project_struct.go:418
FunctionSetOutputNew
(id string, content string)
src/project/project_struct.go:1101
FunctionSetPluginNew
Safe accessor functions for PluginsNew map
src/plugin/plugin.go:1156
FunctionSetProjectCommandHandler
SetProjectCommandHandler sets the global project command handler
src/cluster/cluster.go:209
FunctionSetProjectComponentChecker
SetProjectComponentChecker sets the global project component checker function
src/common/global.go:231
FunctionSetProjectConfigStoreForTest
SetProjectConfigStoreForTest overrides project config persistence for tests that need project materialization without a real Redis backend.
src/project/project.go:32
FunctionSetProjectErrorSetter
SetProjectErrorSetter sets the global project error setter function
src/common/global.go:238
FunctionSetProjectNew
(id string, content string)
src/project/project_struct.go:1057
FunctionSetProjectRealState
SetProjectRealState sets the actual runtime state for a project on a specific node Stores the real current status: running, stopped, error, starting,
src/common/redis.go:672
FunctionSetProjectStateTimestamp
SetProjectStateTimestamp sets the timestamp for a project state change
src/common/redis.go:689
FunctionSetProjectUserIntention
===================== Project State Management ===================== SetProjectUserIntention sets the user intention for a project (what user wants) T
src/common/redis.go:590
FunctionSetRulesetNew
(id string, content string)
src/project/project_struct.go:1123
FunctionSetSIMDConfig
SetSIMDConfig allows customization of SIMD optimization behavior
src/rules_engine/simd_integration.go:291
FunctionSetSkill
(id string, s *skill.Skill)
src/project/project_struct.go:910
FunctionSetSkillNew
(id string, content string)
src/project/project_struct.go:948
FunctionSetStatsCollector
SetStatsCollector sets the callback function for collecting component statistics
src/common/daily_stats_manager.go:348
MethodSetTTL
SetTTL sets the TTL for sample data
src/common/redis_sample_manager.go:277
MethodSetWithTTL
SetWithTTL stores value with the given TTL, overwriting any existing entry.
src/rules_engine/engine_threshold_cache.go:109
MethodStart
Start begins the component monitoring process
src/common/component_monitor.go:30
MethodStart
Start starts the system monitor (already started in NewSystemMonitor)
src/common/system_monitor.go:70
MethodStart
Start initializes and starts the input component based on its type Returns an error if the component is already running or if initialization fails
src/input/input.go:354
MethodStart
Start starts the sync listener (follower only)
src/cluster/sync_listener.go:133
MethodStart
Start starts the heartbeat manager
src/cluster/heartbeat_simple.go:60
MethodStart
Start starts the cluster system
src/cluster/cluster.go:49
MethodStartComponentUpdate
StartComponentUpdate starts a new component update operation
src/common/operations.go:326
MethodStartForTesting
StartForTesting starts the output component in testing mode In testing mode, completely ignore output type and only send data to TestCollectionChan
src/output/output.go:620
MethodStartForTesting
StartForTesting starts the input component in testing mode This version initializes basic infrastructure but doesn't connect to external data sources
src/input/input.go:537
FunctionStartProject
(c echo.Context)
src/api/project_control.go:42
MethodStop
Stop gracefully stops the component monitor
src/common/component_monitor.go:59
MethodStop
Stop stops the system monitor
src/common/system_monitor.go:75
MethodStop
Stop stops the cluster system manager and cleanup goroutine
src/common/system_monitor.go:617
MethodStop
()
src/common/daily_stats_manager.go:357
MethodStop
Stop stops the sync listener
src/cluster/sync_listener.go:1015
MethodStop
Stop stops the heartbeat manager
src/cluster/heartbeat_simple.go:399
MethodStop
()
src/cluster/instruction_sync.go:899
MethodStop
Stop stops the cluster system
src/cluster/cluster.go:73
FunctionStopClusterSystemManager
StopClusterSystemManager stops the global cluster system manager
src/common/system_monitor.go:697
FunctionStopDailyStatsManager
StopDailyStatsManager stops the global daily statistics manager
src/common/daily_stats_manager.go:371
MethodStopForTesting
StopForTesting stops the output quickly for testing purposes without waiting for channel drainage
src/output/output.go:977
MethodStopForTesting
StopForTesting stops the input component quickly for testing purposes
src/input/input.go:636
MethodStopForTesting
(timeout time.Duration)
src/rules_engine/engine_core.go:691
FunctionStopProject
(c echo.Context)
src/api/project_control.go:97
FunctionStoreProjectConfig
===================== Project Config Helpers ===================== StoreProjectConfig stores project configuration in Redis
src/common/redis.go:463
MethodStoreSampleAsync
StoreSampleAsync stores a sample asynchronously via batch processing
src/common/redis_sample_manager.go:428
FunctionTestAccessLogger
TestAccessLogger writes a test message to verify access logger works
src/logger/logger.go:397
FunctionTestAddHitRuleID_DifferentIDsConcatenate
(t *testing.T)
src/rules_engine/engine_boost_test.go:28
FunctionTestAddHitRuleID_NewField
============================================================ addHitRuleID — direct tests for all three branches ======================================
src/rules_engine/engine_boost_test.go:11
FunctionTestAddHitRuleID_SameIDNoDuplicate
(t *testing.T)
src/rules_engine/engine_boost_test.go:19
FunctionTestAddTokenVal_MapsValues
(t *testing.T)
src/rules_engine/engine_coverage_test.go:139
FunctionTestAgentActiveProcessTrackingAndCancel
(t *testing.T)
src/agent/agent_reconcile_test.go:33
← previousnext →1,301–1,400 of 2,165, ranked by callers