Create plugins in rhino 8 from grasshopper definitions

I am trying to create a component plugin for Grasshopper using Rhino 8’s project publishing option.

According to the documentation, components can be created from a Grasshopper definition using contextual inputs/outputs. In my particular case, my input is an object from a Python class, so the available Grasshopper components are not suitable. The “Get Geometry” component seems to be the most comprehensive, but it still does not support processing data types that are non-native Rhino objects. Is there any option that could resolve this problem? Thanks in advance

What kind of input are you trying to provide to the component? A simple Grasshopper definition example would be great so I can understand the context better