Skip to content

HarnessSettings

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Settings for the harness capabilities. It mirrors a safe subset of the HarnessAgentOptions structure of Microsoft Agent Framework.

public sealed record HarnessSettings : IEquatable<HarnessSettings>

objectHarnessSettings

IEquatable<HarnessSettings>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Shell access and background agents are deliberately absent from these settings. Those two capabilities open a code execution surface on the server and need a separate security review.

public HarnessSettings()

Gets a value that turns off the agent mode provider.

public bool DisableAgentModeProvider { get; init; }

bool

Gets a value that turns off the agent skills provider.

public bool DisableAgentSkillsProvider { get; init; }

bool

Gets a value that turns off context compaction.

public bool DisableCompaction { get; init; }

bool

Gets a value that turns off file memory.

public bool DisableFileMemory { get; init; }

bool

Gets a value that turns off todo tracking.

public bool DisableTodoProvider { get; init; }

bool

Gets a value that turns off automatic tool approval. Once turned off, every tool call waits for an explicit approval.

public bool DisableToolAutoApproval { get; init; }

bool

Gets a value that turns off web search.

public bool DisableWebSearch { get; init; }

bool

Gets the extra instructions passed to the harness.

public string? HarnessInstructions { get; init; }

string?

Gets the token limit of the context window. Compaction starts once it is exceeded.

public int? MaxContextWindowTokens { get; init; }

int?

Gets the upper token limit produced in a single response.

public int? MaxOutputTokens { get; init; }

int?

Gets the upper number of iterations allowed within a single request.

public int? MaximumIterationsPerRequest { get; init; }

int?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(HarnessSettings? other)

other HarnessSettings?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(HarnessSettings?, HarnessSettings?)

Section titled “ operator ==(HarnessSettings?, HarnessSettings?)”
public static bool operator ==(HarnessSettings? left, HarnessSettings? right)

left HarnessSettings?

right HarnessSettings?

bool

operator !=(HarnessSettings?, HarnessSettings?)

Section titled “ operator !=(HarnessSettings?, HarnessSettings?)”
public static bool operator !=(HarnessSettings? left, HarnessSettings? right)

left HarnessSettings?

right HarnessSettings?

bool