TypeSafeAiDecisionModelConfig
Namespace: E2E.Decision.Sdk.TypeSafeAi
public sealed class TypeSafeAiDecisionModelConfigThe config of a DecisionTypeSafeAiModel (upstream’s TypeSafeAiDecisionModelConfig).
Inheritance: object
Properties
Section titled “Properties”BaseUrl
Section titled “BaseUrl”public required string BaseUrl { get; init; }Value: string
Headers
Section titled “Headers”public Func<CancellationToken, Task<IReadOnlyDictionary<string, string?>>>? Headers { get; init; }Resolves the headers sent with every request, such as Authorization. Without it, the model sends the TYPESAFE_AI_API_KEY
environment variable as the bearer, read at each call.
Value: Func<CancellationToken, Task<IReadOnlyDictionary<string, string>>>
HttpClient
Section titled “HttpClient”public HttpClient? HttpClient { get; init; }The client that sends the requests. Defaults to a client of the model’s own, with a 120 second timeout.
Value: HttpClient
Provider
Section titled “Provider”public required string Provider { get; init; }Value: string