AgentSkillRequest
AgentPrism.AspNetCore.dllRequest to create or update a skill.
public sealed record AgentSkillRequest : IEquatable<AgentSkillRequest>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”AgentSkillRequest()
Section titled “ AgentSkillRequest()”public AgentSkillRequest()Properties
Section titled “Properties”AllowedTools
Section titled “ AllowedTools”Allowed-tools declaration from the MAF frontmatter.
public string? AllowedTools { get; init; }Property Value
Section titled “Property Value”Compatibility
Section titled “ Compatibility”Compatibility statement.
public string? Compatibility { get; init; }Property Value
Section titled “Property Value”Description
Section titled “ Description”Skill description.
public required string Description { get; init; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Whether the skill is enabled.
public bool Enabled { get; init; }Property Value
Section titled “Property Value”Instructions
Section titled “ Instructions”Markdown instructions.
public required string Instructions { get; init; }Property Value
Section titled “Property Value”License
Section titled “ License”Skill license.
public string? License { get; init; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Application-specific metadata.
public IReadOnlyDictionary<string, JsonElement> Metadata { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, JsonElement>
Skill name.
public required string Name { get; init; }Property Value
Section titled “Property Value”Resources
Section titled “ Resources”Skill resources.
public IReadOnlyList<AgentSkillResourceDefinition> Resources { get; init; }Property Value
Section titled “Property Value”IReadOnlyList<AgentSkillResourceDefinition>
Scripts
Section titled “ Scripts”Skill scripts.
public IReadOnlyList<AgentSkillScriptDefinition> Scripts { get; init; }Property Value
Section titled “Property Value”IReadOnlyList<AgentSkillScriptDefinition>
Remarks
Section titled “Remarks”Content written here can be executed on the server.
Writing it is not enough by itself: a script runs only when
AgentPrismSkillScriptOptions has both Enabled and
AllowStoredScripts turned on, and a valid SkillScriptGrant
exists for the tenant.
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(AgentSkillRequest?)
Section titled “ Equals(AgentSkillRequest?)”public bool Equals(AgentSkillRequest? other)Parameters
Section titled “Parameters”other AgentSkillRequest?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToDefinition(string)
Section titled “ ToDefinition(string)”Converts the request into a persistable skill definition.
public AgentSkillDefinition ToDefinition(string tenantId)Parameters
Section titled “Parameters”tenantId string
The current tenant identifier.
Returns
Section titled “Returns”A skill ready to be saved.
ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(AgentSkillRequest?, AgentSkillRequest?)
Section titled “ operator ==(AgentSkillRequest?, AgentSkillRequest?)”public static bool operator ==(AgentSkillRequest? left, AgentSkillRequest? right)Parameters
Section titled “Parameters”left AgentSkillRequest?
right AgentSkillRequest?
Returns
Section titled “Returns”operator !=(AgentSkillRequest?, AgentSkillRequest?)
Section titled “ operator !=(AgentSkillRequest?, AgentSkillRequest?)”public static bool operator !=(AgentSkillRequest? left, AgentSkillRequest? right)Parameters
Section titled “Parameters”left AgentSkillRequest?
right AgentSkillRequest?