Table of Contents

Class FunctionContractExtension

Namespace
AutoGen.OpenAI.Extension
Assembly
AutoGen.OpenAI.dll
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 FunctionContract

function 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 FunctionContract

function contract

Returns

ChatTool

OpenAI.Chat.ChatTool