Skip to content

Build Kernels concurrently using the same KernelBuilder #5372

Closed Answered by matthewbolanos
songpeidu asked this question in Q&A
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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by matthewbolanos
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