You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Motivation and Context
`GeminiToolCallBehavior` exposes the method `EnableFunctions` to enable
filtering which Kernel Functions are available for auto invoke. However,
there's no way to construct a `GeminiFunction` instance since the
constructor is internal.
I saw there's an extension to build a `GeminiFunction` from a
`KernelFunctionMetadata`, but it's under the test project. It seems that
it was supposed to be exposed from the library, since there's also a
test file for `KernelFunctionMetadata`.
This way, it will be possible to use
`GeminiToolCallBehavior.EnableFunctions` to explicitly specify which
tools can be auto-called by the Google connector.
<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
1. Why is this change required?
2. What problem does it solve?
3. What scenario does it contribute to?
4. If it fixes an open issue, please link to the issue here.
-->
### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
- Move GeminiKernelFunctionMetadataExtensions from
`SemanticKernel.Connectors.Google.UnitTests` to
`Microsoft.SemanticKernel` namespace.
- Remove `FunctionMetadataAsGeminiFunction` and start using
`GeminiKernelFunctionMetadataExtensions` instead.
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
0 commit comments