Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to SKFunction interface #1060

Merged
merged 3 commits into from
May 19, 2023
Merged

Conversation

dluc
Copy link
Collaborator

@dluc dluc commented May 18, 2023

  • Allow to call functions passing a string. This is a common scenario, particularly with demos, allowing for a shorter syntax. The code logs a warning if the input string exists also in the context and is different.
  • Add SKContext.Clone and delete unnecessary/redundant SKFunction.InvokeWithCustomInput method.
  • Allow to create a context with a non empty cancellation token. This can be useful to inject an existing token from outside.
  • Fix SKFunction invoke, allow to pass memory reference.

@dluc dluc requested a review from shawncal May 18, 2023 07:45
@github-actions github-actions bot added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel kernel.core labels May 18, 2023
@dluc dluc added the PR: ready for review All feedback addressed, ready for reviews label May 18, 2023
@dluc dluc force-pushed the dluc157ifaces branch 2 times, most recently from 5ca6c5a to 8065d99 Compare May 18, 2023 08:50
@dluc dluc force-pushed the dluc157ifaces branch 3 times, most recently from 0deb536 to 784df46 Compare May 18, 2023 16:08
@dluc dluc force-pushed the dluc157ifaces branch 2 times, most recently from 48cee92 to 636fc38 Compare May 19, 2023 00:10
@dluc dluc force-pushed the dluc157ifaces branch 3 times, most recently from c1abe16 to 44caf1f Compare May 19, 2023 07:49
@lemillermicrosoft lemillermicrosoft added PR: in progress Under development and/or addressing feedback and removed PR: ready for review All feedback addressed, ready for reviews labels May 19, 2023
@dluc dluc force-pushed the dluc157ifaces branch 2 times, most recently from dc732fa to 713ad12 Compare May 19, 2023 19:39
* Allow to create a context with a non empty cancellation token
* Fix SKFunction invoke, allow to pass memory reference
* Delete unnecessary SKFunction.InvokeWithCustomInput
@shawncal shawncal added the PR: ready to merge PR has been approved by all reviewers, and is ready to merge. label May 19, 2023
@dluc dluc merged commit 1b77a52 into microsoft:main May 19, 2023
18 checks passed
@dluc dluc deleted the dluc157ifaces branch June 14, 2023 01:14
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
* Allow to call functions passing a string. This is a common scenario,
particularly with demos, allowing for a shorter syntax. The code logs a
warning if the input string exists also in the context and is different.
* Add SKContext.Clone and delete unnecessary/redundant
SKFunction.InvokeWithCustomInput method.
* Allow to create a context with a non empty cancellation token. This
can be useful to inject an existing token from outside.
* Fix SKFunction invoke, allow to pass memory reference.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code PR: in progress Under development and/or addressing feedback PR: ready to merge PR has been approved by all reviewers, and is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants