semantic-kernel
semantic-kernel copied to clipboard
.Net: Include request data when operation is cancelled
Motivation and Context
Closes #7118
When request is cancelled due to configured Timeout on HttpClient, SK will throw KernelFunctionCanceledException. This change sets the Url, request payload etc. on the KernelFunctionCanceledException.
Description
Contribution Checklist
- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone :smile: