Class CmmnAgentIntegrationService

java.lang.Object
com.flowable.agent.engine.impl.cmmn.CmmnAgentIntegrationService

public class CmmnAgentIntegrationService extends Object
  • Field Details

    • cmmnEngineConfiguration

      protected org.flowable.cmmn.engine.CmmnEngineConfiguration cmmnEngineConfiguration
  • Constructor Details

    • CmmnAgentIntegrationService

      public CmmnAgentIntegrationService(org.flowable.cmmn.engine.CmmnEngineConfiguration cmmnEngineConfiguration)
  • Method Details

    • evaluateAndPlanAgentInteractions

      public void evaluateAndPlanAgentInteractions(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String caseInstanceId)
    • checkIntentsAndPlanJobIfNeeded

      protected boolean checkIntentsAndPlanJobIfNeeded(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, AgentEngineConfiguration agentEngineConfiguration, IntentEvaluationTrigger intentEvaluationTrigger, AgentInstanceEntity agentInstance, String caseInstanceId)
      Will check the currently available intent event listener and use the AI service backing the Agent Orchestrator if any will trigger.
      Returns:
      True if an intent analysis is planned in an asynchronous job, false otherwise.
    • checkAiActivationAndPlanJobIfNeeded

      protected boolean checkAiActivationAndPlanJobIfNeeded(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, AgentEngineConfiguration agentEngineConfiguration, AgentInstanceEntity agentInstance, String caseInstanceId, IntentEvaluationTrigger intentEvaluationTrigger)
      Will check the currently available ai activatable plan items and use the AI service backing the Agent Orchestrator if any is applicable.
      Returns:
      True if an AI activation analysis is planned in an asynchronous job, false otherwise.
    • planChatOperationJob

      protected void planChatOperationJob(AgentEngineConfiguration agentEngineConfiguration, AgentInstanceEntity agentInstance, IntentEvaluationTrigger intentEvaluationTrigger, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • createAgentJobConfiguration

      protected com.fasterxml.jackson.databind.node.ObjectNode createAgentJobConfiguration(AgentEngineConfiguration agentEngineConfiguration, AgentInstanceEntity agentInstance, String userId, String operationKey, Map<String,Object> promptParameters, IntentEvaluationTrigger intentEvaluationTrigger, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
    • createAgentJobConfiguration

      protected com.fasterxml.jackson.databind.node.ObjectNode createAgentJobConfiguration(AgentEngineConfiguration agentEngineConfiguration, AgentInstanceEntity agentInstance, String userId, String operationKey, Map<String,Object> promptParameters, IntentEvaluationTrigger intentEvaluationTrigger, String existingAgentInvocationId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)