Class InferenceActionProxy

java.lang.Object
org.elasticsearch.action.ActionType<InferenceAction.Response>
org.elasticsearch.xpack.core.inference.action.InferenceActionProxy

public class InferenceActionProxy extends ActionType<InferenceAction.Response>
This action is used when making a REST request to the inference API. The transport handler will then look at the task type in the params (or retrieve it from the persisted model if it wasn't included in the params) to determine where this request should be routed. If the task type is chat completion then it will be routed to the unified chat completion handler by creating the UnifiedCompletionAction. If not, it will be passed along to InferenceAction.