Is There an Adapter to Convert ChatTool to AITool? #47871
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
OpenAI
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
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 ofIChatClient
, which is used for standard Azure OpenAI. TheAzureOpenAIClient
usesChatCompletionOptions
rather thanChatOptions
to specify the completion options for the client. Unfortunately, theChatCompletionOptions.Tools
property is a collection ofChatTool
, notAITool
.Is there an adapter service or method to convert
AITool
toChatTool
?Environment
No response
The text was updated successfully, but these errors were encountered: