Well, if you ask it to write a library at the start, it's likely it will not do that well. Start small, spoon feed some examples.
So I have to do a lot of typing? Because the typing is the bit I don't want to do.
Actually writing code is the fun and easy bit.
If you have to put in this much effort, why not just write it yourself?