Will the Metadata info of the "event invoked" made available in the Python version of the FunctionInvokedEventArgs class as well? #4413
-
Got an inspiring example in the C# cookbook: This is exactly what I am looking for:
I can't seem to find the possibility to get this info (metadata) in the Python version (yet)? Any suggestions on getting this information out of the Python version of the Kernel with hooks? Or not possible yet? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
@rwb-truelime , great question. Adding @moonbox3 for any insights here. |
Beta Was this translation helpful? Give feedback.
-
Hi @rwb-truelime, thank you for your question. We are targeting further improvements to the function invoking/invoked handlers for v1 (date TBD). You can find a proposal around how this may be handled in the sk-v1-proposal repo both here and here. Please note that this is preliminary code, and isn't set in stone. There is a lot still influx, and being worked on currently, which may change the initial proposal. |
Beta Was this translation helpful? Give feedback.
-
Hi @moonbox3 , thank you for your reply and information. Good to notice further improvements are planned, great! The code doesn't directly imply any signals to be able to trace generated costs by the SK? Apologies if this is actually the case, I can misinterpret things because of a lack of knowledge on the (complete) SK codebase. Thanks |
Beta Was this translation helpful? Give feedback.
-
Answered in #4413 (reply in thread) |
Beta Was this translation helpful? Give feedback.
This particular code that I shared doesn't have that trace information right now, but we're working on improving the response object, which would hold more information. This response object would available via the hooks to allow users to gather that type of trace/metadata as required.