(err error, chat *database.Chat)
| 265 | } |
| 266 | |
| 267 | func subagentErrorResponse(err error, chat *database.Chat) fantasy.ToolResponse { |
| 268 | if chat == nil { |
| 269 | return fantasy.NewTextErrorResponse(err.Error()) |
| 270 | } |
| 271 | return toolJSONErrorResponse(withSubagentType(map[string]any{ |
| 272 | "error": err.Error(), |
| 273 | }, *chat)) |
| 274 | } |
| 275 | |
| 276 | func buildSpawnAgentDescription( |
| 277 | ctx context.Context, |
no test coverage detected