Share via


ToolApprovalResponseContent(String, Boolean, ToolCallContent) Constructor

Definition

Initializes a new instance of the ToolApprovalResponseContent class.

public:
 ToolApprovalResponseContent(System::String ^ requestId, bool approved, Microsoft::Extensions::AI::ToolCallContent ^ toolCall);
[System.Text.Json.Serialization.JsonConstructor]
public ToolApprovalResponseContent(string requestId, bool approved, Microsoft.Extensions.AI.ToolCallContent toolCall);
[<System.Text.Json.Serialization.JsonConstructor>]
new Microsoft.Extensions.AI.ToolApprovalResponseContent : string * bool * Microsoft.Extensions.AI.ToolCallContent -> Microsoft.Extensions.AI.ToolApprovalResponseContent
Public Sub New (requestId As String, approved As Boolean, toolCall As ToolCallContent)

Parameters

requestId
String

The unique identifier of the ToolApprovalRequestContent associated with this response.

approved
Boolean

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

toolCall
ToolCallContent

The tool call that was subject to approval.

Attributes

Exceptions

toolCall is null.

requestId is empty or composed entirely of whitespace.

Applies to