Class DefaultToolCallingManager
java.lang.Object
org.springframework.ai.model.tool.DefaultToolCallingManager
- All Implemented Interfaces:
ToolCallingManager
Default implementation of
ToolCallingManager
.- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDefaultToolCallingManager
(io.micrometer.observation.ObservationRegistry observationRegistry, ToolCallbackResolver toolCallbackResolver, ToolCallExceptionConverter toolCallExceptionConverter) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a defaultToolCallingManager
builder.executeToolCalls
(Prompt prompt, ChatResponse chatResponse) Execute the tool calls requested by the model.resolveToolDefinitions
(ToolCallingChatOptions chatOptions) Resolve the tool definitions from the model's tool calling options.
-
Constructor Details
-
DefaultToolCallingManager
public DefaultToolCallingManager(io.micrometer.observation.ObservationRegistry observationRegistry, ToolCallbackResolver toolCallbackResolver, ToolCallExceptionConverter toolCallExceptionConverter)
-
-
Method Details
-
resolveToolDefinitions
Description copied from interface:ToolCallingManager
Resolve the tool definitions from the model's tool calling options.- Specified by:
resolveToolDefinitions
in interfaceToolCallingManager
-
executeToolCalls
Description copied from interface:ToolCallingManager
Execute the tool calls requested by the model.- Specified by:
executeToolCalls
in interfaceToolCallingManager
-
builder
Description copied from interface:ToolCallingManager
Create a defaultToolCallingManager
builder.
-