AgentTool<C>? operator [](String name) { for (final tool in tools) { if (tool.name == name) return tool; } return null; }