.NET API
TraconWorkspaceOptions
Tracon.Core.dllLimits 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()
Examples
Section titled “Examples”"Tracon": { "Workspace": { "MaxFileBytes": 524288, "MaxSessionBytes": 10485760 }}Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”TraconWorkspaceOptions()
Section titled “ TraconWorkspaceOptions()”public TraconWorkspaceOptions()Fields
Section titled “Fields”SectionName
Section titled “ SectionName”The configuration section name.
public const string SectionName = "Tracon:Workspace"Field Value
Section titled “Field Value”Properties
Section titled “Properties”MaxFileBytes
Section titled “ MaxFileBytes”Gets or sets the most bytes (UTF-8) one file may hold. Defaults to 256 KiB.
public long MaxFileBytes { get; set; }Property Value
Section titled “Property Value”MaxSessionBytes
Section titled “ MaxSessionBytes”Gets or sets the most bytes all the files of one session may hold. Defaults to 5 MiB.
public long MaxSessionBytes { get; set; }Property Value
Section titled “Property Value”MaxTenantBytes
Section titled “ MaxTenantBytes”Gets or sets the most bytes all the workspaces of one tenant may hold. Defaults to 500 MiB.
public long MaxTenantBytes { get; set; }