Share via


FunctionApprovalResponseContent(String, Boolean, FunctionCallContent) Constructor

Definition

Initializes a new instance of the FunctionApprovalResponseContent class.

public:
 FunctionApprovalResponseContent(System::String ^ id, bool approved, Microsoft::Extensions::AI::FunctionCallContent ^ functionCall);
public FunctionApprovalResponseContent(string id, bool approved, Microsoft.Extensions.AI.FunctionCallContent functionCall);
new Microsoft.Extensions.AI.FunctionApprovalResponseContent : string * bool * Microsoft.Extensions.AI.FunctionCallContent -> Microsoft.Extensions.AI.FunctionApprovalResponseContent
Public Sub New (id As String, approved As Boolean, functionCall As FunctionCallContent)

Parameters

id
String

The ID that uniquely identifies the function approval request/response pair.

approved
Boolean

true if the function call is approved; otherwise, false.

functionCall
FunctionCallContent

The function call that requires user approval.

Exceptions

functionCall is null.

id is empty or composed entirely of whitespace.

Applies to