Class AgentOperationSchemaUtil
java.lang.Object
com.flowable.agent.engine.impl.cmd.AgentOperationSchemaUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidapplyDataDictionarySchema(tools.jackson.databind.ObjectMapper objectMapper, tools.jackson.databind.node.ObjectNode propertyNode, AgentDefinitionModel.TypeReference typeReference, Function<TypeRef, DictionaryType> typeResolver) protected static voidapplyEvaluatorScoreBounds(tools.jackson.databind.node.ObjectNode schema, Double scoreMin, Double scoreMax) protected static TypeRefasTypeRef(AgentDefinitionModel.TypeReference typeReference) protected static tools.jackson.databind.node.ObjectNodebuildOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOutput agentOutput, Function<TypeRef, DictionaryType> typeResolver) static Function<TypeRef, DictionaryType> createDataDictionaryTypeResolver(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String parentDeploymentId, String tenantId) static StringgenerateEvaluatorOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOperation agentOperation, Function<TypeRef, DictionaryType> typeResolver, Double scoreMin, Double scoreMax) Constrains the evaluator'sscoreproperty to its declared range so the judge returns an in-range value at generation time.static StringgenerateInputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentInput agentInput, Function<TypeRef, DictionaryType> typeResolver) static StringgenerateInputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOperation agentOperation, Function<TypeRef, DictionaryType> typeResolver) static StringgenerateOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOperation agentOperation) static StringgenerateOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOperation agentOperation, Function<TypeRef, DictionaryType> typeResolver) static StringgenerateOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOutput agentOutput) static StringgenerateOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOutput agentOutput, Function<TypeRef, DictionaryType> typeResolver) protected static StringwriteSchema(tools.jackson.databind.ObjectMapper objectMapper, tools.jackson.databind.node.ObjectNode schema)
-
Constructor Details
-
AgentOperationSchemaUtil
public AgentOperationSchemaUtil()
-
-
Method Details
-
createDataDictionaryTypeResolver
public static Function<TypeRef, DictionaryType> createDataDictionaryTypeResolver(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, String parentDeploymentId, String tenantId) -
generateOutputSchema
public static String generateOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOperation agentOperation) -
generateOutputSchema
public static String generateOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOperation agentOperation, Function<TypeRef, DictionaryType> typeResolver) -
generateEvaluatorOutputSchema
public static String generateEvaluatorOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOperation agentOperation, Function<TypeRef, DictionaryType> typeResolver, Double scoreMin, Double scoreMax) Constrains the evaluator'sscoreproperty to its declared range so the judge returns an in-range value at generation time. -
applyEvaluatorScoreBounds
-
generateOutputSchema
public static String generateOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOutput agentOutput) -
generateOutputSchema
public static String generateOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOutput agentOutput, Function<TypeRef, DictionaryType> typeResolver) -
buildOutputSchema
protected static tools.jackson.databind.node.ObjectNode buildOutputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOutput agentOutput, Function<TypeRef, DictionaryType> typeResolver) -
writeSchema
protected static String writeSchema(tools.jackson.databind.ObjectMapper objectMapper, tools.jackson.databind.node.ObjectNode schema) -
generateInputSchema
public static String generateInputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentOperation agentOperation, Function<TypeRef, DictionaryType> typeResolver) -
generateInputSchema
public static String generateInputSchema(tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.AgentInput agentInput, Function<TypeRef, DictionaryType> typeResolver) -
applyDataDictionarySchema
protected static void applyDataDictionarySchema(tools.jackson.databind.ObjectMapper objectMapper, tools.jackson.databind.node.ObjectNode propertyNode, AgentDefinitionModel.TypeReference typeReference, Function<TypeRef, DictionaryType> typeResolver) -
asTypeRef
-