AbstractMockLlm

constructor(port: Int = 0, configuration: ServerConfiguration, applicationConfigurer: Application.() -> Unit? = {})(source)

Initializes the mock server with the specified configuration.

Parameters

port

The port number to use for the server. Defaults to 0, which allows the system to select an available port automatically.

configuration

The ServerConfiguration instance providing details such as verbosity, server name, and content negotiation settings.

applicationConfigurer

An optional function to further customize the server application configuration. Default is an empty configuration.