Tool calling & openai fix#9
Merged
Merged
Conversation
This commit upgrades several Microsoft Semantic Kernel packages to version 1.62.0 and introduces new packages, including `Microsoft.SemanticKernel.Plugins.OpenApi`. It also refactors the `ShowResponderParamsDialog` method in `ChatUI.cs` for improved configuration handling and adds a new `Tools` section in `ai_services_config.json` for better tool management. Additionally, new interfaces and classes have been created in the `Jasmine.Core.Tools` namespace to facilitate the registration and discovery of tools from various sources, enhancing the overall modularity and maintainability of the codebase.
Updated the `CreatePromptExecutionSettings` method in `OllamaResponder.cs` to include the `FunctionChoiceBehavior` property set to `FunctionChoiceBehavior.Auto()`, improving the configuration options for `OllamaPromptExecutionSettings`. Additionally, introduced a new `DebugPlugin` class in `DebugPlugin.cs`, featuring an `EchoJson` method that facilitates debugging by returning the input payload as a JSON string, thereby enhancing the kernel's debugging capabilities.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Classification
New feature and configuration improvements.
PR Summary
This pull request introduces enhancements to the AI service configuration management and responder selection logic, along with the addition of new tools and validation mechanisms. Key changes include:
ChatUI.cs: Updated responder selection logic to always show configuration dialogs for configurable responders.Program.cs: Modified responder registration to apply loaded configurations post-registration.AIServiceConfiguration.cs: Allowed optional custom configuration file paths and initialized configurations with empty values.ConfigurationValidator.cs: Added a utility class to validate AI service configurations.ConfigurationLoadingTests.cs: Introduced unit tests to verify loading and default creation of AI service configurations.