FunctionApprovalResponseContent(String, Boolean, FunctionCallContent) Constructor
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.
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.