Skip to content

HarnessApprovalStandingReauthorizedEvent

NexusLabs.Foundry.MicrosoftAgentFramework

NexusLabs.Foundry.MicrosoftAgentFramework.Progress

HarnessApprovalStandingReauthorizedEvent Class

A standing ("always approve") tool approval -- newly supplied this run, or implied by continuing a session that could carry one from a prior turn -- was submitted for the required host reauthorization check. Emitted exactly once per reauthorization attempt, whether the host granted or declined it; a declined reauthorization fails the run closed with zero tool invocations.

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

Inheritance System.Object 🡒 HarnessApprovalStandingReauthorizedEvent

Implements IProgressEvent, System.IEquatable<HarnessApprovalStandingReauthorizedEvent>

Constructors

HarnessApprovalStandingReauthorizedEvent(DateTimeOffset, string, string, string, int, long, string, bool) Constructor

A standing ("always approve") tool approval -- newly supplied this run, or implied by continuing a session that could carry one from a prior turn -- was submitted for the required host reauthorization check. Emitted exactly once per reauthorization attempt, whether the host granted or declined it; a declined reauthorization fails the run closed with zero tool invocations.

public HarnessApprovalStandingReauthorizedEvent(System.DateTimeOffset Timestamp, string WorkflowId, string? AgentId, string? ParentAgentId, int Depth, long SequenceNumber, string? ToolName, bool Granted);

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.

ToolName System.String

The tool name the standing approval would apply to, when it could be determined from the inbound messages; null when reauthorizing a restored session for which no specific tool name is known.

Granted System.Boolean

Whether the host validator authorized reliance on the standing approval.

Properties

HarnessApprovalStandingReauthorizedEvent.AgentId Property

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

public string? AgentId { get; init; }

Implements AgentId

Property Value

System.String

HarnessApprovalStandingReauthorizedEvent.Depth Property

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

public int Depth { get; init; }

Implements Depth

Property Value

System.Int32

HarnessApprovalStandingReauthorizedEvent.Granted Property

Whether the host validator authorized reliance on the standing approval.

public bool Granted { get; init; }

Property Value

System.Boolean

HarnessApprovalStandingReauthorizedEvent.ParentAgentId Property

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

public string? ParentAgentId { get; init; }

Implements ParentAgentId

Property Value

System.String

HarnessApprovalStandingReauthorizedEvent.SequenceNumber Property

Globally ordered sequence number for event ordering.

public long SequenceNumber { get; init; }

Implements SequenceNumber

Property Value

System.Int64

HarnessApprovalStandingReauthorizedEvent.Timestamp Property

When the event occurred.

public System.DateTimeOffset Timestamp { get; init; }

Implements Timestamp

Property Value

System.DateTimeOffset

HarnessApprovalStandingReauthorizedEvent.ToolName Property

The tool name the standing approval would apply to, when it could be determined from the inbound messages; null when reauthorizing a restored session for which no specific tool name is known.

public string? ToolName { get; init; }

Property Value

System.String

HarnessApprovalStandingReauthorizedEvent.WorkflowId Property

Top-level workflow correlation ID.

public string WorkflowId { get; init; }

Implements WorkflowId

Property Value

System.String