Skip to content

Is There an Adapter to Convert ChatTool to AITool? #47871

Open
@MikeAlhayek

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

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.OpenAIService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions