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>
Constructors
Section titled “Constructors”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. |
Properties
Section titled “Properties”ApprovalId
Section titled “ApprovalId”public string ApprovalId { get; init; }The ID of the approval request this response refers to.
Value: string
Approved
Section titled “Approved”public bool Approved { get; init; }Whether the approval was granted.
Value: bool
Reason
Section titled “Reason”public string? Reason { get; init; }The reason for the approval or denial.
Value: string