Skip to content

Conversation

@rogerbarreto
Copy link
Contributor

Semantic Kernel now supports natively the Microsoft.Extensions.AI types and this pull request refactors the SemanticKernel examples and documentation reflecting that change moving forward as the ideal approach.

Refactoring and Test Improvements:

  • Replaced IChatCompletionService with IChatClient in TestSKInit, simplifying the service creation process and aligning with modern patterns. Updated the test logic to reflect this change.

Plugin Optimization:

  • Updated the GetWeather method in the SkPlugins class to return a completed Task directly, improving performance by avoiding unnecessary async/await overhead.

Documentation Alignment:

  • Updated the example in the README.md to use the new IChatClient creation pattern, ensuring consistency with the refactored code.

@tghamm
Copy link
Owner

tghamm commented Jul 25, 2025

Thanks @rogerbarreto !

@tghamm tghamm merged commit cedc0a0 into tghamm:main Jul 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants