Skip to content

AgentPrismSkillScriptBuilderExtensions

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Configuration extensions that enable skill script execution.

public static class AgentPrismSkillScriptBuilderExtensions

objectAgentPrismSkillScriptBuilderExtensions

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

UseSkillScripts(IAgentPrismBuilder, Action<AgentPrismSkillScriptOptions>)

Section titled “ UseSkillScripts(IAgentPrismBuilder, Action<AgentPrismSkillScriptOptions>)”

Enables skill script execution.

public static IAgentPrismBuilder UseSkillScripts(this IAgentPrismBuilder builder, Action<AgentPrismSkillScriptOptions> configure)

builder IAgentPrismBuilder

The configuration chain.

configure Action<AgentPrismSkillScriptOptions>

Modifies the script settings.

IAgentPrismBuilder

The continuation of the chain.

This call changes a security boundary. Once enabled, AgentPrism can run scripts from permitted skills on its own machine.

AgentPrism does not provide operating-system-level isolation: cutting off network access, restricting the file system, applying CPU/memory quotas, and dropping privileges are the hosting environment’s job. For this reason, the application fails at startup if AgentPrismSkillScriptOptions.PlatformIsolationAcknowledged is not set.

Even with the feature enabled, a script also requires a SkillScriptGrant record and a user approval that has gone through MAF’s approval flow before it can run.

builder.AddAgentPrism()
.UseSkillScripts(o =>
{
o.PlatformIsolationAcknowledged = true; // running inside a container
o.SkillRoots.Add("/opt/agentprism/skills");
o.Interpreters["py"] = "/usr/bin/python3";
o.Timeout = TimeSpan.FromSeconds(30);
});

ArgumentNullException

One of the dependencies is null.