Skip to content

Improvements to SKFunction interface - #1060

Merged
Devis Lucato (dluc) merged 3 commits into
microsoft:mainfrom
dluc:dluc157ifaces
May 19, 2023
Merged

Devis Lucato (dluc) merged 3 commits into
microsoft:mainfrom
dluc:dluc157ifaces

Conversation

@dluc

Copy link
Copy Markdown
Contributor
  • 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.

@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 Devis Lucato (dluc) added the PR: ready for review All feedback addressed, ready for reviews label May 18, 2023
@dluc
Devis Lucato (dluc) force-pushed the dluc157ifaces branch 2 times, most recently from 5ca6c5a to 8065d99 Compare May 18, 2023 08:50
@dluc
Devis Lucato (dluc) force-pushed the dluc157ifaces branch 3 times, most recently from 0deb536 to 784df46 Compare May 18, 2023 16:08
@dluc
Devis Lucato (dluc) force-pushed the dluc157ifaces branch 2 times, most recently from 48cee92 to 636fc38 Compare May 19, 2023 00:10
@dluc
Devis Lucato (dluc) force-pushed the dluc157ifaces branch 3 times, most recently from c1abe16 to 44caf1f Compare May 19, 2023 07:49
@lemillermicrosoft Lee Miller (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
Devis Lucato (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 Shawn Callegari (shawncal) added the PR: ready to merge PR has been approved by all reviewers, and is ready to merge. label May 19, 2023
@dluc
Devis Lucato (dluc) merged commit 1b77a52 into microsoft:main May 19, 2023
@dluc
Devis Lucato (dluc) deleted the dluc157ifaces branch June 14, 2023 01:14
Shawn Callegari (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.

4 participants