.NET API
ToolApprovalDecision
Tracon.AspNetCore.dllTool approval decision sent from the UI.
public sealed record ToolApprovalDecision : IEquatable<ToolApprovalDecision>- Inheritance
- object ← ToolApprovalDecision
- Implements
- IEquatable<ToolApprovalDecision>
- Inherited Members
- object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”The decision is carried in the body of the next run request. Microsoft
Agent Framework expects the approval response as a ChatMessage
content item; there is no separate “continue” endpoint, because approval
is the input to the next turn.
Constructors
Section titled “Constructors”ToolApprovalDecision()
Section titled “ ToolApprovalDecision()”public ToolApprovalDecision()Properties
Section titled “Properties”Approved
Section titled “ Approved”Whether the call is approved.
public required bool Approved { get; init; }Property Value
Section titled “Property Value”Reason
Section titled “ Reason”Reason for the decision. Passed on to the model.
public string? Reason { get; init; }Property Value
Section titled “Property Value”Remember
Section titled “ Remember”Whether the decision should be saved as a permanent rule (“don’t ask
again”). Meaningful only while Approved is true.
public bool Remember { get; init; }Property Value
Section titled “Property Value”RememberArgumentsOnly
Section titled “ RememberArgumentsOnly”Whether the permanent rule covers only a call with the same arguments. If false, it covers every call to the tool.
public bool RememberArgumentsOnly { get; init; }Property Value
Section titled “Property Value”RequestId
Section titled “ RequestId”Identifier of the approved request. This is the
ToolApprovalRequestContent.RequestId value received in the stream.
public required string RequestId { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ToolApprovalDecision?)
Section titled “ Equals(ToolApprovalDecision?)”public bool Equals(ToolApprovalDecision? other)Parameters
Section titled “Parameters”other ToolApprovalDecision?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ToolApprovalDecision?, ToolApprovalDecision?)
Section titled “ operator ==(ToolApprovalDecision?, ToolApprovalDecision?)”public static bool operator ==(ToolApprovalDecision? left, ToolApprovalDecision? right)Parameters
Section titled “Parameters”left ToolApprovalDecision?
right ToolApprovalDecision?
Returns
Section titled “Returns”operator !=(ToolApprovalDecision?, ToolApprovalDecision?)
Section titled “ operator !=(ToolApprovalDecision?, ToolApprovalDecision?)”public static bool operator !=(ToolApprovalDecision? left, ToolApprovalDecision? right)Parameters
Section titled “Parameters”left ToolApprovalDecision?
right ToolApprovalDecision?