1
0
voyager-api/VoyagerAgent/AgentClientOptions.cs

29 lines
1.1 KiB
C#

namespace VoyagerAgent;
public sealed class AgentClientOptions
{
/// <summary>Unique id for this agent (e.g. "agent-01").</summary>
public string AgentId { get; set; } = "agent-01";
public string? DisplayName { get; set; }
/// <summary>Central Voyager gRPC endpoint, e.g. "https://voyager.example.com:7443".</summary>
public string CentralGrpcAddress { get; set; } = "https://localhost:7443";
/// <summary>Session ids this agent should pull from.</summary>
public int[] SessionIds { get; set; } = Array.Empty<int>();
/// <summary>How many URLs to request per lease batch.</summary>
public int Capacity { get; set; } = 10;
/// <summary>Client certificate (PFX) path for mTLS.</summary>
public string ClientCertificatePath { get; set; } = "";
public string ClientCertificatePassword { get; set; } = "";
/// <summary>If true, skip strict server certificate validation (dev only).</summary>
public bool InsecureSkipServerCertificateValidation { get; set; } = false;
/// <summary>Delay between polls when no work is available.</summary>
public int PollDelayMs { get; set; } = 1500;
}