Is There an Adapter to Convert ChatTool to AITool? #47871
Open
Description
Library name and version
Azure.AI.OpenAI 2.1.0
Query/Question
I am trying to utilize Microsoft.Extensions.AI to interact with Azure OpenAI. When using OpenAI with your own data (AzureSearchAI as the source), you need to use the AzureOpenAIClient
instead of IChatClient
, which is used for standard Azure OpenAI. The AzureOpenAIClient
uses ChatCompletionOptions
rather than ChatOptions
to specify the completion options for the client. Unfortunately, the ChatCompletionOptions.Tools
property is a collection of ChatTool
, not AITool
.
Is there an adapter service or method to convert AITool
to ChatTool
?
Environment
No response
Metadata
Assignees
Labels
This issue points to a problem in the data-plane of the library.Workflow: This issue is responsible by Azure service team.Issues that are reported by GitHub users external to the Azure organization.Workflow: This issue needs attention from Azure service team or SDK teamThe issue doesn't require a change to the product in order to be resolved. Most issues start as that