Class AiEvaluationBuilderImpl

java.lang.Object
com.flowable.agent.engine.impl.runtime.AiEvaluationBuilderImpl
All Implemented Interfaces:
AiEvaluationBuilder, org.flowable.common.engine.impl.interceptor.Command<Void>

public class AiEvaluationBuilderImpl extends Object implements AiEvaluationBuilder, org.flowable.common.engine.impl.interceptor.Command<Void>
  • Field Details

    • commandExecutor

      protected final org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor
    • agentInstanceId

      protected final String agentInstanceId
    • referenceId

      protected final String referenceId
    • referenceType

      protected final String referenceType
    • includeIntentEvaluation

      protected boolean includeIntentEvaluation
    • intentMetadata

      protected String intentMetadata
    • disableAiActivationEvaluation

      protected boolean disableAiActivationEvaluation
  • Constructor Details

    • AiEvaluationBuilderImpl

      protected AiEvaluationBuilderImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor, String agentInstanceId, String referenceId, String referenceType)
  • Method Details

    • includeIntentEvaluation

      public AiEvaluationBuilder includeIntentEvaluation()
      Description copied from interface: AiEvaluationBuilder
      The intent evaluation normally only runs when e.g. a chat message comes in, a document is uploaded, etc. Using this method will force such an intent evaluation.
      Specified by:
      includeIntentEvaluation in interface AiEvaluationBuilder
    • includeIntentEvaluation

      public AiEvaluationBuilder includeIntentEvaluation(String evaluationReason)
      Description copied from interface: AiEvaluationBuilder
      The intent evaluation normally only runs when e.g. a chat message comes in, a document is uploaded, etc. Using this method will force such an intent evaluation using the provided evaluation reason.
      Specified by:
      includeIntentEvaluation in interface AiEvaluationBuilder
    • disableAiActivationEvaluation

      public AiEvaluationBuilder disableAiActivationEvaluation()
      Description copied from interface: AiEvaluationBuilder
      The AI Activation analysis normally runs always after each regular CMMN operation. Using this method will disable the AI Activation analysis.
      Specified by:
      disableAiActivationEvaluation in interface AiEvaluationBuilder
    • evaluate

      public void evaluate()
      Specified by:
      evaluate in interface AiEvaluationBuilder
    • execute

      public Void execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      execute in interface org.flowable.common.engine.impl.interceptor.Command<Void>
    • retrieveAgentInstance

      protected AgentInstance retrieveAgentInstance(AgentEngineConfiguration agentEngineConfiguration)
    • getAgentInstanceId

      public String getAgentInstanceId()
    • forAgentInstance

      public static AiEvaluationBuilder forAgentInstance(String agentInstanceId, org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
    • forReference

      public static AiEvaluationBuilder forReference(String referenceId, String referenceType, org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)