Class FunctionContractExtension
public static class FunctionContractExtension
- Inheritance
-
FunctionContractExtension
- Inherited Members
Methods
ToChatTool(FunctionContract)
Convert a FunctionContract to a OpenAI.Chat.ChatTool that can be used in gpt funciton call.
public static ChatTool ToChatTool(this FunctionContract functionContract)
Parameters
functionContract
FunctionContractfunction contract
Returns
- ChatTool
OpenAI.Chat.ChatTool
ToOpenAIFunctionDefinition(FunctionContract)
Convert a FunctionContract to a OpenAI.Chat.ChatTool that can be used in gpt funciton call.
[Obsolete("Use ToChatTool instead")]
public static ChatTool ToOpenAIFunctionDefinition(this FunctionContract functionContract)
Parameters
functionContract
FunctionContractfunction contract
Returns
- ChatTool
OpenAI.Chat.ChatTool