Class ServiceRegistryToolCallback
java.lang.Object
com.flowable.agent.engine.impl.model.tool.BaseToolCallback
com.flowable.platform.service.agent.ServiceRegistryToolCallback
- All Implemented Interfaces:
org.springframework.ai.tool.ToolCallback
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final ServiceRegistryRuntimeServiceprotected final Stringprotected final AgentDefinitionModel.ToolFields inherited from class BaseToolCallback
objectMapper, toolDefinitionFields inherited from interface org.springframework.ai.tool.ToolCallback
logger -
Constructor Summary
ConstructorsConstructorDescriptionServiceRegistryToolCallback(org.springframework.ai.tool.definition.ToolDefinition toolDefinition, tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.Tool tool, ServiceRegistryRuntimeService serviceRegistryRuntimeService, String tenantId, String parentDeploymentId) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringexecuteCall(Map<String, Object> data, org.springframework.ai.chat.model.ToolContext toolContext) protected booleanisOverrideDefined(Map<?, ?> entryMap) resolveMockOverride(org.springframework.ai.chat.model.ToolContext toolContext) Methods inherited from class BaseToolCallback
call, call, getToolDefinition, parseToolInputMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.tool.ToolCallback
getToolMetadata
-
Field Details
-
tool
-
serviceRegistryRuntimeService
-
tenantId
-
parentDeploymentId
-
-
Constructor Details
-
ServiceRegistryToolCallback
public ServiceRegistryToolCallback(org.springframework.ai.tool.definition.ToolDefinition toolDefinition, tools.jackson.databind.ObjectMapper objectMapper, AgentDefinitionModel.Tool tool, ServiceRegistryRuntimeService serviceRegistryRuntimeService, String tenantId, String parentDeploymentId)
-
-
Method Details
-
executeCall
protected String executeCall(Map<String, Object> data, org.springframework.ai.chat.model.ToolContext toolContext) - Specified by:
executeCallin classBaseToolCallback
-
resolveMockOverride
-
isOverrideDefined
-