Class TurNativeToolService
java.lang.Object
com.viglet.turing.genai.tool.TurNativeToolService
Service that discovers and lists all native tool callings
(methods annotated with
@Tool) available in the application.- Since:
- 2026.1.14
- Author:
- Alexandre Oliveira
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionTurNativeToolService(TurSemanticNavToolService semanticNavToolService, TurDateTimeToolService dateTimeToolService, TurFinanceToolService financeToolService, TurWeatherToolService weatherToolService, TurCodeInterpreterToolService codeInterpreterToolService, TurWebCrawlerToolService webCrawlerToolService, TurImageSearchToolService imageSearchToolService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ai.tool.ToolCallback[]Creates ToolCallback[] for all native tools.Returns a flat list of all native tool descriptors.org.springframework.ai.tool.ToolCallback[]getToolCallbacks(Set<String> toolNames) Creates ToolCallback[] only for the specified tool names.Returns all discovered native tool groups.static StringgroupIdFromClass(Class<?> serviceClass) Returns the tool group ID for a given service class.
-
Constructor Details
-
Method Details
-
getToolGroups
Returns all discovered native tool groups. -
getAllTools
Returns a flat list of all native tool descriptors. -
groupIdFromClass
-
getToolCallbacks
-
getAllToolCallbacks
public org.springframework.ai.tool.ToolCallback[] getAllToolCallbacks()Creates ToolCallback[] for all native tools.
-