Interface AgentToolCallbackCreator

All Known Implementing Classes:
AgentAgentToolCallbackCreator, ServiceRegistryAgentToolCallbackCreator

public interface AgentToolCallbackCreator
Author:
Filip Hrisafov
  • 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 created
      parentDeploymentId - the parent deployment id of the definition, if applicable
      tenantId - the tenant id of the definition
      tools - a collection of tools to be processed for creating the callbacks
      Returns:
      a collection of tool callbacks created from the provided tools