-
Notifications
You must be signed in to change notification settings - Fork 354
Description
Confirm this is a feature request for the .NET library and not the underlying OpenAI API
- This is a feature request for the .NET library
Describe the feature or improvement you are requesting
In order to get the "The official .NET library for the OpenAI API" to talk to the "official C# SDK for the Model Context Protocol" we have to write ~60 lines of code to convert from OpenAI's ChatToolCall to the argument dictionary expected by the MCP SDK.
It appears this was discussed internally at Microsoft in this PR: #422, and a decision was made there not to better integrate the 2 SDKs. I am requesting to restart this discussion and revisit the decisions made there.
The examples for the MCP SDK indicate that you can use the OpenAI SDK with MEAI, but in fact that is not the case.
The MCP SDK has a nice annotation-driven implementation that eliminates so much boiler plate. But the incompatibility discussed in the above PR basically destroys much of the concise-ness of the MCP SDK's implementation. Perhaps this is not a concern of the authors of the OpenAI SDK, but since both are from Microsoft, smoother integration would be hoped for.
Additional context
No response