You should be able to extract the fitted coefficients (and kernel parameters) from the learner object, and you already know the basis function, you can template out a text output of the decision boundary/hyperplane that's injected to your code precompile-time.
This seems much more straightforward and stable than trying to get the two to communicate at runtime.