Class AgentInvocationIndexingDataProducer
java.lang.Object
com.flowable.platform.engine.impl.indexing.dataproducer.AgentInvocationIndexingDataProducer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<PlatformIndexedDataEnhancer>protected IndexingManagerHelperImplprotected tools.jackson.databind.ObjectMapper -
Constructor Summary
ConstructorsConstructorDescriptionAgentInvocationIndexingDataProducer(tools.jackson.databind.ObjectMapper objectMapper, List<PlatformIndexedDataEnhancer> indexedDataEnhancers) -
Method Summary
Modifier and TypeMethodDescriptionbuildGuardrailPassedByExchangeId(List<? extends AgentInvocationExchangePart> guardrailResultParts) Builds a map of guardrail exchange id →passedflag by parsing each guardrail result part's JSON.tools.jackson.databind.node.ObjectNodeproduceIndexingData(AgentInvocation invocation, List<? extends AgentInvocationExchange> exchanges, List<? extends AgentInvocationExchangePart> guardrailResultParts, String agentDefinitionName, String referenceId, String referenceType, String tenantId)
-
Field Details
-
objectMapper
protected tools.jackson.databind.ObjectMapper objectMapper -
indexingManagerHelper
-
indexedDataEnhancers
-
-
Constructor Details
-
AgentInvocationIndexingDataProducer
public AgentInvocationIndexingDataProducer(tools.jackson.databind.ObjectMapper objectMapper, List<PlatformIndexedDataEnhancer> indexedDataEnhancers)
-
-
Method Details
-
produceIndexingData
public tools.jackson.databind.node.ObjectNode produceIndexingData(AgentInvocation invocation, List<? extends AgentInvocationExchange> exchanges, List<? extends AgentInvocationExchangePart> guardrailResultParts, String agentDefinitionName, String referenceId, String referenceType, String tenantId) -
buildGuardrailPassedByExchangeId
protected Map<String,Boolean> buildGuardrailPassedByExchangeId(List<? extends AgentInvocationExchangePart> guardrailResultParts) Builds a map of guardrail exchange id →passedflag by parsing each guardrail result part's JSON. A missing or unparseable"passed"field leaves the exchange out of the map (callers treat that as passed).
-