Class ObservableToolCallingManager

java.lang.Object
com.alibaba.cloud.ai.tool.ObservableToolCallingManager
All Implemented Interfaces:
org.springframework.ai.model.tool.ToolCallingManager

public class ObservableToolCallingManager extends Object implements org.springframework.ai.model.tool.ToolCallingManager
Inspired from org.springframework.ai.model.tool.DefaultToolCallingManager.
Author:
Lumian
  • Constructor Details

    • ObservableToolCallingManager

      public ObservableToolCallingManager(io.micrometer.observation.ObservationRegistry observationRegistry, org.springframework.ai.tool.resolution.ToolCallbackResolver toolCallbackResolver, org.springframework.ai.tool.execution.ToolExecutionExceptionProcessor toolExecutionExceptionProcessor)
  • Method Details

    • resolveToolDefinitions

      public List<org.springframework.ai.tool.definition.ToolDefinition> resolveToolDefinitions(org.springframework.ai.model.tool.ToolCallingChatOptions chatOptions)
      Specified by:
      resolveToolDefinitions in interface org.springframework.ai.model.tool.ToolCallingManager
    • executeToolCalls

      public org.springframework.ai.model.tool.ToolExecutionResult executeToolCalls(org.springframework.ai.chat.prompt.Prompt prompt, org.springframework.ai.chat.model.ChatResponse chatResponse)
      Specified by:
      executeToolCalls in interface org.springframework.ai.model.tool.ToolCallingManager
    • builder

      public static ObservableToolCallingManager.Builder builder()