AgentPrismSkillScriptOptions
AgentPrism.Core.dllDefines options that control server-side skill script execution.
public sealed class AgentPrismSkillScriptOptionsInheritance
Section titled “Inheritance”object ← AgentPrismSkillScriptOptions
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”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.
Constructors
Section titled “Constructors”AgentPrismSkillScriptOptions()
Section titled “ AgentPrismSkillScriptOptions()”public AgentPrismSkillScriptOptions()Properties
Section titled “Properties”AllowStoredScripts
Section titled “ AllowStoredScripts”Gets or sets whether scripts stored in the database can run. Defaults to false.
public bool AllowStoredScripts { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”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.
Enabled
Section titled “ Enabled”Gets or sets whether script execution is enabled. Defaults to false.
public bool Enabled { get; set; }Property Value
Section titled “Property Value”EnvironmentAllowList
Section titled “ EnvironmentAllowList”Gets the allow list of environment variables passed to the script process.
public IList<string> EnvironmentAllowList { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Variables outside the list are not passed. A connection string and API key therefore never reach the process.
Interpreters
Section titled “ Interpreters”Gets the extension-to-interpreter-path allow list. Example:
["py"] = "/usr/bin/python3".
public IDictionary<string, string> Interpreters { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”No script runs while the list is empty. Extensions are written without a leading dot and in lowercase.
MaxArgumentBytes
Section titled “ MaxArgumentBytes”Gets or sets the largest byte count for JSON arguments supplied to a script.
public int MaxArgumentBytes { get; set; }Property Value
Section titled “Property Value”MaxConcurrentPerTenant
Section titled “ MaxConcurrentPerTenant”Gets or sets the largest concurrent script count per tenant.
public int MaxConcurrentPerTenant { get; set; }Property Value
Section titled “Property Value”MaxConcurrentTotal
Section titled “ MaxConcurrentTotal”Gets or sets the largest total concurrent script count.
public int MaxConcurrentTotal { get; set; }Property Value
Section titled “Property Value”MaxOutputBytes
Section titled “ MaxOutputBytes”Gets or sets the largest combined stdout and stderr byte count. Excess output is truncated.
public int MaxOutputBytes { get; set; }Property Value
Section titled “Property Value”MaxScriptContentLength
Section titled “ MaxScriptContentLength”Gets or sets the largest byte count for script content stored in the database.
public int MaxScriptContentLength { get; set; }Property Value
Section titled “Property Value”MaxScriptsPerSkill
Section titled “ MaxScriptsPerSkill”Gets or sets the largest script count that a skill can carry.
public int MaxScriptsPerSkill { get; set; }Property Value
Section titled “Property Value”PlatformIsolationAcknowledged
Section titled “ PlatformIsolationAcknowledged”Gets or sets whether the consumer acknowledges that AgentPrism does not provide operating-system isolation.
public bool PlatformIsolationAcknowledged { get; set; }Property Value
Section titled “Property Value”SearchDepth
Section titled “ SearchDepth”Gets or sets the largest directory depth traversed under skill roots.
public int SearchDepth { get; set; }Property Value
Section titled “Property Value”SkillRoots
Section titled “ SkillRoots”Gets the roots used to search skill directories on disk.
public IList<string> SkillRoots { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Roots are supplied in code or configuration and cannot be changed through the UI. The person who writes script content deploys the application.
Timeout
Section titled “ Timeout”Gets or sets the longest duration for one script to run.
public TimeSpan Timeout { get; set; }