-
SummaryI am using Python and I add plugins through directories because I need to use Current ImplementationHere is an example of how I am currently initializing the class WeatherManager:
def __init__(self, **kwargs):
self.nativecli: Client = kwargs.get('nativecli', None)
return
@kernel_function(description="...")
def weather(self, location):
return self.nativecli.weather(location) And this is how I am adding the plugin: kernel.add_plugin(
parent_directory="plugins", plugin_name="NativePlugin",
class_init_arguments={
"XXXManager": {"nativecli": self.nativecli},
"XXXManager": {"nativecli": self.nativecli},
"XXXManager": {"nativecli": self.nativecli},
...
}
) Proposed SimplificationI would like to simplify the above approach by using a wildcard to set kernel.add_plugin(
parent_directory="plugins", plugin_name="NativePlugin",
class_init_arguments={
"*": {"nativecli": self.nativecli},
}
) QuestionIs the proposed wildcard approach feasible for setting Thank you for your assistance! 🙇 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Tagging @alliscode |
Beta Was this translation helpful? Give feedback.
-
Hi @nblog, we've created an issue from this post a while back. You can find my response here. |
Beta Was this translation helpful? Give feedback.
Hi @nblog, we've created an issue from this post a while back. You can find my response here.