Type Safe Model Factory
Builds decision services for TypeSafe's Jev models. TypeSafe speaks System One, so this is a SystemOneModelFactory with TypeSafe's address, provider name and request id header.
TypeSafe always needs a key. A missing key fails each call as unavailable before anything is sent, and buildValidated rejects it. Building a service never reads the key.
Constructors
Properties
Functions
Returns a service for the default model.
Reads the key once, checks it by listing the endpoint's models with it, then returns a service for the default model. A missing key, a rejected listing or an unreachable endpoint all count as an invalid key. A key supplier that throws InvalidApiKeyException itself, as one that insists on a key does for a blank one, counts as a missing key. An already interrupted caller is cancelled before the key is read, including when no key is configured. An interrupted key supplier also throws a CancellationException.
Lists the models the endpoint serves.