Interface AgentToolCallbackCreator
- All Known Implementing Classes:
AgentAgentToolCallbackCreator,ServiceRegistryAgentToolCallbackCreator
public interface AgentToolCallbackCreator
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.springframework.ai.tool.ToolCallback> createToolCallbacks(String definitionKey, String parentDeploymentId, String tenantId, Collection<AgentDefinitionModel.Tool> tools) Creates a collection of tool callbacks based on the provided definition key and tools.
-
Method Details
-
getDefinitionType
String getDefinitionType()- Returns:
- The type of the definition that the creator is responsible for
-
createToolCallbacks
Collection<org.springframework.ai.tool.ToolCallback> createToolCallbacks(String definitionKey, String parentDeploymentId, String tenantId, Collection<AgentDefinitionModel.Tool> tools) Creates a collection of tool callbacks based on the provided definition key and tools. All the tools belong to the same definition.- Parameters:
definitionKey- the key identifying the definition for which the callbacks should be createdparentDeploymentId- the parent deployment id of the definition, if applicabletenantId- the tenant id of the definitiontools- a collection of tools to be processed for creating the callbacks- Returns:
- a collection of tool callbacks created from the provided tools
-