Skip to content

Python: Are Kernel and Chat Services thread-safe? #12900

@abdhx

Description

@abdhx

Hi team 👋 ,

I'm integrating Semantic Kernel into a Python project that involves multi-threaded environments (e.g., FastAPI server, background workers). I need to know if the following components are thread-safe and suitable to be shared across threads:

  • semantic_kernel.Kernel
  • Chat services (e.g., OpenAIChatCompletion, AzureChatCompletion)
  • Any related memory/planner/skill components

I couldn't find definitive info in the docs or issues. Any clarification or best practice guidance would be appreciated.

Thanks!

Metadata

Metadata

Assignees

Labels

pythonPull requests for the Python Semantic Kernel

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions