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

Method extractCustomInstructions

pkg/agent/agent.go:748–758  ·  view source on GitHub ↗

extractCustomInstructions 提取自定义指令

()

Source from the content-addressed store, hash-verified

746
747// extractCustomInstructions 提取自定义指令
748func (a *Agent) extractCustomInstructions() string {
749 if a.config.Metadata == nil {
750 return ""
751 }
752
753 if instructions, ok := a.config.Metadata["custom_instructions"].(string); ok {
754 return instructions
755 }
756
757 return ""
758}
759
760// extractContextWindowConfig 提取上下文窗口配置
761func (a *Agent) extractContextWindowConfig() *struct {

Callers 1

buildSystemPromptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected