Przeczytaj w języku angielskim

Udostępnij za pośrednictwem


OpenAIRealtimeExtensions.ToConversationFunctionTool(AIFunction) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Converts a AIFunction into a ConversationFunctionTool so that it can be used with RealtimeConversationClient.

C#
public static OpenAI.RealtimeConversation.ConversationFunctionTool ToConversationFunctionTool(this Microsoft.Extensions.AI.AIFunction aiFunction);

Parameters

aiFunction
AIFunction

Returns

A ConversationFunctionTool that can be used with RealtimeConversationClient.

Applies to

Produkt Wersje
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)