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

Function registerBuiltinTemplates

cmd/aster/serve.go:120–132  ·  view source on GitHub ↗

registerBuiltinTemplates 注册内置模板

(registry *agent.TemplateRegistry)

Source from the content-addressed store, hash-verified

118
119// registerBuiltinTemplates 注册内置模板
120func registerBuiltinTemplates(registry *agent.TemplateRegistry) {
121 registry.Register(&types.AgentTemplateDefinition{
122 ID: "assistant",
123 SystemPrompt: "You are a helpful assistant.",
124 Tools: []any{"filesystem", "bash"},
125 })
126
127 registry.Register(&types.AgentTemplateDefinition{
128 ID: "coder",
129 SystemPrompt: "You are an expert programmer.",
130 Tools: []any{"filesystem", "bash", "grep"},
131 })
132}
133
134// printDevServerInfo 打印开发服务器启动信息
135func printDevServerInfo(host string, port int) {

Callers 2

createAgentDependenciesFunction · 0.85
runServeFunction · 0.85

Calls 1

RegisterMethod · 0.65

Tested by

no test coverage detected