Class DefaultToolCallResultConverter
java.lang.Object
org.springframework.ai.tool.execution.DefaultToolCallResultConverter
- All Implemented Interfaces:
BiFunction<Object,
,Class<?>, String> ToolCallResultConverter
A default implementation of
ToolCallResultConverter
.- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Constructor Details
-
DefaultToolCallResultConverter
public DefaultToolCallResultConverter()
-
-
Method Details
-
apply
Description copied from interface:ToolCallResultConverter
Given an Object returned by a tool, convert it to a String compatible with the given class type.- Specified by:
apply
in interfaceBiFunction<Object,
Class<?>, String> - Specified by:
apply
in interfaceToolCallResultConverter
-