Skip to content

Interface: EvalwrightClientOptions

Construction options for EvalwrightClient.

Properties

apiKey

ts
apiKey: string;

A key created under API keys in the Evalwright app. Keep it on the server: anything holding it can resolve the prompts the key is scoped to.


baseUrl

ts
baseUrl: string;

The address of the Evalwright API, e.g. https://api.example.com. A trailing slash is stripped.

Required, with no default: every call carries the API key, so a default address is a host that receives keys from everyone who forgot to set one.

Released under the MIT licence.