<PackageReference Include="Relativity.Server.Testing.Framework.Api.SDK" Version="10.3.0" />

IAgentService

public interface IAgentService
Represents the [Agent](https://relativitydev.github.io/relativity.testing.framework/api/Relativity.Testing.Framework.Models.Agent.html) API service.
Agent Create(Agent entity)

Creates the specified agent.

void Delete(int id)

Deletes the agent by ID.

Agent Get(int id)

Gets the agent by the specified ID.

AgentType GetAgentType(string name)

Gets agent type by specified name.

Gets all agents.

Gets all agents by specified agent type.

Gets all agent types.

Gets available agent servers for specified agent type.

Requires the specified Agent(s). If Artifact.ArtifactID property of entity has positive value, gets entity by id and updates it.If Agent.AgentType property of entity exists, gets entity by type and updates it.Otherwise creates a new entity using ICreateStrategy<T>.

void Update(Agent entity)

Updates the specified Agent.