Skip to content
Tracon

TraconWorkspaceOptions

Namespace Tracon · Assembly Tracon.Core.dll

Limits of the session workspace (WorkspaceSettings).

public sealed class TraconWorkspaceOptions
Inheritance
object ← TraconWorkspaceOptions
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
"Tracon": {
"Workspace": { "MaxFileBytes": 524288, "MaxSessionBytes": 10485760 }
}

Read from the Tracon:Workspace configuration section. A write that would pass a limit is refused, and the agent reads “workspace quota reached” as the result of the tool call; the run goes on. The limits are measured against the files as the store keeps them: a SQL Server store keeps text as UTF-16, so it reaches a limit with half as many ASCII characters as another store does.

A file counts its content and also a fixed 1 KiB for its row in the limit of a session and of a tenant, so a model that writes thousands of empty files reaches the limit instead of filling the table. The limits are soft: two writes that run at the same moment can pass a limit together by the size of one file; the next write is refused.

public TraconWorkspaceOptions()

The configuration section name.

public const string SectionName = "Tracon:Workspace"

string

Gets or sets the most bytes (UTF-8) one file may hold. Defaults to 256 KiB.

public long MaxFileBytes { get; set; }

long

Gets or sets the most bytes all the files of one session may hold. Defaults to 5 MiB.

public long MaxSessionBytes { get; set; }

long

Gets or sets the most bytes all the workspaces of one tenant may hold. Defaults to 500 MiB.

public long MaxTenantBytes { get; set; }

long