Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
While using SK with Google connector as I have found some major short comings in the features I needed, I could have moved to a different framework but I too the challenge to make it working for my design more fun. I had initially thought to keep it for my uses, but it only took a few hours to clean it up so it looks presentable at least in my opinion. This addition gets Native Tool calls working, currently only the new FileSearch feature, but it would be easy to add the other with only a few more lines of code.
Description
I have modified the GeminiRequest build process to handle both functionDeclarations and Native Gemini Tools, making a GeminiTool both compatible with declarations and tools. I have added a simple configuration to the GeminiPromptExecutionSettings to add FileSearch (an possibly other Tools).
At this time there are no new Tests written, for I was not able to get the tests to run initially without fail, most likely due to my inexperience. I know it isn't much help but rest assured I have tested this functionality. I look forward to advice and criticism. I hope we can make this work. If the idea is sound but the execution is poor or misplaced, I am willing to work to make any necessary changes.
Contribution Checklist