Learn about the internal request/response lifecycle in Polyglot.
Inference
objectcreate()
with parametersInference
creates an InferenceRequest
.Inference
creates a PendingInference
object with the instances of request, driver and event dispatcher.Inference
returns a PendingInference
object to the application.PendingInference
object content, e.g. via response()
method.PendingInference
checks if HTTP request has been already executed.
PendingInference
dispatches the InferenceRequested
eventPendingInference
passes the request to the driver.PendingInference
.PendingInference
calls the driver to read and parse the response.InferenceResponse
objectPendingInference
dispatches the InferenceResponseReceived
eventInferenceResponse
object is returned to the application