()
| 177 | } |
| 178 | |
| 179 | func 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 | |
| 192 | func truncate(s string, maxLen int) string { |
| 193 | if len(s) <= maxLen { |
no test coverage detected