Interface ToolCallResultConverter

All Known Implementing Classes:
DefaultToolCallResultConverter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ToolCallResultConverter
A functional interface to convert tool call results to a String that can be sent back to the AI model.
Since:
1.0.0
Author:
Thomas Vitale
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(Object result, Type returnType)
    Given an Object returned by a tool, convert it to a String compatible with the given class type.
  • Method Details

    • convert

      String convert(@Nullable Object result, @Nullable Type returnType)
      Given an Object returned by a tool, convert it to a String compatible with the given class type.