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 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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.