Class InferenceFunction<PlanType extends InferenceFunction<PlanType>>

All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable
Direct Known Subclasses:
TextEmbedding

public abstract class InferenceFunction<PlanType extends InferenceFunction<PlanType>> extends Function
Base class for ESQL functions that use inference endpoints (e.g., TEXT_EMBEDDING).
  • Field Details

  • Constructor Details

  • Method Details

    • inferenceId

      public abstract Expression inferenceId()
      The inference endpoint identifier expression.
    • taskType

      public abstract TaskType taskType()
      The task type required by this function (e.g., TEXT_EMBEDDING).
    • withInferenceResolutionError

      public abstract PlanType withInferenceResolutionError(String inferenceId, String error)
      Returns a copy with inference resolution error for display to user.
    • hasNestedInferenceFunction

      public boolean hasNestedInferenceFunction()
      True if this function contains nested inference function calls.