Skip to content

HarnessApprovalRejectedEvent

NexusLabs.Foundry.MicrosoftAgentFramework

NexusLabs.Foundry.MicrosoftAgentFramework.Progress

HarnessApprovalRejectedEvent Class

An ordinary (non-standing) tool-approval response rejected the pending request. Emitted once per rejected request. A rejected request results in zero invocations of the underlying tool.

public sealed record HarnessApprovalRejectedEvent : NexusLabs.Foundry.MicrosoftAgentFramework.Progress.IProgressEvent, System.IEquatable<NexusLabs.Foundry.MicrosoftAgentFramework.Progress.HarnessApprovalRejectedEvent>

Inheritance System.Object 🡒 HarnessApprovalRejectedEvent

Implements IProgressEvent, System.IEquatable<HarnessApprovalRejectedEvent>

Constructors

HarnessApprovalRejectedEvent(DateTimeOffset, string, string, string, int, long, string, string, string) Constructor

An ordinary (non-standing) tool-approval response rejected the pending request. Emitted once per rejected request. A rejected request results in zero invocations of the underlying tool.

public HarnessApprovalRejectedEvent(System.DateTimeOffset Timestamp, string WorkflowId, string? AgentId, string? ParentAgentId, int Depth, long SequenceNumber, string RequestId, string ToolName, string? Reason);

Parameters

Timestamp System.DateTimeOffset

When the event occurred.

WorkflowId System.String

Top-level workflow correlation ID.

AgentId System.String

Which agent emitted this event, or null for workflow-level events.

ParentAgentId System.String

Parent agent ID for sub-agent runs, enabling tree reconstruction.

Depth System.Int32

Nesting depth: 0 = workflow, 1 = agent, 2 = sub-agent, etc.

SequenceNumber System.Int64

Globally ordered sequence number for event ordering.

RequestId System.String

The request identifier the approval response answered.

ToolName System.String

The name of the tool that was rejected.

Reason System.String

The caller-supplied rejection reason, when provided.

Properties

HarnessApprovalRejectedEvent.AgentId Property

Which agent emitted this event, or null for workflow-level events.

public string? AgentId { get; init; }

Implements AgentId

Property Value

System.String

HarnessApprovalRejectedEvent.Depth Property

Nesting depth: 0 = workflow, 1 = agent, 2 = sub-agent, etc.

public int Depth { get; init; }

Implements Depth

Property Value

System.Int32

HarnessApprovalRejectedEvent.ParentAgentId Property

Parent agent ID for sub-agent runs, enabling tree reconstruction.

public string? ParentAgentId { get; init; }

Implements ParentAgentId

Property Value

System.String

HarnessApprovalRejectedEvent.Reason Property

The caller-supplied rejection reason, when provided.

public string? Reason { get; init; }

Property Value

System.String

HarnessApprovalRejectedEvent.RequestId Property

The request identifier the approval response answered.

public string RequestId { get; init; }

Property Value

System.String

HarnessApprovalRejectedEvent.SequenceNumber Property

Globally ordered sequence number for event ordering.

public long SequenceNumber { get; init; }

Implements SequenceNumber

Property Value

System.Int64

HarnessApprovalRejectedEvent.Timestamp Property

When the event occurred.

public System.DateTimeOffset Timestamp { get; init; }

Implements Timestamp

Property Value

System.DateTimeOffset

HarnessApprovalRejectedEvent.ToolName Property

The name of the tool that was rejected.

public string ToolName { get; init; }

Property Value

System.String

HarnessApprovalRejectedEvent.WorkflowId Property

Top-level workflow correlation ID.

public string WorkflowId { get; init; }

Implements WorkflowId

Property Value

System.String