Skip to content

TypeSafeAiDecisionModelConfig

Namespace: E2E.Decision.Sdk.TypeSafeAi

public sealed class TypeSafeAiDecisionModelConfig

The config of a DecisionTypeSafeAiModel (upstream’s TypeSafeAiDecisionModelConfig).

Inheritance: object

View source

public required string BaseUrl { get; init; }

Value: string

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>>>

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

public required string Provider { get; init; }

Value: string