this should give you some idea of how to fillet polylines. There seems to be an issue with OnArc as it creates a full 360 degree circle instead of an arc angle so I've had to use GetNurbsForm and trim by interval. You will just need to collect the parameter values and re-trim the final segments.