Skip to content

HarnessContextCategory

NexusLabs.Foundry.MicrosoftAgentFramework

NexusLabs.Foundry.MicrosoftAgentFramework.Diagnostics

HarnessContextCategory Enum

Public, privacy-safe mirror of Harness.Context.HarnessContextEntryKind: the structural classification a final context entry contributes to CategoryContributions under. Every value here corresponds 1:1 to an internal entry kind, so a per-category byte/entry count can be reported without ever exposing entry content.

public enum HarnessContextCategory

Fields

SystemInstruction 0

Pinned system instructions.

AuthoritativeSessionState 1

Host-authoritative structured session state (for example accepted decisions, todos, or mode).

ApprovalSecurityState 2

Active approval or security state.

ToolExchange 3

A message that is part of an atomic assistant tool-call/tool-result exchange.

ArtifactReference 4

A message whose entire text is one canonical artifact reference.

ConversationalMessage 5

An ordinary conversational message.

Summary 6

A summary of previously reduced/compacted history.

RecoverableContextSegment 7

A rehydrated artifact body, marked recoverable/evictable.

OptionalContext 8

Explicitly optional context.