Skip to content

AgentSkillRequest

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Request to create or update a skill.

public sealed record AgentSkillRequest : IEquatable<AgentSkillRequest>

objectAgentSkillRequest

IEquatable<AgentSkillRequest>

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

public AgentSkillRequest()

Allowed-tools declaration from the MAF frontmatter.

public string? AllowedTools { get; init; }

string?

Compatibility statement.

public string? Compatibility { get; init; }

string?

Skill description.

public required string Description { get; init; }

string

Whether the skill is enabled.

public bool Enabled { get; init; }

bool

Markdown instructions.

public required string Instructions { get; init; }

string

Skill license.

public string? License { get; init; }

string?

Application-specific metadata.

public IReadOnlyDictionary<string, JsonElement> Metadata { get; init; }

IReadOnlyDictionary<string, JsonElement>

Skill name.

public required string Name { get; init; }

string

Skill resources.

public IReadOnlyList<AgentSkillResourceDefinition> Resources { get; init; }

IReadOnlyList<AgentSkillResourceDefinition>

Skill scripts.

public IReadOnlyList<AgentSkillScriptDefinition> Scripts { get; init; }

IReadOnlyList<AgentSkillScriptDefinition>

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.

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(AgentSkillRequest? other)

other AgentSkillRequest?

bool

public override int GetHashCode()

int

Converts the request into a persistable skill definition.

public AgentSkillDefinition ToDefinition(string tenantId)

tenantId string

The current tenant identifier.

AgentSkillDefinition

A skill ready to be saved.

public override string ToString()

string

operator ==(AgentSkillRequest?, AgentSkillRequest?)

Section titled “ operator ==(AgentSkillRequest?, AgentSkillRequest?)”
public static bool operator ==(AgentSkillRequest? left, AgentSkillRequest? right)

left AgentSkillRequest?

right AgentSkillRequest?

bool

operator !=(AgentSkillRequest?, AgentSkillRequest?)

Section titled “ operator !=(AgentSkillRequest?, AgentSkillRequest?)”
public static bool operator !=(AgentSkillRequest? left, AgentSkillRequest? right)

left AgentSkillRequest?

right AgentSkillRequest?

bool