Skip to content

LanguageModelV4ToolApprovalResponsePart

Namespace: E2E.Decision.Sdk

public sealed record LanguageModelV4ToolApprovalResponsePart : LanguageModelV4PromptPart, IEquatable<LanguageModelV4PromptPart>, IEquatable<LanguageModelV4ToolApprovalResponsePart>

Tool approval response content part of a prompt: the user’s decision to approve or deny a provider-executed tool call.

Inheritance: object → LanguageModelV4PromptPart

Implements: IEquatable<LanguageModelV4PromptPart>, IEquatable<LanguageModelV4ToolApprovalResponsePart>

View source

LanguageModelV4ToolApprovalResponsePart(string, bool)

Section titled “LanguageModelV4ToolApprovalResponsePart(string, bool)”
public LanguageModelV4ToolApprovalResponsePart(string ApprovalId, bool Approved)

Tool approval response content part of a prompt: the user’s decision to approve or deny a provider-executed tool call.

Parameters

Name Type Description
ApprovalId string The ID of the approval request this response refers to.
Approved bool Whether the approval was granted.

public string ApprovalId { get; init; }

The ID of the approval request this response refers to.

Value: string

public bool Approved { get; init; }

Whether the approval was granted.

Value: bool

public string? Reason { get; init; }

The reason for the approval or denial.

Value: string