Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/astercloud/aster
/ Build
Method
Build
pkg/agent/prompt_builder.go:21–21 ·
view source on GitHub ↗
(ctx *PromptContext)
Source
from the content-addressed store, hash-verified
19
type
PromptModule
interface
{
20
Name() string
21
Build(ctx *PromptContext) (string, error)
22
Priority() int
// 模块优先级,决定注入顺序
23
Condition(ctx *PromptContext) bool
// 是否应该注入此模块
24
}
Callers
5
TestBuilder
Function · 0.65
Build
Method · 0.65
executeSingleTool
Method · 0.65
demonstrateBuilderPattern
Function · 0.65
demonstratePermissions
Function · 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
1
TestBuilder
Function · 0.52