Skip to content

python-1.20.0

Compare
Choose a tag to compare
@moonbox3 moonbox3 released this 29 Jan 08:57
· 43 commits to main since this release
d015742

Release Notes

New Features


Note 1: The ChatCompletionAgent's execution_settings constructor parameter has been replaced with the ability to pass KernelArguments(settings=<execution_settings>). If you're passing in execution_settings to the agent constructor, please now pass in KernelArguments. This change aligns with how the .Net Agent Framework is structured and allows for the use of the AI Service Selector inside the Chat Completion Agent.

Note 2: The OpenAIChatCompletion and AzureChatCompletion classes now support an instruction_role keyword argument. This is particularly useful when using reasoning models like o1. When set, any AuthorRole.SYSTEM messages are converted to AuthorRole.DEVELOPER before being sent to the model.

Example usage:

chat_service = OpenAIChatCompletion(service_id=service_id, instruction_role="developer")

Python Package Updates

Enhancements and Fixes

  • Improve handling for kernel plugin from file. #10286 by @moonbox3

  • Improve hashing of CMC and SCMC items. Add tests. #10332 by @moonbox3

  • Improve agent samples and chat history handling. #10301 by @eavanvalkenburg

  • Allow enums to be passed into on_function_result. Improve handling of FRC result so it can be hashed. #10316 by @moonbox3

Bug Fixes and Improvements

Full Changelog: python-1.19.0...python-1.20.0