An actual serious answer is to help musicians brainstorm while writing. It's so good at helping me come up with ideas, or converting an idea to another genre.
If the computer is fast enough to keep up with real time music, one could imagine a model that can jam with you with other instruments, reacting to and complementing what you're doing.