Skip to content

RequestOptions

Namespace: TypeSafe.AI.Sdk

public sealed class RequestOptions

Per-call options that override client settings.

Inheritance: object

View source

public CancellationToken CancellationToken { get; set; }

Cancellation token for the request and pending retries.

Value: CancellationToken

View source

public IDictionary<string, string>? Headers { get; set; }

Additional headers, merged over DefaultHeaders.

Value: IDictionary<string, string>

View source

public RetryPolicy? Retry { get; set; }

Retry overrides for this call; omitted fields inherit client settings.

Value: RetryPolicy

View source

public int? TimeoutMs { get; set; }

Timeout per attempt in milliseconds; there is no total retry budget.

Value: int?

View source

MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API