Class CmmnAgentIntegrationService
java.lang.Object
com.flowable.agent.engine.impl.cmmn.CmmnAgentIntegrationService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.flowable.cmmn.engine.CmmnEngineConfiguration -
Constructor Summary
ConstructorsConstructorDescriptionCmmnAgentIntegrationService(org.flowable.cmmn.engine.CmmnEngineConfiguration cmmnEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckAiActivationAndPlanJobIfNeeded(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.protected booleancheckIntentsAndPlanJobIfNeeded(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.protected com.fasterxml.jackson.databind.node.ObjectNodecreateAgentJobConfiguration(AgentEngineConfiguration agentEngineConfiguration, AgentInstanceEntity agentInstance, String userId, String operationKey, Map<String, Object> promptParameters, IntentEvaluationTrigger intentEvaluationTrigger, String existingAgentInvocationId, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected com.fasterxml.jackson.databind.node.ObjectNodecreateAgentJobConfiguration(AgentEngineConfiguration agentEngineConfiguration, AgentInstanceEntity agentInstance, String userId, String operationKey, Map<String, Object> promptParameters, IntentEvaluationTrigger intentEvaluationTrigger, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) voidevaluateAndPlanAgentInteractions(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String caseInstanceId) protected voidplanChatOperationJob(AgentEngineConfiguration agentEngineConfiguration, AgentInstanceEntity agentInstance, IntentEvaluationTrigger intentEvaluationTrigger, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
-
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)
-