Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ Condition
Method
Condition
pkg/agent/prompt_builder.go:23–23 ·
view source on GitHub ↗
模块优先级,决定注入顺序
(ctx *PromptContext)
Source
from the content-addressed store, hash-verified
21
Build(ctx *PromptContext) (string, error)
22
Priority() int
// 模块优先级,决定注入顺序
23
Condition(ctx *PromptContext) bool
// 是否应该注入此模块
24
}
25
26
// PromptContext 构建上下文
Callers
1
Build
Method · 0.65
Implementers
15
BasePromptModule
pkg/agent/prompt_modules.go
EnvironmentModule
pkg/agent/prompt_modules.go
ToolsManualModule
pkg/agent/prompt_modules.go
SandboxModule
pkg/agent/prompt_modules.go
TodoReminderModule
pkg/agent/prompt_modules.go
CodeReferenceModule
pkg/agent/prompt_modules.go
SecurityModule
pkg/agent/prompt_modules.go
PerformanceModule
pkg/agent/prompt_modules.go
CollaborationModule
pkg/agent/prompt_modules.go
WorkflowModule
pkg/agent/prompt_modules.go
CustomInstructionsModule
pkg/agent/prompt_modules.go
CapabilitiesModule
pkg/agent/prompt_modules.go
Calls
no outgoing calls
Tested by
no test coverage detected