Skip to content

AgentPrismSkillScriptOptions

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Defines options that control server-side skill script execution.

public sealed class AgentPrismSkillScriptOptions

objectAgentPrismSkillScriptOptions

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

AgentPrism does not provide operating-system isolation..NET cannot portably disable network access, isolate the file system, apply CPU or memory quotas, or drop privileges. The host environment must provide this. Run AgentPrism with script execution enabled in a container, under an unprivileged user, and with restricted network access.

AgentPrismSkillScriptOptions.PlatformIsolationAcknowledged is the explicit acknowledgment that this limit was read. AgentPrismSkillScriptOptions.Enabled cannot be enabled without it, and the application fails during startup.

public AgentPrismSkillScriptOptions()

Gets or sets whether scripts stored in the database can run. Defaults to false.

public bool AllowStoredScripts { get; set; }

bool

When enabled, an Admin with UI access can write code that runs on the server. Three gates are required: this flag, the Admin role, and a grant record.

Gets or sets whether script execution is enabled. Defaults to false.

public bool Enabled { get; set; }

bool

Gets the allow list of environment variables passed to the script process.

public IList<string> EnvironmentAllowList { get; }

IList<string>

Variables outside the list are not passed. A connection string and API key therefore never reach the process.

Gets the extension-to-interpreter-path allow list. Example: ["py"] = "/usr/bin/python3".

public IDictionary<string, string> Interpreters { get; }

IDictionary<string, string>

No script runs while the list is empty. Extensions are written without a leading dot and in lowercase.

Gets or sets the largest byte count for JSON arguments supplied to a script.

public int MaxArgumentBytes { get; set; }

int

Gets or sets the largest concurrent script count per tenant.

public int MaxConcurrentPerTenant { get; set; }

int

Gets or sets the largest total concurrent script count.

public int MaxConcurrentTotal { get; set; }

int

Gets or sets the largest combined stdout and stderr byte count. Excess output is truncated.

public int MaxOutputBytes { get; set; }

int

Gets or sets the largest byte count for script content stored in the database.

public int MaxScriptContentLength { get; set; }

int

Gets or sets the largest script count that a skill can carry.

public int MaxScriptsPerSkill { get; set; }

int

Gets or sets whether the consumer acknowledges that AgentPrism does not provide operating-system isolation.

public bool PlatformIsolationAcknowledged { get; set; }

bool

Gets or sets the largest directory depth traversed under skill roots.

public int SearchDepth { get; set; }

int

Gets the roots used to search skill directories on disk.

public IList<string> SkillRoots { get; }

IList<string>

Roots are supplied in code or configuration and cannot be changed through the UI. The person who writes script content deploys the application.

Gets or sets the longest duration for one script to run.

public TimeSpan Timeout { get; set; }

TimeSpan