Class ToolUtils
java.lang.Object
org.springframework.ai.tool.support.ToolUtils
Miscellaneous tool utility methods. Mainly for internal use within the framework.
- Author:
- Thomas Vitale
-
Method Summary
Modifier and TypeMethodDescriptiongetDuplicateToolNames(List<ToolCallback> toolCallbacks) getDuplicateToolNames(ToolCallback... toolCallbacks) static ToolCallResultConvertergetToolCallResultConverter(Method method) static StringgetToolDescription(Method method) static StringgetToolDescriptionFromName(String toolName) static StringgetToolName(Method method) static booleangetToolRequiresConfirmation(Method method) Whether calls of the@Toolmethod need a person's confirmation before they run.static booleangetToolReturnDirect(Method method)
-
Method Details
-
getToolName
-
getToolDescriptionFromName
-
getToolDescription
-
getToolReturnDirect
-
getToolRequiresConfirmation
Whether calls of the@Toolmethod need a person's confirmation before they run.- Parameters:
method- the tool method- Returns:
truewhen the method's@ToolsetsrequiresConfirmation- Since:
- 2.1.0
-
getToolCallResultConverter
-
getDuplicateToolNames
-
getDuplicateToolNames
-