Provide a context object #5345
Closed
SebastianStehle
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
The Kernel object is passed down through to everything involved in the operation, and it has a Data dictionary into which you can store any state you want. It's there explicitly so you can provide whatever arbitrary data you want and have that flow into the various connectors, functions, etc. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are not using semantic kernel yet and rely on node so far, e.g. langchain. But in my heart I am .NET developer.
What I am really missing here is some kind of context object that is available through the whole flow. Something like HttpContext with access to the current user and other application data. I know that we could probably rely on AsyncLocal, but this should not be necessary in my opinion.
Many, if not all, of our RAG scenarios need a permission system to restrict the data.
Beta Was this translation helpful? Give feedback.
All reactions