run
abstract suspend fun <Output : Any> run(endpointId: String, input: Any, resultType: KClass<Output>, options: RunOptions = RunOptions()): RequestOutput<Output>
Sends a request to the given endpointId. This method is a direct request to the model API and it waits for the processing to complete before returning the result.
This is useful for short running requests, but it's not recommended for long running requests, for those see subscribe.
Parameters
endpoint Id
The ID of the endpoint to send the request to.
input
The input data to send to the endpoint.
result Type
The expected result type of the request.
options
The options to use for the request.