Converts to JSON.
Map<String, dynamic> toJson() => { 'tool_calls': toolCalls.map((tc) => tc.toJson()).toList(), };