You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a mechanism to allow the HttpRequestMessage used for an Open API call to be modified e.g. additional headers or query parameters to be added by the client application using data that comes from the KernelFunctionMetadata.
We allow additional properties to be added to the KernelFunctionMetadata and these can be used to represent additional HTTP headers that must be included in the REST request. The client application needs a way to provide these and will need access to the KernelFunction and the HttpRequestMessage to do so.
The text was updated successfully, but these errors were encountered:
markwallace-microsoft
changed the title
Provide mechanism to allow HttpRequestMessage for Open API calls to be modified
.Net: Provide mechanism to allow HttpRequestMessage for Open API calls to be modified
Jun 17, 2024
markwallace-microsoft
changed the title
.Net: Provide mechanism to allow HttpRequestMessage for Open API calls to be modified
.Net: Provide mechanism to allow HttpRequestMessage for Open API calls to be modified using KernelFunctionMetadata
Jun 17, 2024
…s to be modified using KernelFunctionMetadata (#6755)
### Motivation and Context
Closes#6734
### Description
<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
---------
Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
We need a mechanism to allow the
HttpRequestMessage
used for an Open API call to be modified e.g. additional headers or query parameters to be added by the client application using data that comes from theKernelFunctionMetadata
.We allow additional properties to be added to the
KernelFunctionMetadata
and these can be used to represent additional HTTP headers that must be included in the REST request. The client application needs a way to provide these and will need access to theKernelFunction
and theHttpRequestMessage
to do so.The text was updated successfully, but these errors were encountered: