IAgentSkillStore
AgentPrism.Abstractions.dllThe store for a tenant’s run-time skill definitions.
public interface IAgentSkillStoreMethods
Section titled “Methods”DeleteAsync(string, string, CancellationToken)
Section titled “ DeleteAsync(string, string, CancellationToken)”Deletes a tenant’s skill.
ValueTask<bool> DeleteAsync(string tenantId, string name, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
name string
The skill name.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”true if the skill was deleted.
GetAsync(string, string, CancellationToken)
Section titled “ GetAsync(string, string, CancellationToken)”Fetches the skill matching the given name within the tenant.
ValueTask<AgentSkillDefinition?> GetAsync(string tenantId, string name, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
name string
The skill name.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<AgentSkillDefinition?>
The skill; null if it does not exist.
ListAsync(string, CancellationToken)
Section titled “ ListAsync(string, CancellationToken)”Lists all of a tenant’s skills.
ValueTask<IReadOnlyList<AgentSkillDefinition>> ListAsync(string tenantId, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”tenantId string
The tenant identifier.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<IReadOnlyList<AgentSkillDefinition>>
The skills, ordered by name.
SaveAsync(AgentSkillDefinition, CancellationToken)
Section titled “ SaveAsync(AgentSkillDefinition, CancellationToken)”Creates or updates the skill.
ValueTask<AgentSkillDefinition> SaveAsync(AgentSkillDefinition skill, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”skill AgentSkillDefinition
The skill to save.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<AgentSkillDefinition>
The skill with its identifier, timestamps, and version assigned.