Skip to content

How to send KernelArguments towards KernelFunctions when using IChatCompletionService #6457

Closed Answered by dmytrostruk
ystvan asked this question in Q&A
Discussion options

You must be logged in to vote

@ystvan Thank you for your question!

There are a couple of ways how to achieve your scenario:

  1. If securityFilters property does not contain PII or any other sensitive information, in your chat history you can inject these details as part of user or system message. Since auto function invocation is enabled, LLM will be able to use that information and Semantic Kernel will inject it into your plugin.
  2. If you do not wish to share securityFilters content with LLM, you could use kernel.Data property bag to set this information. In your plugin, you can inject kernel instance, which should contain that property, here is an example of Kernel injection:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ystvan
Comment options

Answer selected by ystvan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants