InMemoryAgentSkillStore
AgentPrism.Core.dllA store that keeps skill definitions in process memory.
public sealed class InMemoryAgentSkillStore : IAgentSkillStoreInheritance
Section titled “Inheritance”object ← InMemoryAgentSkillStore
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”InMemoryAgentSkillStore()
Section titled “ InMemoryAgentSkillStore()”public InMemoryAgentSkillStore()Methods
Section titled “Methods”DeleteAsync(string, string, CancellationToken)
Section titled “ DeleteAsync(string, string, CancellationToken)”Deletes a tenant’s skill.
public 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.
public 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.
public 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.
public 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.