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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET