AgentSkillScriptDefinition
AgentPrism.Abstractions.dllA server-executable script stored together with an AgentSkillDefinition.
public sealed record AgentSkillScriptDefinition : IEquatable<AgentSkillScriptDefinition>Inheritance
Section titled “Inheritance”object ← AgentSkillScriptDefinition
Implements
Section titled “Implements”IEquatable<AgentSkillScriptDefinition>
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”This content runs on the server. Creating the record does
not grant execution permission: execution requires
AgentPrismSkillScriptOptions.AllowStoredScripts to be enabled on
the code side, and a SkillScriptGrant record to exist.
Constructors
Section titled “Constructors”AgentSkillScriptDefinition()
Section titled “ AgentSkillScriptDefinition()”public AgentSkillScriptDefinition()Properties
Section titled “Properties”Content
Section titled “ Content”The script’s source text.
public required string Content { get; init; }Property Value
Section titled “Property Value”Description
Section titled “ Description”A description telling the model what the script does.
public string? Description { get; init; }Property Value
Section titled “Property Value”Extension
Section titled “ Extension”The file extension (without the dot, for example py). The
interpreter is selected from the allowlist through this value.
public required string Extension { get; init; }Property Value
Section titled “Property Value”The script name, unique within the skill.
public required string Name { get; init; }Property Value
Section titled “Property Value”ParametersSchema
Section titled “ ParametersSchema”The argument schema reported to the model. Must be a valid JSON Schema object; if null, the script is called with no arguments.
public string? ParametersSchema { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(AgentSkillScriptDefinition?)
Section titled “ Equals(AgentSkillScriptDefinition?)”public bool Equals(AgentSkillScriptDefinition? other)Parameters
Section titled “Parameters”other AgentSkillScriptDefinition?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(AgentSkillScriptDefinition?, AgentSkillScriptDefinition?)
Section titled “ operator ==(AgentSkillScriptDefinition?, AgentSkillScriptDefinition?)”public static bool operator ==(AgentSkillScriptDefinition? left, AgentSkillScriptDefinition? right)Parameters
Section titled “Parameters”left AgentSkillScriptDefinition?
right AgentSkillScriptDefinition?
Returns
Section titled “Returns”operator !=(AgentSkillScriptDefinition?, AgentSkillScriptDefinition?)
Section titled “ operator !=(AgentSkillScriptDefinition?, AgentSkillScriptDefinition?)”public static bool operator !=(AgentSkillScriptDefinition? left, AgentSkillScriptDefinition? right)Parameters
Section titled “Parameters”left AgentSkillScriptDefinition?
right AgentSkillScriptDefinition?