Class MessageToolCallResultConverter

java.lang.Object
com.alibaba.cloud.ai.graph.agent.MessageToolCallResultConverter
All Implemented Interfaces:
org.springframework.ai.tool.execution.ToolCallResultConverter

public class MessageToolCallResultConverter extends Object implements org.springframework.ai.tool.execution.ToolCallResultConverter
  • Constructor Details

    • MessageToolCallResultConverter

      public MessageToolCallResultConverter()
  • Method Details

    • convert

      public String convert(@Nullable Object result, @Nullable Type returnType)
      Currently Spring AI ToolResponseMessage only supports text type, that's why the return type of this method is String. More types like image/audio/video/file can be supported in the future.
      Specified by:
      convert in interface org.springframework.ai.tool.execution.ToolCallResultConverter