Skip to content
Discussion options

You must be logged in to vote

Yes, this by design. You ideally shouldn't be using a builder to create multiple Kernels. Ideally, you would either...

  • Create a kernel once and then clone it.
  • Add a transient kernel to the service provider so that it's always recreated.

For the latter, I'd refer to the Dependency Injection sample: https://github.com/microsoft/semantic-kernel/tree/main/dotnet/samples/HomeAutomation

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

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