()
| 162 | } |
| 163 | |
| 164 | func 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 | |
| 171 | When asked to create data structures: |
| 172 | 1. Always return valid JSON |
| 173 | 2. Follow the specified schema exactly |
| 174 | 3. Include all required fields |
| 175 | 4. Use appropriate data types |
| 176 | 5. Provide meaningful, realistic data |
| 177 | |
| 178 | Wrap 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 | } |
no test coverage detected