Repository navigation
Adding header per tools call #12874
Replies: 1 comment
|
Short answer: SK doesn't have a "header per tool call" setting, because a tool call is just a local function invocation. An HTTP request only exists if the function itself calls an API. So the usual approach is to attach the correlation ID in two places.
If you only need distributed tracing, enabling the SK ActivitySource and using W3C Hope that helps. If you tell me whether your tools are native functions or OpenAPI/MCP, I can be more specific. |
Uh oh!
There was an error while loading. Please reload this page.
I would like to programmatically attach additional metadata, such as a correlation, to every tool invocation in Semantic Kernel, ideally by adding a custom header. This would enable comprehensive end-to-end tracing of requests. Is there a recommended approach to achieve this in SK?
All reactions