Share via


ToolApprovalResponseContent Class

Definition

Represents a response to a ToolApprovalRequestContent, indicating whether the tool call was approved.

public ref class ToolApprovalResponseContent sealed : Microsoft::Extensions::AI::InputResponseContent
public sealed class ToolApprovalResponseContent : Microsoft.Extensions.AI.InputResponseContent
type ToolApprovalResponseContent = class
    inherit InputResponseContent
Public NotInheritable Class ToolApprovalResponseContent
Inherits InputResponseContent
Inheritance
ToolApprovalResponseContent

Constructors

Name Description
ToolApprovalResponseContent(String, Boolean, ToolCallContent)

Initializes a new instance of the ToolApprovalResponseContent class.

Properties

Name Description
AdditionalProperties

Gets or sets additional properties for the content.

(Inherited from AIContent)
Annotations

Gets or sets a list of annotations on this content.

(Inherited from AIContent)
Approved

Gets a value indicating whether the tool call was approved for execution.

RawRepresentation

Gets or sets the raw representation of the content from an underlying implementation.

(Inherited from AIContent)
Reason

Gets or sets the optional reason for the approval or rejection.

RequestId

Gets the unique identifier that correlates this response with its corresponding InputRequestContent.

(Inherited from InputResponseContent)
ToolCall

Gets the tool call that was subject to approval.

Applies to