docs(api): add comprehensive comments on message transformation
- Document API message structure for different message_types
- Explain why tool_call and tool_return fields need special handling
- Add examples showing tool call/return content construction
- Clarify simple transformation architecture (no filtering/grouping)
- Prevent future regressions where tool messages display as empty