python-1.20.0
Release Notes
New Features
-
Deepseek Service in Concept Samples #10306 by @TaoChenOSU
-
Prompt Template Config and Kernel Args Support for Agents #10298 by @moonbox3
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
- Bug fixes from GraphRAG insights. #10270 by @eavanvalkenburg
Full Changelog: python-1.19.0...python-1.20.0