Table of Contents

Interface IAgentDefinitionRepository

Namespace
Oscova.Agents.Definitions
Assembly
Oscova.Agents.dll

Persists and retrieves agent definitions for a host-provided user scope.

public interface IAgentDefinitionRepository

Methods

DeleteAgentAsync(string, string, CancellationToken)

Deletes an agent definition for the user.

EnsureMainAgentAsync(string, CancellationToken)

Ensures the user has a main agent definition.

GetAgentAsync(string, string, CancellationToken)

Retrieves one agent definition visible to the user.

GetAllAgentsAsync(string, CancellationToken)

Retrieves all agent definitions visible to the user.

GetMainAgentAsync(string, CancellationToken)

Retrieves the user's main agent definition.

SaveAgentAsync(string, AgentDefinition, CancellationToken)

Persists an agent definition for the user.