Skip to content

InMemoryAgentSkillStore

Namespace AgentPrism · Assembly AgentPrism.Core.dll

A store that keeps skill definitions in process memory.

public sealed class InMemoryAgentSkillStore : IAgentSkillStore

objectInMemoryAgentSkillStore

IAgentSkillStore

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

public InMemoryAgentSkillStore()

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)

tenantId string

The tenant identifier.

name string

The skill name.

cancellationToken CancellationToken

The cancellation token.

ValueTask<bool>

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)

tenantId string

The tenant identifier.

name string

The skill name.

cancellationToken CancellationToken

The cancellation token.

ValueTask<AgentSkillDefinition?>

The skill; null if it does not exist.

Lists all of a tenant’s skills.

public ValueTask<IReadOnlyList<AgentSkillDefinition>> ListAsync(string tenantId, CancellationToken cancellationToken = default)

tenantId string

The tenant identifier.

cancellationToken CancellationToken

The cancellation token.

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)

skill AgentSkillDefinition

The skill to save.

cancellationToken CancellationToken

The cancellation token.

ValueTask<AgentSkillDefinition>

The skill with its identifier, timestamps, and version assigned.