OpenAIRealtimeExtensions.ToConversationFunctionTool(AIFunction) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static OpenAI::RealtimeConversation::ConversationFunctionTool ^ ToConversationFunctionTool(Microsoft::Extensions::AI::AIFunction ^ aiFunction);
public static OpenAI.RealtimeConversation.ConversationFunctionTool ToConversationFunctionTool (this Microsoft.Extensions.AI.AIFunction aiFunction);
static member ToConversationFunctionTool : Microsoft.Extensions.AI.AIFunction -> OpenAI.RealtimeConversation.ConversationFunctionTool
<Extension()>
Public Function ToConversationFunctionTool (aiFunction As AIFunction) As ConversationFunctionTool

Parameters

aiFunction
AIFunction

Returns

OpenAI.RealtimeConversation.ConversationFunctionTool

A OpenAI.RealtimeConversation.ConversationFunctionTool that can be used with OpenAI.RealtimeConversation.RealtimeConversationClient.

Applies to