ProcessChatClientOptions
Options & Configuration · AiDotNet.Configuration
Settings for a chat client that runs a command-line program instead of calling an HTTP endpoint.
For Beginners
Give it the program to run and any fixed arguments. The prompt is handed over on standard input rather than on the command line, so a long conversation cannot overflow the operating system’s limit on how long a command may be.
How It Works
Some models are reached through a command rather than an API: a locally installed agent, a vendor’s own CLI, a wrapper script that holds credentials the process should never see. This describes how to invoke one.
Constructors
| Constructor | Summary |
|---|---|
ProcessChatClientOptions() |
Properties
| Property | Summary |
|---|---|
IList<string> Arguments { get; set; } |
Gets or sets the fixed arguments passed before any that this class adds. |
TimeSpan Timeout { get; set; } |
Gets or sets how long one call may run before it is killed. |
double? MaxBudgetUsd { get; set; } |
Gets or sets the per-call spending cap in US dollars, or null for none. |
int MaxOutputChars { get; set; } |
Gets or sets the largest reply read from the program, in characters. |
string BudgetArgumentName { get; set; } |
Gets or sets the argument name that carries MaxBudgetUsd. |
string FileName { get; set; } |
Gets or sets the executable to run. |
string ModelId { get; set; } |
Gets or sets the identifier the client reports. |
string WorkingDirectory { get; set; } |
Gets or sets the working directory, or null to inherit the current one. |
Methods
| Method | Summary |
|---|---|
IReadOnlyList<string> BuildArguments() |
Builds the full argument list, budget included. |
ProcessChatClientOptions Clone() |
Creates an independent copy so a running client is unaffected by later mutation. |
void Validate() |
Rejects settings that cannot produce a runnable command. |
Fields
| Field | Summary |
|---|---|
int MaxArgumentLength |
The largest permitted total length of the composed argument string. |