microsoft / microsoft/semantic-kernel-java
Java: API - What about importing skills/plugins from the root directory in the classpath?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 276
- Forks
- 56
- Avg merge
- 17h 45m
- Merged PRs (30d)
- 4
Description
Today, to import a skill from the classpath we use the following SkillExecutor method:
ReadOnlyFunctionCollection importSkillFromResources(
String pluginDirectory, String skillName, String functionName);
But when the skill is at the root of the classpath, we need to invoke the method passing a blank to the pluginDirectory parameter:
kernel.importSkillFromResources("", "NarrationSkill", "NarrateFight");
It would be good to have another method that does not have a pluginDirectory parameter and looks straight from the root:
kernel.importSkillFromResources("NarrationSkill", "NarrateFight");
WDYT ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating SkillExecutor and the existing importSkillFromResources(String pluginDirectory, String skillName, String functionName) method. Check how an empty pluginDirectory resolves a root-classpath skill, then verify that the requested overload supports the two-argument call while preserving the existing method behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100