Getting Started
Installation
Reference the ParallelModel.Sdk project in your .NET application or integration-test project. The source archive contains tests, not the SDK project or a verified package release. Use your existing SDK reference.
Configuration
Set these environment variables in PowerShell (replace placeholders with your own values):
$env:PARALLELMODEL_REGION = "uk1"
$env:PARALLELMODEL_CLIENT_ID = "<client-id>"
$env:PARALLELMODEL_CLIENT_SECRET = "<client-secret>"
$env:PARALLELMODEL_MODEL_ID = "<model-id>"
$env:PARALLELMODEL_ENCRYPTION_KEY_1 = "<encryption-key>"
$env:PARALLELMODEL_COMPUTE_SIZE = "<compute-size>"
Never commit real credentials, keys or unredacted execution logs to your repository. Live tests may incur compute charges.
Create the SDK client
The following minimal initialization is adapted from the supplied tests; the full examples preserve the original integration-test code.
using ParallelModel.Sdk;
using ParallelModel.Sdk.Authentication;
static string Required(string name) =>
Environment.GetEnvironmentVariable(name)
?? throw new InvalidOperationException($"Missing {name}");
using var client = new ParallelModelClient(new DefaultParallelModelAuthenticationOptions
{
Region = Required("PARALLELMODEL_REGION"),
ClientId = Required("PARALLELMODEL_CLIENT_ID"),
ClientSecret = Required("PARALLELMODEL_CLIENT_SECRET"),
Timeout = TimeSpan.FromSeconds(300),
AutoRefreshToken = true,
RefreshBeforeExpiry = TimeSpan.FromMinutes(2),
RetryOnUnauthorized = true,
MaxRetries = 3
});
Execute a recorded scenario
Open a scenario in the example overview. The complete test uses xUnit, SharedEnvironmentHelper, and PipelineTestLogger from your original integration-test project. Run the filter shown on the example page. CSV upload scenarios require the indicated fixture in Datasets/.
Each page includes the actual saved responses, rather than simulated API data. DiagnosticTraining permits independent partition fitting, so EvaluationReady: False is expected for these records and must not be treated as validated production performance.
Standalone operations
See the standalone examples for the original test classes, required cache inputs, SDK calls, recorded requests and responses. Standalone tests may require outputs from earlier tests; the archives do not contain all shared helpers or the SDK project.