However much I focus on AI, the TS stuff keeps being relevant.
This time, it's the AI SDK not providing a built-in type for tool calls - so I've got to extract it using:
- Awaited<T>, to unwrap the promise
- [number], to turn the array of tool calls to a single member