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

Function createTemplateRegistry

examples/session-enhanced/main.go:179–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177}
178
179func createTemplateRegistry() *agent.TemplateRegistry {
180 registry := agent.NewTemplateRegistry()
181
182 registry.Register(&types.AgentTemplateDefinition{
183 ID: "chat-agent",
184 SystemPrompt: "You are a helpful assistant.",
185 Model: "claude-3-5-sonnet-20241022",
186 Tools: []string{},
187 })
188
189 return registry
190}
191
192func truncate(s string, maxLen int) string {
193 if len(s) <= maxLen {

Callers 1

mainFunction · 0.70

Calls 2

RegisterMethod · 0.95
NewTemplateRegistryFunction · 0.92

Tested by

no test coverage detected