MCPcopy Create free account
hub / github.com/astercloud/aster / AddModule

Method AddModule

pkg/agent/prompt_builder.go:88–90  ·  view source on GitHub ↗

AddModule 添加模块

(module PromptModule)

Source from the content-addressed store, hash-verified

86
87// AddModule 添加模块
88func (pb *PromptBuilder) AddModule(module PromptModule) {
89 pb.modules = append(pb.modules, module)
90}
91
92// Build 构建完整的 System Prompt
93func (pb *PromptBuilder) Build(ctx *PromptContext) (string, error) {

Callers 1

buildSystemPromptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected