Share via


FunctionApprovalRequestContent.CreateResponse(Boolean) Method

Definition

Creates a FunctionApprovalResponseContent to indicate whether the function call is approved or rejected based on the value of approved.

public:
 Microsoft::Extensions::AI::FunctionApprovalResponseContent ^ CreateResponse(bool approved);
public Microsoft.Extensions.AI.FunctionApprovalResponseContent CreateResponse(bool approved);
member this.CreateResponse : bool -> Microsoft.Extensions.AI.FunctionApprovalResponseContent
Public Function CreateResponse (approved As Boolean) As FunctionApprovalResponseContent

Parameters

approved
Boolean

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

Returns

The FunctionApprovalResponseContent representing the approval response.

Applies to