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

Function createTemplateRegistry

examples/structured-output/main.go:164–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162}
163
164func createTemplateRegistry() *agent.TemplateRegistry {
165 registry := agent.NewTemplateRegistry()
166
167 registry.Register(&types.AgentTemplateDefinition{
168 ID: "structured-agent",
169 SystemPrompt: `You are an AI assistant that generates structured JSON outputs.
170
171When asked to create data structures:
1721. Always return valid JSON
1732. Follow the specified schema exactly
1743. Include all required fields
1754. Use appropriate data types
1765. Provide meaningful, realistic data
177
178Wrap your JSON output in markdown code blocks for clarity.`,
179 Model: "claude-3-5-sonnet-20241022",
180 Tools: []string{},
181 })
182
183 return registry
184}

Callers 1

mainFunction · 0.70

Calls 2

RegisterMethod · 0.95
NewTemplateRegistryFunction · 0.92

Tested by

no test coverage detected