mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 11:19:56 +00:00
### Motivation and Context It is confusing to have multiple skfunction invoke_* calls. This PR combines invoke and invoke_with_vars to enable calls with the input pattern: with SKContext, or with SKContextVariables. ### Description - Removed `sk_function` methods `invoke_with_vars` and `invoke_with_vars_async` - Added the following optional paramters to `sk_function` methods `invoke_` and `invoke_async`: `variables` and `memory` - Added log warnings for when an both SKContext and variables/memory are passed to `invoke` methods - this design ensures that the SDContext and it's associated variables and memory are prioritized - Updated tests and notebooks where applicable